|
Spring Data Neo4j | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@NoRepositoryBean public interface CRUDRepository<T>
CRUD interface for graph repositories, used as base repository for crud operations
Method Summary | |
---|---|
long |
count()
uses the configured TypeRepresentationStrategy, depending on the strategy this number might be an approximation |
void |
delete(Iterable<? extends T> entities)
deletes the given entities by calling their entity.remove() methods |
void |
delete(T entity)
deletes the given entity by calling its entity.remove() method |
void |
deleteAll()
removes all entities of this type, use with care |
boolean |
exists(Long id)
|
org.neo4j.helpers.collection.ClosableIterable<T> |
findAll()
uses the configured TypeRepresentationStrategy to load all entities, might return a large result |
org.springframework.data.domain.Page<T> |
findAll(org.springframework.data.domain.Pageable pageable)
finder that takes the provided sorting and paging into account NOTE: the sorting is not yet implemented |
org.neo4j.helpers.collection.ClosableIterable<T> |
findAll(org.springframework.data.domain.Sort sort)
finder that takes the provided sorting into account NOTE: the sorting is not yet implemented |
T |
findOne(Long id)
|
Iterable<T> |
save(Iterable<? extends T> entities)
persists the provided entities by forwarding to their entity.persist() methods |
T |
save(T entity)
persists an entity by forwarding to entity.persist() |
Methods inherited from interface org.springframework.data.repository.CrudRepository |
---|
delete |
Method Detail |
---|
@Transactional T save(T entity)
save
in interface org.springframework.data.repository.CrudRepository<T,Long>
entity
- to be persisted
@Transactional Iterable<T> save(Iterable<? extends T> entities)
save
in interface org.springframework.data.repository.CrudRepository<T,Long>
entities
- to be persisted
T findOne(Long id)
findOne
in interface org.springframework.data.repository.CrudRepository<T,Long>
id
- of the node or relationship-entity
boolean exists(Long id)
exists
in interface org.springframework.data.repository.CrudRepository<T,Long>
id
-
org.neo4j.helpers.collection.ClosableIterable<T> findAll()
findAll
in interface org.springframework.data.repository.CrudRepository<T,Long>
long count()
count
in interface org.springframework.data.repository.CrudRepository<T,Long>
@Transactional void delete(T entity)
delete
in interface org.springframework.data.repository.CrudRepository<T,Long>
entity
- to delete@Transactional void delete(Iterable<? extends T> entities)
delete
in interface org.springframework.data.repository.CrudRepository<T,Long>
entities
- to delete@Transactional void deleteAll()
deleteAll
in interface org.springframework.data.repository.CrudRepository<T,Long>
org.neo4j.helpers.collection.ClosableIterable<T> findAll(org.springframework.data.domain.Sort sort)
findAll
in interface org.springframework.data.repository.PagingAndSortingRepository<T,Long>
sort
-
org.springframework.data.domain.Page<T> findAll(org.springframework.data.domain.Pageable pageable)
findAll
in interface org.springframework.data.repository.PagingAndSortingRepository<T,Long>
pageable
-
|
Spring Data Neo4j | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |