Spring Data Graph

org.springframework.data.neo4j.fieldaccess
Class QueryFieldAccessorFactory.QueryFieldAccessor

java.lang.Object
  extended by org.springframework.data.neo4j.fieldaccess.QueryFieldAccessorFactory.QueryFieldAccessor
All Implemented Interfaces:
FieldAccessor<NodeBacked>
Enclosing class:
QueryFieldAccessorFactory

public static class QueryFieldAccessorFactory.QueryFieldAccessor
extends Object
implements FieldAccessor<NodeBacked>

Since:
12.09.2010
Author:
Michael Hunger

Field Summary
protected  String[] annotationParams
           
protected  Field field
           
 
Constructor Summary
QueryFieldAccessorFactory.QueryFieldAccessor(Field field)
           
 
Method Summary
 Object getValue(NodeBacked nodeBacked)
           
 boolean isWriteable(NodeBacked nodeBacked)
           
 Object setValue(NodeBacked nodeBacked, Object newVal)
          handles field write modification.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

field

protected final Field field

annotationParams

protected String[] annotationParams
Constructor Detail

QueryFieldAccessorFactory.QueryFieldAccessor

public QueryFieldAccessorFactory.QueryFieldAccessor(Field field)
Method Detail

isWriteable

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

setValue

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

Specified by:
setValue in interface FieldAccessor<NodeBacked>
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 nodeBacked)
Specified by:
getValue in interface FieldAccessor<NodeBacked>
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.