Spring Data Graph

org.springframework.data.neo4j.fieldaccess
Class RelationshipNodeFieldAccessorFactory.RelationshipNodeFieldAccessor

java.lang.Object
  extended by org.springframework.data.neo4j.fieldaccess.RelationshipNodeFieldAccessorFactory.RelationshipNodeFieldAccessor
All Implemented Interfaces:
FieldAccessor<RelationshipBacked>
Enclosing class:
RelationshipNodeFieldAccessorFactory

public abstract static class RelationshipNodeFieldAccessorFactory.RelationshipNodeFieldAccessor
extends Object
implements FieldAccessor<RelationshipBacked>


Constructor Summary
RelationshipNodeFieldAccessorFactory.RelationshipNodeFieldAccessor(Field field, GraphDatabaseContext graphDatabaseContext)
           
 
Method Summary
protected abstract  org.neo4j.graphdb.Node getNode(org.neo4j.graphdb.Relationship relationship)
           
 Object getValue(RelationshipBacked relationshipBacked)
           
 boolean isWriteable(RelationshipBacked relationshipBacked)
           
 Object setValue(RelationshipBacked relationshipBacked, Object newVal)
          handles field write modification.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RelationshipNodeFieldAccessorFactory.RelationshipNodeFieldAccessor

public RelationshipNodeFieldAccessorFactory.RelationshipNodeFieldAccessor(Field field,
                                                                          GraphDatabaseContext graphDatabaseContext)
Method Detail

setValue

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

Specified by:
setValue in interface FieldAccessor<RelationshipBacked>
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(RelationshipBacked relationshipBacked)
Specified by:
getValue in interface FieldAccessor<RelationshipBacked>
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.

getNode

protected abstract org.neo4j.graphdb.Node getNode(org.neo4j.graphdb.Relationship relationship)

isWriteable

public boolean isWriteable(RelationshipBacked relationshipBacked)
Specified by:
isWriteable in interface FieldAccessor<RelationshipBacked>
Returns:
false for read only or computed fields, true otherwise

Spring Data Graph

Copyright © 2011 SpringSource. All Rights Reserved.