public class RelationshipHelper extends Object
Constructor and Description |
---|
RelationshipHelper(Neo4jTemplate template,
org.neo4j.graphdb.Direction direction,
org.neo4j.graphdb.RelationshipType type) |
Modifier and Type | Method and Description |
---|---|
protected org.neo4j.graphdb.Node |
checkAndGetNode(Object entity) |
protected void |
createAddedRelationships(org.neo4j.graphdb.Node node,
Set<org.neo4j.graphdb.Node> targetNodes) |
protected Set<Object> |
createEntitySetFromRelationshipEndNodes(Object entity,
MappingPolicy mappingPolicy,
Class<?> relatedType) |
protected Set<org.neo4j.graphdb.Node> |
createSetOfTargetNodes(Object newVal,
Class<?> relatedType) |
protected org.neo4j.graphdb.Relationship |
createSingleRelationship(org.neo4j.graphdb.Node start,
org.neo4j.graphdb.Node end) |
protected org.neo4j.graphdb.Node |
getNode(Object entity) |
protected org.neo4j.graphdb.Node |
getOrCreateState(Object value) |
Iterable<org.neo4j.graphdb.Relationship> |
getRelationships(org.neo4j.graphdb.Node node) |
org.neo4j.graphdb.RelationshipType |
getRelationshipType() |
org.neo4j.graphdb.Relationship |
getSingleRelationship(org.neo4j.graphdb.Node node) |
protected Iterable<org.neo4j.graphdb.Node> |
getStatesFromEntity(Object entity) |
protected org.neo4j.graphdb.Relationship |
obtainSingleRelationship(org.neo4j.graphdb.Node start,
org.neo4j.graphdb.Node end) |
protected void |
removeMissingRelationshipsInStoreAndKeepOnlyNewRelationShipsInSet(org.neo4j.graphdb.Node node,
Set<org.neo4j.graphdb.Node> targetNodes,
Class<?> targetType) |
public RelationshipHelper(Neo4jTemplate template, org.neo4j.graphdb.Direction direction, org.neo4j.graphdb.RelationshipType type)
protected org.neo4j.graphdb.Relationship obtainSingleRelationship(org.neo4j.graphdb.Node start, org.neo4j.graphdb.Node end)
protected org.neo4j.graphdb.Node checkAndGetNode(Object entity)
protected void removeMissingRelationshipsInStoreAndKeepOnlyNewRelationShipsInSet(org.neo4j.graphdb.Node node, Set<org.neo4j.graphdb.Node> targetNodes, Class<?> targetType)
protected void createAddedRelationships(org.neo4j.graphdb.Node node, Set<org.neo4j.graphdb.Node> targetNodes)
protected Set<org.neo4j.graphdb.Node> createSetOfTargetNodes(Object newVal, Class<?> relatedType)
protected org.neo4j.graphdb.Node getOrCreateState(Object value)
protected Set<Object> createEntitySetFromRelationshipEndNodes(Object entity, MappingPolicy mappingPolicy, Class<?> relatedType)
protected org.neo4j.graphdb.Relationship createSingleRelationship(org.neo4j.graphdb.Node start, org.neo4j.graphdb.Node end)
protected org.neo4j.graphdb.Node getNode(Object entity)
public Iterable<org.neo4j.graphdb.Relationship> getRelationships(org.neo4j.graphdb.Node node)
public org.neo4j.graphdb.Relationship getSingleRelationship(org.neo4j.graphdb.Node node)
public org.neo4j.graphdb.RelationshipType getRelationshipType()
Copyright © 2012 SpringSource. All Rights Reserved.