org.springframework.data.neo4j.fieldaccess
Class ReadOnlyOneToNRelationshipFieldAccessorFactory.ReadOnlyOneToNRelationshipFieldAccessor
java.lang.Object
org.springframework.data.neo4j.fieldaccess.AbstractNodeRelationshipFieldAccessor<NodeBacked,org.neo4j.graphdb.Node,TARGET,org.neo4j.graphdb.Node>
org.springframework.data.neo4j.fieldaccess.NodeToNodesRelationshipFieldAccessor<NodeBacked>
org.springframework.data.neo4j.fieldaccess.OneToNRelationshipFieldAccessorFactory.OneToNRelationshipFieldAccessor
org.springframework.data.neo4j.fieldaccess.ReadOnlyOneToNRelationshipFieldAccessorFactory.ReadOnlyOneToNRelationshipFieldAccessor
- All Implemented Interfaces:
- FieldAccessor<NodeBacked>
- Enclosing class:
- ReadOnlyOneToNRelationshipFieldAccessorFactory
public static class ReadOnlyOneToNRelationshipFieldAccessorFactory.ReadOnlyOneToNRelationshipFieldAccessor
- extends OneToNRelationshipFieldAccessorFactory.OneToNRelationshipFieldAccessor
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReadOnlyOneToNRelationshipFieldAccessorFactory.ReadOnlyOneToNRelationshipFieldAccessor
public ReadOnlyOneToNRelationshipFieldAccessorFactory.ReadOnlyOneToNRelationshipFieldAccessor(org.neo4j.graphdb.RelationshipType type,
org.neo4j.graphdb.Direction direction,
Class<? extends NodeBacked> elementClass,
GraphDatabaseContext graphDatabaseContext,
Field field)
isWriteable
public boolean isWriteable(NodeBacked nodeBacked)
- Specified by:
isWriteable
in interface FieldAccessor<NodeBacked>
- Overrides:
isWriteable
in class AbstractNodeRelationshipFieldAccessor<NodeBacked,org.neo4j.graphdb.Node,NodeBacked,org.neo4j.graphdb.Node>
- Returns:
- false for read only or computed fields, true otherwise
setValue
public Object setValue(NodeBacked entity,
Object newVal)
- Description copied from interface:
FieldAccessor
- handles field write modification.
- Specified by:
setValue
in interface FieldAccessor<NodeBacked>
- Overrides:
setValue
in class OneToNRelationshipFieldAccessorFactory.OneToNRelationshipFieldAccessor
- 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.
Copyright © 2011 SpringSource. All Rights Reserved.