Spring Data Neo4j

org.springframework.data.neo4j.fieldaccess
Class OneToNRelationshipFieldAccessorFactory.OneToNRelationshipFieldAccessor

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.OneToNRelationshipFieldAccessorFactory.OneToNRelationshipFieldAccessor
All Implemented Interfaces:
FieldAccessor
Direct Known Subclasses:
ReadOnlyOneToNRelationshipFieldAccessorFactory.ReadOnlyOneToNRelationshipFieldAccessor
Enclosing class:
OneToNRelationshipFieldAccessorFactory

public static class OneToNRelationshipFieldAccessorFactory.OneToNRelationshipFieldAccessor
extends NodeToNodesRelationshipFieldAccessor


Field Summary
 
Fields inherited from class org.springframework.data.neo4j.fieldaccess.AbstractNodeRelationshipFieldAccessor
direction, property, relatedType, template, type
 
Constructor Summary
OneToNRelationshipFieldAccessorFactory.OneToNRelationshipFieldAccessor(org.neo4j.graphdb.RelationshipType type, org.neo4j.graphdb.Direction direction, Class<?> elementClass, Neo4jTemplate template, Neo4jPersistentProperty property)
           
 
Method Summary
 Object getDefaultImplementation()
          Returns a default implementation for a field or null if none is provided.
 Object getValue(Object entity)
           
 Object setValue(Object 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, getOrCreateState, isWriteable, removeMissingRelationships
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OneToNRelationshipFieldAccessorFactory.OneToNRelationshipFieldAccessor

public OneToNRelationshipFieldAccessorFactory.OneToNRelationshipFieldAccessor(org.neo4j.graphdb.RelationshipType type,
                                                                              org.neo4j.graphdb.Direction direction,
                                                                              Class<?> elementClass,
                                                                              Neo4jTemplate template,
                                                                              Neo4jPersistentProperty property)
Method Detail

setValue

public Object setValue(Object 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(Object 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.

getDefaultImplementation

public Object getDefaultImplementation()
Description copied from interface: FieldAccessor
Returns a default implementation for a field or null if none is provided.

This default implementation is returned in detached mode by the DetachedEntityState when the value of the field is get.

Specified by:
getDefaultImplementation in interface FieldAccessor
Overrides:
getDefaultImplementation in class AbstractNodeRelationshipFieldAccessor<org.neo4j.graphdb.Node,org.neo4j.graphdb.Node>
Returns:
a default implementation for a field or null if none is provided.

Spring Data Neo4j

Copyright © 2011 SpringSource. All Rights Reserved.