Spring Data Graph

org.springframework.data.neo4j.fieldaccess
Class NodeToNodesRelationshipFieldAccessor<TARGET extends GraphBacked>

java.lang.Object
  extended by org.springframework.data.neo4j.fieldaccess.AbstractNodeRelationshipFieldAccessor<NodeBacked,org.neo4j.graphdb.Node,TARGET,org.neo4j.graphdb.Node>
      extended by org.springframework.data.neo4j.fieldaccess.NodeToNodesRelationshipFieldAccessor<TARGET>
All Implemented Interfaces:
FieldAccessor<NodeBacked>
Direct Known Subclasses:
OneToNRelationshipFieldAccessorFactory.OneToNRelationshipFieldAccessor, SingleRelationshipFieldAccessorFactory.SingleRelationshipFieldAccessor

public abstract class NodeToNodesRelationshipFieldAccessor<TARGET extends GraphBacked>
extends AbstractNodeRelationshipFieldAccessor<NodeBacked,org.neo4j.graphdb.Node,TARGET,org.neo4j.graphdb.Node>

Since:
12.09.2010
Author:
Michael Hunger

Field Summary
 
Fields inherited from class org.springframework.data.neo4j.fieldaccess.AbstractNodeRelationshipFieldAccessor
direction, field, graphDatabaseContext, relatedType, type
 
Constructor Summary
NodeToNodesRelationshipFieldAccessor(Class<? extends TARGET> clazz, GraphDatabaseContext graphDatabaseContext, org.neo4j.graphdb.Direction direction, org.neo4j.graphdb.RelationshipType type, Field field)
           
 
Method Summary
protected  org.neo4j.graphdb.Node getState(NodeBacked entity)
           
protected  Iterable<org.neo4j.graphdb.Node> getStatesFromEntity(NodeBacked entity)
           
protected  org.neo4j.graphdb.Relationship obtainSingleRelationship(org.neo4j.graphdb.Node start, org.neo4j.graphdb.Node end)
           
 
Methods inherited from class org.springframework.data.neo4j.fieldaccess.AbstractNodeRelationshipFieldAccessor
checkTargetIsSetOfNodebacked, checkUnderlyingNode, createAddedRelationships, createEntitySetFromRelationshipEndNodes, createManagedSet, createSingleRelationship, isWriteable, removeMissingRelationships
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.springframework.data.neo4j.fieldaccess.FieldAccessor
getValue, setValue
 

Constructor Detail

NodeToNodesRelationshipFieldAccessor

public NodeToNodesRelationshipFieldAccessor(Class<? extends TARGET> clazz,
                                            GraphDatabaseContext graphDatabaseContext,
                                            org.neo4j.graphdb.Direction direction,
                                            org.neo4j.graphdb.RelationshipType type,
                                            Field field)
Method Detail

obtainSingleRelationship

protected org.neo4j.graphdb.Relationship obtainSingleRelationship(org.neo4j.graphdb.Node start,
                                                                  org.neo4j.graphdb.Node end)
Specified by:
obtainSingleRelationship in class AbstractNodeRelationshipFieldAccessor<NodeBacked,org.neo4j.graphdb.Node,TARGET extends GraphBacked,org.neo4j.graphdb.Node>

getStatesFromEntity

protected Iterable<org.neo4j.graphdb.Node> getStatesFromEntity(NodeBacked entity)
Specified by:
getStatesFromEntity in class AbstractNodeRelationshipFieldAccessor<NodeBacked,org.neo4j.graphdb.Node,TARGET extends GraphBacked,org.neo4j.graphdb.Node>

getState

protected org.neo4j.graphdb.Node getState(NodeBacked entity)
Specified by:
getState in class AbstractNodeRelationshipFieldAccessor<NodeBacked,org.neo4j.graphdb.Node,TARGET extends GraphBacked,org.neo4j.graphdb.Node>

Spring Data Graph

Copyright © 2011 SpringSource. All Rights Reserved.