org.springframework.data.neo4j.repository
Class NodeGraphRepositoryImpl<T>
java.lang.Object
org.springframework.data.neo4j.repository.AbstractGraphRepository<org.neo4j.graphdb.Node,T>
org.springframework.data.neo4j.repository.NodeGraphRepositoryImpl<T>
- All Implemented Interfaces:
- CRUDRepository<T>, CypherDslRepository<T>, GraphRepository<T>, IndexRepository<T>, NamedIndexRepository<T>, RelationshipOperationsRepository<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 NodeGraphRepositoryImpl<T>
- extends AbstractGraphRepository<org.neo4j.graphdb.Node,T>
- implements GraphRepository<T>, RelationshipOperationsRepository<T>
Method Summary |
|
createDuplicateRelationshipBetween(T start,
Object end,
Class<R> relationshipEntityClass,
String relationshipType)
|
|
createRelationshipBetween(T start,
Object end,
Class<R> relationshipEntityClass,
String relationshipType)
|
void |
deleteRelationshipBetween(T start,
Object end,
String type)
|
|
findAllByTraversal(N start,
org.neo4j.graphdb.traversal.TraversalDescription traversalDescription)
Traversal based finder that returns a lazy Iterable over the traversal results |
protected org.neo4j.graphdb.Node |
getById(long id)
|
|
getRelationshipBetween(T start,
Object end,
Class<R> relationshipEntityClass,
String relationshipType)
|
Methods inherited from class org.springframework.data.neo4j.repository.AbstractGraphRepository |
count, createEntity, createInclusiveRangeQuery, delete, delete, delete, deleteAll, exists, findAll, findAll, findAll, findAllByPropertyValue, findAllByPropertyValue, findAllByQuery, findAllByQuery, findAllByRange, findAllByRange, findByPropertyValue, findByPropertyValue, findOne, findWithinBoundingBox, findWithinDistance, findWithinWellKnownText, getIndex, 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, save, save |
Methods inherited from interface org.springframework.data.repository.CrudRepository |
delete |
NodeGraphRepositoryImpl
public NodeGraphRepositoryImpl(Class<T> clazz,
Neo4jTemplate template)
getById
protected org.neo4j.graphdb.Node getById(long id)
- Specified by:
getById
in class AbstractGraphRepository<org.neo4j.graphdb.Node,T>
findAllByTraversal
public <N> Iterable<T> findAllByTraversal(N start,
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:
start
- the node to start the traversal from
- Returns:
- Iterable over traversal result
createRelationshipBetween
public <R> R createRelationshipBetween(T start,
Object end,
Class<R> relationshipEntityClass,
String relationshipType)
- Specified by:
createRelationshipBetween
in interface RelationshipOperationsRepository<T>
createDuplicateRelationshipBetween
public <R> R createDuplicateRelationshipBetween(T start,
Object end,
Class<R> relationshipEntityClass,
String relationshipType)
- Specified by:
createDuplicateRelationshipBetween
in interface RelationshipOperationsRepository<T>
getRelationshipBetween
public <R> R getRelationshipBetween(T start,
Object end,
Class<R> relationshipEntityClass,
String relationshipType)
- Specified by:
getRelationshipBetween
in interface RelationshipOperationsRepository<T>
deleteRelationshipBetween
public void deleteRelationshipBetween(T start,
Object end,
String type)
- Specified by:
deleteRelationshipBetween
in interface RelationshipOperationsRepository<T>
Copyright © 2011 SpringSource. All Rights Reserved.