|
Spring Data JPA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface JpaRepository<T,ID extends Serializable>
JPA specific extension of Repository.
| Method Summary | ||
|---|---|---|
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(Sort sort)
|
|
void |
flush()
Flushes all pending changes to the database. |
|
|
save(Iterable<S> entities)
|
|
T |
saveAndFlush(T entity)
Saves an entity and flushes changes instantly. |
|
| Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository |
|---|
findAll |
| Methods inherited from interface org.springframework.data.repository.CrudRepository |
|---|
count, delete, delete, delete, deleteAll, exists, findAll, findOne, save |
| Method Detail |
|---|
List<T> findAll()
findAll in interface CrudRepository<T,ID extends Serializable>List<T> findAll(Sort sort)
findAll in interface PagingAndSortingRepository<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()
|
Spring Data JPA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||