Spring Data Graph

org.springframework.data.graph.neo4j.support
Class EntityPath<S extends NodeBacked,E extends NodeBacked>

java.lang.Object
  extended by org.springframework.data.graph.neo4j.support.EntityPath<S,E>
All Implemented Interfaces:
Iterable<org.neo4j.graphdb.PropertyContainer>, org.neo4j.graphdb.Path

public class EntityPath<S extends NodeBacked,E extends NodeBacked>
extends Object
implements org.neo4j.graphdb.Path

Since:
26.02.11
Author:
mh

Constructor Summary
EntityPath(GraphDatabaseContext graphDatabaseContext, org.neo4j.graphdb.Path delegate)
           
 
Method Summary
<T extends GraphBacked>
Iterable<T>
allPathEntities(Class<T>... relationships)
           
<T extends NodeBacked>
T
endEntity(Class<T>... types)
           
 org.neo4j.graphdb.Node endNode()
           
 Iterator<org.neo4j.graphdb.PropertyContainer> iterator()
           
 org.neo4j.graphdb.Relationship lastRelationship()
           
<T extends RelationshipBacked>
T
lastRelationshipEntity(Class<T>... types)
           
 int length()
           
<T extends NodeBacked>
Iterable<T>
nodeEntities()
           
 Iterable<org.neo4j.graphdb.Node> nodes()
           
<T extends RelationshipBacked>
Iterable<T>
relationshipEntities(Class<T>... relationships)
           
 Iterable<org.neo4j.graphdb.Relationship> relationships()
           
<T extends NodeBacked>
T
startEntity(Class<T>... types)
           
 org.neo4j.graphdb.Node startNode()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.neo4j.graphdb.Path
toString
 

Constructor Detail

EntityPath

public EntityPath(GraphDatabaseContext graphDatabaseContext,
                  org.neo4j.graphdb.Path delegate)
Method Detail

startEntity

public <T extends NodeBacked> T startEntity(Class<T>... types)

endEntity

public <T extends NodeBacked> T endEntity(Class<T>... types)

lastRelationshipEntity

public <T extends RelationshipBacked> T lastRelationshipEntity(Class<T>... types)

nodeEntities

public <T extends NodeBacked> Iterable<T> nodeEntities()

relationshipEntities

public <T extends RelationshipBacked> Iterable<T> relationshipEntities(Class<T>... relationships)

allPathEntities

public <T extends GraphBacked> Iterable<T> allPathEntities(Class<T>... relationships)

startNode

public org.neo4j.graphdb.Node startNode()
Specified by:
startNode in interface org.neo4j.graphdb.Path

endNode

public org.neo4j.graphdb.Node endNode()
Specified by:
endNode in interface org.neo4j.graphdb.Path

lastRelationship

public org.neo4j.graphdb.Relationship lastRelationship()
Specified by:
lastRelationship in interface org.neo4j.graphdb.Path

relationships

public Iterable<org.neo4j.graphdb.Relationship> relationships()
Specified by:
relationships in interface org.neo4j.graphdb.Path

nodes

public Iterable<org.neo4j.graphdb.Node> nodes()
Specified by:
nodes in interface org.neo4j.graphdb.Path

length

public int length()
Specified by:
length in interface org.neo4j.graphdb.Path

iterator

public Iterator<org.neo4j.graphdb.PropertyContainer> iterator()
Specified by:
iterator in interface Iterable<org.neo4j.graphdb.PropertyContainer>
Specified by:
iterator in interface org.neo4j.graphdb.Path

Spring Data Graph

Copyright © 2011. All Rights Reserved.