Package jakarta.data.repository
Interface PageableRepository<T,K>
- Type Parameters:
T
- the domain type the repository managesK
- the type of the id of the entity the repository manages
- All Superinterfaces:
BasicRepository<T,
,K> DataRepository<T,
K>
Repository fragment to provide methods to retrieve entities using the pagination and sorting abstraction. In many
cases this will be combined with
BasicRepository
or similar or with manually added methods to provide CRUD
functionality.- See Also:
-
Method Summary
Methods inherited from interface jakarta.data.repository.BasicRepository
count, delete, deleteAll, deleteAll, deleteById, deleteByIdIn, existsById, findAll, findById, findByIdIn, save, saveAll
-
Method Details
-
findAll
- Parameters:
pageable
- the pageable to request a paginated result, must not be null.- Returns:
- a page of entities; will never be null.
- Throws:
NullPointerException
- when pageable is nullUnsupportedOperationException
- for Key-Value and Wide-Column databases when thePageable.Mode.CURSOR_NEXT
orPageable.Mode.CURSOR_PREVIOUS
pagination mode is selected.- See Also:
-