Spring Data Graph

org.springframework.data.neo4j.fieldaccess
Class SingleRelationshipFieldAccessorFactory.SingleRelationshipFieldAccessor

java.lang.Object
  extended by org.springframework.data.neo4j.fieldaccess.AbstractNodeRelationshipFieldAccessor<NodeBacked,org.neo4j.graphdb.Node,TARGET,org.neo4j.graphdb.Node>
      extended by org.springframework.data.neo4j.fieldaccess.NodeToNodesRelationshipFieldAccessor<NodeBacked>
          extended by org.springframework.data.neo4j.fieldaccess.SingleRelationshipFieldAccessorFactory.SingleRelationshipFieldAccessor
All Implemented Interfaces:
FieldAccessor<NodeBacked>
Enclosing class:
SingleRelationshipFieldAccessorFactory

public static class SingleRelationshipFieldAccessorFactory.SingleRelationshipFieldAccessor
extends NodeToNodesRelationshipFieldAccessor<NodeBacked>


Field Summary
 
Fields inherited from class org.springframework.data.neo4j.fieldaccess.AbstractNodeRelationshipFieldAccessor
direction, field, graphDatabaseContext, relatedType, type
 
Constructor Summary
SingleRelationshipFieldAccessorFactory.SingleRelationshipFieldAccessor(org.neo4j.graphdb.RelationshipType type, org.neo4j.graphdb.Direction direction, Class<? extends NodeBacked> clazz, GraphDatabaseContext graphDatabaseContext, Field field)
           
 
Method Summary
 Object getValue(NodeBacked entity)
           
 Object setValue(NodeBacked entity, Object newVal)
          handles field write modification.
 
Methods inherited from class org.springframework.data.neo4j.fieldaccess.NodeToNodesRelationshipFieldAccessor
getState, getStatesFromEntity, obtainSingleRelationship
 
Methods inherited from class org.springframework.data.neo4j.fieldaccess.AbstractNodeRelationshipFieldAccessor
checkTargetIsSetOfNodebacked, checkUnderlyingNode, createAddedRelationships, createEntitySetFromRelationshipEndNodes, createManagedSet, createSingleRelationship, isWriteable, removeMissingRelationships
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SingleRelationshipFieldAccessorFactory.SingleRelationshipFieldAccessor

public SingleRelationshipFieldAccessorFactory.SingleRelationshipFieldAccessor(org.neo4j.graphdb.RelationshipType type,
                                                                              org.neo4j.graphdb.Direction direction,
                                                                              Class<? extends NodeBacked> clazz,
                                                                              GraphDatabaseContext graphDatabaseContext,
                                                                              Field field)
Method Detail

setValue

public Object setValue(NodeBacked entity,
                       Object newVal)
Description copied from interface: FieldAccessor
handles field write modification.

Returns:
the written value or a DoReturn wrapper with the written value or null. DoReturn indicates that the aspect should not proceed to the original field access but instead return immediately.

getValue

public Object getValue(NodeBacked entity)
Returns:
the value or a DoReturn wrapper with the value for the field. DoReturn indicates that the aspect should not proceed to the original field access but instead return immediately.

Spring Data Graph

Copyright © 2011 SpringSource. All Rights Reserved.