Spring Data Neo4j

org.springframework.data.neo4j.repository
Class RelationshipGraphRepository<T>

java.lang.Object
  extended by org.springframework.data.neo4j.repository.AbstractGraphRepository<org.neo4j.graphdb.Relationship,T>
      extended by org.springframework.data.neo4j.repository.RelationshipGraphRepository<T>
All Implemented Interfaces:
CRUDRepository<T>, CypherDslRepository<T>, GraphRepository<T>, IndexRepository<T>, NamedIndexRepository<T>, SpatialRepository<T>, TraversalRepository<T>, org.springframework.data.repository.CrudRepository<T,Long>, org.springframework.data.repository.PagingAndSortingRepository<T,Long>, org.springframework.data.repository.Repository<T,Long>

@Repository
public class RelationshipGraphRepository<T>
extends AbstractGraphRepository<org.neo4j.graphdb.Relationship,T>
implements GraphRepository<T>


Field Summary
 
Fields inherited from class org.springframework.data.neo4j.repository.AbstractGraphRepository
clazz, EMPTY_CLOSABLE_ITERABLE, template
 
Constructor Summary
RelationshipGraphRepository(Class<T> clazz, Neo4jTemplate template)
           
 
Method Summary
<N> Iterable<T>
findAllByTraversal(N startNode, org.neo4j.graphdb.traversal.TraversalDescription traversalDescription)
          Traversal based finder that returns a lazy Iterable over the traversal results
protected  org.neo4j.graphdb.Relationship getById(long id)
           
 
Methods inherited from class org.springframework.data.neo4j.repository.AbstractGraphRepository
count, createEntity, createInclusiveRangeQuery, delete, delete, delete, deleteAll, exists, findAll, findAll, findAll, findAll, findAllByPropertyValue, findAllByPropertyValue, findAllByQuery, findAllByQuery, findAllByRange, findAllByRange, findByPropertyValue, findByPropertyValue, findOne, findWithinBoundingBox, findWithinDistance, findWithinWellKnownText, getIndex, getStoredJavaType, query, query, save, save
 
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.repository.CRUDRepository
count, delete, delete, deleteAll, exists, findAll, findAll, findAll, findOne, getStoredJavaType, save, save
 
Methods inherited from interface org.springframework.data.repository.CrudRepository
delete, findAll
 
Methods inherited from interface org.springframework.data.neo4j.repository.IndexRepository
findAllByPropertyValue, findAllByQuery, findAllByRange, findByPropertyValue
 

Constructor Detail

RelationshipGraphRepository

public RelationshipGraphRepository(Class<T> clazz,
                                   Neo4jTemplate template)
Method Detail

getById

protected org.neo4j.graphdb.Relationship getById(long id)
Specified by:
getById in class AbstractGraphRepository<org.neo4j.graphdb.Relationship,T>

findAllByTraversal

public <N> Iterable<T> findAllByTraversal(N startNode,
                                          org.neo4j.graphdb.traversal.TraversalDescription traversalDescription)
Description copied from interface: TraversalRepository
Traversal based finder that returns a lazy Iterable over the traversal results

Specified by:
findAllByTraversal in interface TraversalRepository<T>
Type Parameters:
N - Start node entity type
Parameters:
startNode - the node to start the traversal from
Returns:
Iterable over traversal result

Spring Data Neo4j

Copyright © 2012 SpringSource. All Rights Reserved.