Uses of Interface
jakarta.data.page.Pageable
Package
Description
Splits query results into slices or pages.
In Domain-driven design, DDD, a repository is an object that participates in the domain but abstracts away storage
and infrastructure details.
-
Uses of Pageable in jakarta.data.page
Modifier and TypeMethodDescriptionPageable.afterKeyset
(Object... keyset) Requestskeyset pagination
in the forward direction, starting after the specified keyset values.Pageable.afterKeysetCursor
(Pageable.Cursor keysetCursor) Requestskeyset pagination
in the forward direction, starting after the specified keyset values.Pageable.beforeKeyset
(Object... keyset) Requestskeyset pagination
in the reverse direction, starting after the specified keyset values.Pageable.beforeKeysetCursor
(Pageable.Cursor keysetCursor) Requestskeyset pagination
in the reverse direction, starting after the specified keyset values.Pageable.next()
Returns thePageable
requesting the next page if using offset pagination.KeysetAwareSlice.nextPageable()
Returns pagination information for requesting the next page in a forward direction from the current page.Slice.nextPageable()
Returns the nextnext()
, ornull
if it is known that there is no next page.static Pageable
Pageable.ofPage
(long pageNumber) Creates a newPageable
with the given page number and with a default size of 10.static Pageable
Pageable.ofSize
(int maxPageSize) Creates a newPageable
for requesting pages of the specified size, starting with the first page number, which is 1.Pageable.page
(long pageNumber) Creates a newPageable
instance representing the same pagination information, except with the specified page number.Slice.pageable()
Returns the currentPageable
KeysetAwareSlice.previousPageable()
Returns pagination information for requesting the previous page in a reverse direction from the current page.Pageable.size
(int maxPageSize) Creates a newPageable
instance representing the same pagination information, except with the specified maximum page size.Creates a newPageable
instance representing the same pagination information, except using the specified sort criteria.Creates a newPageable
instance representing the same pagination information, except using the specified sort criteria. -
Uses of Pageable in jakarta.data.repository