Spring Data Neo4j

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

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

public static class SingleRelationshipFieldAccessorFactory.SingleRelationshipFieldAccessor
extends NodeToNodesRelationshipFieldAccessor


Field Summary
 
Fields inherited from class org.springframework.data.neo4j.fieldaccess.AbstractNodeRelationshipFieldAccessor
direction, property, relatedType, template, type
 
Constructor Summary
SingleRelationshipFieldAccessorFactory.SingleRelationshipFieldAccessor(org.neo4j.graphdb.RelationshipType type, org.neo4j.graphdb.Direction direction, Class<?> clazz, Neo4jTemplate template, Neo4jPersistentProperty property)
           
 
Method Summary
 Object getValue(Object entity, MappingPolicy mappingPolicy)
           
 Object setValue(Object entity, Object newVal, MappingPolicy mappingPolicy)
          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
checkUnderlyingState, createAddedRelationships, createEntitySetFromRelationshipEndNodes, createManagedSet, createSetOfTargetNodes, createSingleRelationship, getDefaultValue, getOrCreateState, isWriteable, removeMissingRelationships, updateMappingPolicy
 
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<?> clazz,
                                                                              Neo4jTemplate template,
                                                                              Neo4jPersistentProperty property)
Method Detail

setValue

public Object setValue(Object entity,
                       Object newVal,
                       MappingPolicy mappingPolicy)
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(Object entity,
                       MappingPolicy mappingPolicy)
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 Neo4j

Copyright © 2011 SpringSource. All Rights Reserved.