Spring Data Neo4j

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

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,E>
extends Object
implements EntityPath<S,E>

Since:
26.02.11
Author:
mh

Constructor Summary
ConvertingEntityPath(org.neo4j.graphdb.Path delegate, Neo4jTemplate template)
           
 
Method Summary
<T> Iterable<T>
allPathEntities(Class<T>... relationships)
           
<T> T
endEntity(Class<T>... types)
           
 org.neo4j.graphdb.Node endNode()
           
 Iterator<org.neo4j.graphdb.PropertyContainer> iterator()
           
 org.neo4j.graphdb.Relationship lastRelationship()
           
<T> T
lastRelationshipEntity(Class<T>... types)
           
 int length()
           
<T> Iterable<T>
nodeEntities()
           
 Iterable<org.neo4j.graphdb.Node> nodes()
           
<T> Iterable<T>
relationshipEntities(Class<T>... relationships)
           
 Iterable<org.neo4j.graphdb.Relationship> relationships()
           
<T> 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(org.neo4j.graphdb.Path delegate,
                            Neo4jTemplate template)
Method Detail

startEntity

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

endEntity

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

lastRelationshipEntity

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

nodeEntities

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

relationshipEntities

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

allPathEntities

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

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 Neo4j

Copyright © 2012 SpringSource. All Rights Reserved.