Spring Data Graph

org.springframework.data.neo4j.support.path
Class ConvertingEntityPath<S extends NodeBacked,E extends NodeBacked>

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

public class ConvertingEntityPath<S extends NodeBacked,E extends NodeBacked>
extends Object
implements EntityPath<S,E>

Since:
26.02.11
Author:
mh

Constructor Summary
ConvertingEntityPath(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

ConvertingEntityPath

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

startEntity

public <T extends NodeBacked> T startEntity(Class<T>... types)
Specified by:
startEntity in interface EntityPath<S extends NodeBacked,E extends NodeBacked>

endEntity

public <T extends NodeBacked> T endEntity(Class<T>... types)
Specified by:
endEntity in interface EntityPath<S extends NodeBacked,E extends NodeBacked>

lastRelationshipEntity

public <T extends RelationshipBacked> T lastRelationshipEntity(Class<T>... types)
Specified by:
lastRelationshipEntity in interface EntityPath<S extends NodeBacked,E extends NodeBacked>

nodeEntities

public <T extends NodeBacked> Iterable<T> nodeEntities()
Specified by:
nodeEntities in interface EntityPath<S extends NodeBacked,E extends NodeBacked>

relationshipEntities

public <T extends RelationshipBacked> Iterable<T> relationshipEntities(Class<T>... relationships)
Specified by:
relationshipEntities in interface EntityPath<S extends NodeBacked,E extends NodeBacked>

allPathEntities

public <T extends GraphBacked> Iterable<T> allPathEntities(Class<T>... relationships)
Specified by:
allPathEntities in interface EntityPath<S extends NodeBacked,E extends NodeBacked>

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 SpringSource. All Rights Reserved.