| Modifier and Type | Field and Description |
|---|---|
| private final PageRequest. | |
| private final long | |
| private final boolean | requestTotal
Record Component accessed by requestTotal(). |
| private final int | |
| private final PageRequest. |
| Access | Constructor and Description |
|---|---|
| pack-priv | Pagination(long page, int size, PageRequest.
|
| Modifier and Type | Method and Description |
|---|---|
| public PageRequest | afterCursor(PageRequest.
cursor with key values, the order and number of which must match the
cursorOrderBy annotations, jakarta. parameters, or
OrderBy name pattern of the repository method to which
this pagination will be supplied.Implements jakarta. Requests cursor-based pagination in the forward direction, starting after the specified key. |
| public PageRequest | beforeCursor(PageRequest.
cursor with key values, the order and number of which must match the
cursorOrderBy annotations, jakarta. parameters, or
OrderBy name pattern of the repository method to which
this pagination will be supplied.Implements jakarta. Requests cursor-based pagination in the previous page direction relative to the specified key values. |
| public Optional | cursor()
Implements jakarta. Returns the key values which are the starting point for cursor-based pagination. |
| public final boolean | equals(Object
the reference object with which to compare. o)Implements abstract java. Implements jakarta. Compares with another instance to determine if both represent the same pagination information. |
| public final int | |
| public PageRequest. | mode()
Record Component getter of mode. Implements jakarta. Returns the type of pagination.
|
| public long | page()
Record Component getter of page. Implements jakarta. Returns the page to be returned.
|
| public boolean | requestTotal()
Record Component getter of requestTotal. Implements jakarta. Indicates that a query method which returns a
|
| public PageRequest | size(int
the number of query results in a full page. maxPageSize)Implements jakarta. Creates a new page request with the same pagination information, but with the specified maximum page size. |
| public int | size()
Record Component getter of size. Implements jakarta. Returns the requested size of each page
|
| public String | toString()
Implements abstract java. Returns a string representation of the record. |
| public PageRequest. | |
| public PageRequest | withoutTotal()
Implements jakarta. Returns an otherwise-equivalent page request with
|
| public PageRequest | withTotal()
Implements jakarta. Returns an otherwise-equivalent page request with
|
| mode | back to summary |
|---|---|
| private final PageRequest. Record Component accessed by mode(). | |
| page | back to summary |
|---|---|
| private final long page Record Component accessed by page(). | |
| requestTotal | back to summary |
|---|---|
| private final boolean requestTotal Record Component accessed by requestTotal(). | |
| size | back to summary |
|---|---|
| private final int size Record Component accessed by size(). | |
| type | back to summary |
|---|---|
| private final PageRequest. Record Component accessed by type(). | |
| Pagination | back to summary |
|---|---|
| pack-priv Pagination(long page, int size, PageRequest. | |
| afterCursor | back to summary |
|---|---|
| public PageRequest afterCursor(PageRequest. Implements jakarta. Doc from jakarta. Requests cursor-based pagination in the forward direction, starting after the specified key.
| |
| beforeCursor | back to summary |
|---|---|
| public PageRequest beforeCursor(PageRequest. Implements jakarta. Doc from jakarta. Requests cursor-based pagination in the previous page direction relative to the specified key values.
| |
| cursor | back to summary |
|---|---|
| public Optional Implements jakarta. Doc from jakarta. Returns the key values which are the starting point for cursor-based pagination.
| |
| equals | back to summary |
|---|---|
| public final boolean equals(Object o) Implements abstract java. Implements jakarta. Doc from jakarta. Compares with another instance to determine if both represent the same pagination information.
| |
| hashCode | back to summary |
|---|---|
| public final int hashCode() Implements abstract java. Doc from java. Returns a hash code value for the record.
Obeys the general contract of
| |
| mode | back to summary |
|---|---|
| public PageRequest. Record Component getter of mode. Implements jakarta. Doc from jakarta. Returns the type of pagination.
| |
| page | back to summary |
|---|---|
| public long page() Record Component getter of page. Implements jakarta. Doc from jakarta. Returns the page to be returned.
| |
| requestTotal | back to summary |
|---|---|
| public boolean requestTotal() Record Component getter of requestTotal. Implements jakarta. Doc from jakarta. Indicates that a query method which returns a
| |
| size | back to summary |
|---|---|
| public PageRequest size(int maxPageSize) Implements jakarta. Doc from jakarta. Creates a new page request with the same pagination information, but with the specified maximum page size. When a page is retrieved from the database, the number of elements in the page must be equal to the maximum page size unless there is an insufficient number of elements to retrieve from the database from the start of the page.
| |
| size | back to summary |
|---|---|
| public int size() Record Component getter of size. Implements jakarta. Doc from jakarta. Returns the requested size of each page
| |
| toString | back to summary |
|---|---|
| public String toString() Implements abstract java. Doc from java. Returns a string representation of the record.
In accordance with the general contract of In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves. | |
| type | back to summary |
|---|---|
| public PageRequest. Record Component getter of type. | |
| withoutTotal | back to summary |
|---|---|
| public PageRequest withoutTotal() Implements jakarta. Doc from jakarta. Returns an otherwise-equivalent page request with
| |
| withTotal | back to summary |
|---|---|
| public PageRequest withTotal() Implements jakarta. Doc from jakarta. Returns an otherwise-equivalent page request with
| |