@NoRepositoryBean public interface JpaRepository<T,ID extends Serializable> extends PagingAndSortingRepository<T,ID>
Repository
.Modifier and Type | Method and Description |
---|---|
void |
deleteAllInBatch()
Deletes all entites in a batch call.
|
void |
deleteInBatch(Iterable<T> entities)
Deletes the given entities in a batch which means it will create a single
Query . |
List<T> |
findAll() |
List<T> |
findAll(Iterable<ID> ids) |
List<T> |
findAll(Sort sort) |
void |
flush()
Flushes all pending changes to the database.
|
T |
getOne(ID id)
Returns a reference to the entity with the given identifier.
|
<S extends T> |
save(Iterable<S> entities) |
T |
saveAndFlush(T entity)
Saves an entity and flushes changes instantly.
|
findAll
List<T> findAll()
findAll
in interface CrudRepository<T,ID extends Serializable>
List<T> findAll(Sort sort)
findAll
in interface PagingAndSortingRepository<T,ID extends Serializable>
List<T> findAll(Iterable<ID> ids)
findAll
in interface CrudRepository<T,ID extends Serializable>
<S extends T> List<S> save(Iterable<S> entities)
save
in interface CrudRepository<T,ID extends Serializable>
void flush()
T saveAndFlush(T entity)
entity
- void deleteInBatch(Iterable<T> entities)
Query
. Assume that we will clear
the EntityManager
after the call.entities
- void deleteAllInBatch()
Copyright © 2011-2013-2014 Pivotal. All Rights Reserved.