T - the type of the entity to handle@Repository @Transactional(readOnly=true) public class SimpleNeo4jRepository<T,ID extends Serializable> extends Object implements Neo4jRepository<T,ID>
CrudRepository interface. This will offer
you a more sophisticated interface than the plain Session .| Constructor and Description |
|---|
SimpleNeo4jRepository(Class<T> domainClass,
org.neo4j.ogm.session.Session session)
Creates a new
SimpleNeo4jRepository to manage objects of the given domain type. |
| Modifier and Type | Method and Description |
|---|---|
long |
count() |
void |
delete(ID id) |
void |
delete(Iterable<? extends T> ts) |
void |
delete(T t) |
void |
deleteAll() |
boolean |
exists(ID id) |
Iterable<T> |
findAll() |
Iterable<T> |
findAll(int depth) |
Iterable<T> |
findAll(Iterable<ID> longs) |
Iterable<T> |
findAll(Iterable<ID> ids,
int depth) |
Iterable<T> |
findAll(Iterable<ID> ids,
Sort sort) |
Iterable<T> |
findAll(Iterable<ID> ids,
Sort sort,
int depth) |
Page<T> |
findAll(Pageable pageable)
Returns a
Page of entities meeting the paging restriction provided in the Pageable object. |
Page<T> |
findAll(Pageable pageable,
int depth)
Returns a
Page of entities meeting the paging restriction provided in the Pageable object. |
Iterable<T> |
findAll(Sort sort) |
Iterable<T> |
findAll(Sort sort,
int depth) |
T |
findOne(ID id) |
T |
findOne(ID id,
int depth) |
protected Class<T> |
getDomainClass() |
<S extends T> |
save(Iterable<S> entities) |
<S extends T> |
save(Iterable<S> ses,
int depth) |
<S extends T> |
save(S entity) |
<S extends T> |
save(S s,
int depth) |
public SimpleNeo4jRepository(Class<T> domainClass, org.neo4j.ogm.session.Session session)
SimpleNeo4jRepository to manage objects of the given domain type.domainClass - must not be null.session - must not be null.@Transactional public <S extends T> S save(S entity)
save in interface CrudRepository<T,ID extends Serializable>@Transactional public <S extends T> Iterable<S> save(Iterable<S> entities)
save in interface CrudRepository<T,ID extends Serializable>public T findOne(ID id)
findOne in interface CrudRepository<T,ID extends Serializable>public boolean exists(ID id)
exists in interface CrudRepository<T,ID extends Serializable>public long count()
count in interface CrudRepository<T,ID extends Serializable>@Transactional public void delete(ID id)
delete in interface CrudRepository<T,ID extends Serializable>@Transactional public void delete(T t)
delete in interface CrudRepository<T,ID extends Serializable>@Transactional public void delete(Iterable<? extends T> ts)
delete in interface CrudRepository<T,ID extends Serializable>@Transactional public void deleteAll()
deleteAll in interface CrudRepository<T,ID extends Serializable>@Transactional public <S extends T> S save(S s, int depth)
save in interface Neo4jRepository<T,ID extends Serializable>@Transactional public <S extends T> Iterable<S> save(Iterable<S> ses, int depth)
save in interface Neo4jRepository<T,ID extends Serializable>public T findOne(ID id, int depth)
findOne in interface Neo4jRepository<T,ID extends Serializable>public Iterable<T> findAll()
findAll in interface Neo4jRepository<T,ID extends Serializable>findAll in interface CrudRepository<T,ID extends Serializable>public Iterable<T> findAll(int depth)
findAll in interface Neo4jRepository<T,ID extends Serializable>public Iterable<T> findAll(Iterable<ID> longs)
findAll in interface Neo4jRepository<T,ID extends Serializable>findAll in interface CrudRepository<T,ID extends Serializable>public Iterable<T> findAll(Iterable<ID> ids, int depth)
findAll in interface Neo4jRepository<T,ID extends Serializable>public Iterable<T> findAll(Sort sort)
findAll in interface Neo4jRepository<T,ID extends Serializable>findAll in interface PagingAndSortingRepository<T,ID extends Serializable>public Iterable<T> findAll(Sort sort, int depth)
findAll in interface Neo4jRepository<T,ID extends Serializable>public Iterable<T> findAll(Iterable<ID> ids, Sort sort)
findAll in interface Neo4jRepository<T,ID extends Serializable>public Iterable<T> findAll(Iterable<ID> ids, Sort sort, int depth)
findAll in interface Neo4jRepository<T,ID extends Serializable>public Page<T> findAll(Pageable pageable)
Neo4jRepositoryPage of entities meeting the paging restriction provided in the Pageable object.
Page.getTotalPages() returns an estimation of the total number of pages and should not be relied upon for accuracy.findAll in interface Neo4jRepository<T,ID extends Serializable>findAll in interface PagingAndSortingRepository<T,ID extends Serializable>public Page<T> findAll(Pageable pageable, int depth)
Neo4jRepositoryPage of entities meeting the paging restriction provided in the Pageable object.
Page.getTotalPages() returns an estimation of the total number of pages and should not be relied upon for accuracy.findAll in interface Neo4jRepository<T,ID extends Serializable>Copyright © 2011-2015–2017 Pivotal Software, Inc.. All rights reserved.