Spring Data Neo4j

org.springframework.data.neo4j.fieldaccess
Interface FieldAccessor

All Known Implementing Classes:
AbstractNodeRelationshipFieldAccessor, ConvertingNodePropertyFieldAccessorFactory.ConvertingNodePropertyFieldAccessor, DynamicPropertiesFieldAccessorFactory.DynamicPropertiesFieldAccessor, IdFieldAccessorFactory.IdFieldAccessor, NodeToNodesRelationshipFieldAccessor, OneToNRelationshipEntityFieldAccessorFactory.OneToNRelationshipEntityFieldAccessor, OneToNRelationshipFieldAccessorFactory.OneToNRelationshipFieldAccessor, PropertyFieldAccessorFactory.PropertyFieldAccessor, QueryFieldAccessorFactory.QueryFieldAccessor, ReadOnlyOneToNRelationshipFieldAccessorFactory.ReadOnlyOneToNRelationshipFieldAccessor, RelationshipNodeFieldAccessorFactory.RelationshipNodeFieldAccessor, SingleRelationshipFieldAccessorFactory.SingleRelationshipFieldAccessor, TransientFieldAccessorFactory.TransientFieldAccessor, TraversalFieldAccessorFactory.TraversalFieldAccessor

public interface FieldAccessor

interface for field accessors, encapsulates reading and writing from fields and write support information about the field. It is used by the EntityState.


Method Summary
 Object getDefaultImplementation()
          Returns a default implementation for a field or null if none is provided.
 Object getValue(Object entity)
           
 boolean isWriteable(Object entity)
           
 Object setValue(Object entity, Object newVal)
          handles field write modification.
 

Method Detail

getDefaultImplementation

Object getDefaultImplementation()
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.

Returns:
a default implementation for a field or null if none is provided.

setValue

Object setValue(Object entity,
                Object newVal)
handles field write modification.

Parameters:
entity -
newVal -
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

Object getValue(Object entity)
Parameters:
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.

isWriteable

boolean isWriteable(Object entity)
Parameters:
entity -
Returns:
false for read only or computed fields, true otherwise

Spring Data Neo4j

Copyright © 2011 SpringSource. All Rights Reserved.