org.springframework.data.neo4j.fieldaccess
Class OneToNRelationshipEntityFieldAccessorFactory.OneToNRelationshipEntityFieldAccessor
java.lang.Object
org.springframework.data.neo4j.fieldaccess.AbstractNodeRelationshipFieldAccessor<org.neo4j.graphdb.Node,org.neo4j.graphdb.Relationship>
org.springframework.data.neo4j.fieldaccess.OneToNRelationshipEntityFieldAccessorFactory.OneToNRelationshipEntityFieldAccessor
- All Implemented Interfaces:
- FieldAccessor
- Enclosing class:
- OneToNRelationshipEntityFieldAccessorFactory
public static class OneToNRelationshipEntityFieldAccessorFactory.OneToNRelationshipEntityFieldAccessor
- extends AbstractNodeRelationshipFieldAccessor<org.neo4j.graphdb.Node,org.neo4j.graphdb.Relationship>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OneToNRelationshipEntityFieldAccessorFactory.OneToNRelationshipEntityFieldAccessor
public OneToNRelationshipEntityFieldAccessorFactory.OneToNRelationshipEntityFieldAccessor(org.neo4j.graphdb.RelationshipType type,
org.neo4j.graphdb.Direction direction,
Class<?> elementClass,
Neo4jTemplate template,
Neo4jPersistentProperty property)
setValue
public Object setValue(Object entity,
Object newVal,
MappingPolicy mappingPolicy)
- Description copied from interface:
FieldAccessor
- handles field write modification.
- 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.
createSetOfTargetNodes
protected Map<org.neo4j.graphdb.Node,Object> createSetOfTargetNodes(Object newVal,
org.neo4j.graphdb.Node startNode)
isWriteable
public boolean isWriteable(Object entity)
- Specified by:
isWriteable
in interface FieldAccessor
- Overrides:
isWriteable
in class AbstractNodeRelationshipFieldAccessor<org.neo4j.graphdb.Node,org.neo4j.graphdb.Relationship>
- Returns:
- false for read only or computed fields, true otherwise
getValue
public Object getValue(Object entity,
MappingPolicy mappingPolicy)
- 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.
getStatesFromEntity
protected Iterable<org.neo4j.graphdb.Relationship> getStatesFromEntity(Object entity)
- Specified by:
getStatesFromEntity
in class AbstractNodeRelationshipFieldAccessor<org.neo4j.graphdb.Node,org.neo4j.graphdb.Relationship>
obtainSingleRelationship
protected org.neo4j.graphdb.Relationship obtainSingleRelationship(org.neo4j.graphdb.Node start,
org.neo4j.graphdb.Node end)
- Specified by:
obtainSingleRelationship
in class AbstractNodeRelationshipFieldAccessor<org.neo4j.graphdb.Node,org.neo4j.graphdb.Relationship>
getState
protected org.neo4j.graphdb.Node getState(Object entity)
- Specified by:
getState
in class AbstractNodeRelationshipFieldAccessor<org.neo4j.graphdb.Node,org.neo4j.graphdb.Relationship>
Copyright © 2011 SpringSource. All Rights Reserved.