Uses of Interface
jakarta.data.page.PageRequest
Packages that use PageRequest
Package
Description
Splits query results into pages.
A repository is an interface annotated with
Repository that defines
operations on entities.-
Uses of PageRequest in jakarta.data.page
Classes in jakarta.data.page that implement PageRequestModifier and TypeClassDescription(package private) final recordBuilt-in implementation of PageRequest.Methods in jakarta.data.page that return PageRequestModifier and TypeMethodDescriptionPageRequest.afterCursor(PageRequest.Cursor cursor) Requests cursor-based pagination in the forward direction, starting after the specified key.static PageRequestPageRequest.afterCursor(PageRequest.Cursor cursor, long pageNumber, int maxPageSize, boolean requestTotal) Requests cursor-based pagination in the forward direction, starting after the specified key.Pagination.afterCursor(PageRequest.Cursor cursor) PageRequest.beforeCursor(PageRequest.Cursor cursor) Requests cursor-based pagination in the previous page direction relative to the specified key values.static PageRequestPageRequest.beforeCursor(PageRequest.Cursor cursor, long pageNumber, int maxPageSize, boolean requestTotal) Requests cursor-based pagination in the previous page direction relative to the specified cursor.Pagination.beforeCursor(PageRequest.Cursor cursor) CursoredPage.nextPageRequest()Creates a request for the next page in a forward direction from the current page.Page.nextPageRequest()Returns a request for the next page ifPage.hasNext()indicates there might be a next page.static PageRequestPageRequest.ofPage(long pageNumber) Creates a new page request with the given page number and with a default size of 10.static PageRequestPageRequest.ofPage(long pageNumber, int maxPageSize, boolean requestTotal) Creates a new page request without a cursor.static PageRequestPageRequest.ofSize(int maxPageSize) Creates a new page request for requesting pages of the specified size, starting with the first page number, which is 1.Page.pageRequest()Returns the page request for which this page was obtained.CursoredPage.previousPageRequest()Creates a request for the previous page in a reverse direction from the current page.Page.previousPageRequest()Returns a request for the previous page, ifPage.hasPrevious()indicates there might be a previous page.PageRequest.size(int maxPageSize) Creates a new page request with the same pagination information, but with the specified maximum page size.Pagination.size(int maxPageSize) PageRequest.withoutTotal()Returns an otherwise-equivalent page request withrequestTotal()set tofalse, so that totals will not be retrieved from the database.Pagination.withoutTotal()PageRequest.withTotal()Returns an otherwise-equivalent page request withrequestTotal()set tofalse, so that totals will be retrieved from the database.Pagination.withTotal() -
Uses of PageRequest in jakarta.data.page.impl
Fields in jakarta.data.page.impl declared as PageRequestModifier and TypeFieldDescriptionprivate final PageRequestCursoredPageRecord.nextPageRequestThe field for thenextPageRequestrecord component.private final PageRequestCursoredPageRecord.pageRequestThe field for thepageRequestrecord component.private final PageRequestPageRecord.pageRequestThe field for thepageRequestrecord component.private final PageRequestCursoredPageRecord.previousPageRequestThe field for thepreviousPageRequestrecord component.Methods in jakarta.data.page.impl that return PageRequestModifier and TypeMethodDescriptionCursoredPageRecord.nextPageRequest()Returns the value of thenextPageRequestrecord component.PageRecord.nextPageRequest()CursoredPageRecord.pageRequest()Returns the value of thepageRequestrecord component.PageRecord.pageRequest()Returns the value of thepageRequestrecord component.CursoredPageRecord.previousPageRequest()Returns the value of thepreviousPageRequestrecord component.PageRecord.previousPageRequest()Constructors in jakarta.data.page.impl with parameters of type PageRequestModifierConstructorDescriptionCursoredPageRecord(List<T> content, List<PageRequest.Cursor> cursors, long totalElements, PageRequest pageRequest, boolean firstPage, boolean lastPage) CursoredPageRecord(List<T> content, List<PageRequest.Cursor> cursors, long totalElements, PageRequest pageRequest, PageRequest nextPageRequest, PageRequest previousPageRequest) Creates an instance of aCursoredPageRecordrecord class.PageRecord(PageRequest pageRequest, List<T> content, long totalElements) Constructs a new instance, computing thePageRecord.moreResultscomponent astrueif the pagecontentis a full page of results and thetotalElementsis either unavailable (indicated by a negative value) or it exceeds the current page number multiplied by thesizeof a full page.PageRecord(PageRequest pageRequest, List<T> content, long totalElements, boolean moreResults) Creates an instance of aPageRecordrecord class. -
Uses of PageRequest in jakarta.data.repository
Methods in jakarta.data.repository with parameters of type PageRequestModifier and TypeMethodDescriptionBasicRepository.findAll(PageRequest pageRequest, Order<T> sortBy) Returns aPageof entities according to the page request that is provided as thePageRequestparameter.