org.springframework.data.neo4j.fieldaccess
Interface FieldAccessor<ENTITY>
- Type Parameters:
ENTITY
-
- All Known Implementing Classes:
- AbstractNodeRelationshipFieldAccessor, ConvertingNodePropertyFieldAccessorFactory.ConvertingNodePropertyFieldAccessor, IdFieldAccessorFactory.IdFieldAccessor, NodeToNodesRelationshipFieldAccessor, OneToNRelationshipEntityFieldAccessorFactory.OneToNRelationshipEntityFieldAccessor, OneToNRelationshipFieldAccessorFactory.OneToNRelationshipFieldAccessor, PropertyFieldAccessorFactory.PropertyFieldAccessor, QueryFieldAccessorFactory.QueryFieldAccessor, ReadOnlyOneToNRelationshipFieldAccessorFactory.ReadOnlyOneToNRelationshipFieldAccessor, RelationshipNodeFieldAccessorFactory.RelationshipNodeFieldAccessor, SingleRelationshipFieldAccessorFactory.SingleRelationshipFieldAccessor, TransientFieldAccessorFactory.TransientFieldAccessor, TraversalFieldAccessorFactory.TraversalFieldAccessor
public interface FieldAccessor<ENTITY>
interface for field accessors, encapsulates reading and writing from fields and write support information about the field.
It is used by the EntityState
which is delegated to by the
Neo4jNodeBacking
Neo4jRelationshipBacking
aspects.
setValue
Object setValue(ENTITY 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(ENTITY 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(ENTITY entity)
- Parameters:
entity
-
- Returns:
- false for read only or computed fields, true otherwise
Copyright © 2011 SpringSource. All Rights Reserved.