|
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 |
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. |
List<T> |
save(Iterable<? extends T> 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, 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>List<T> save(Iterable<? extends T> 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 -
|
Spring Data Jpa | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||