Uses of Interface
jakarta.data.page.PageRequest
Packages that use PageRequest
Package
Description
Jakarta Data provides an API that simplifies data access.
Splits query results into pages.
A repository is an interface annotated with
Repository that defines
operations on entities.-
Uses of PageRequest in jakarta.data
Methods in jakarta.data that return PageRequestModifier and TypeMethodDescriptionOrder.page(long pageNumber) Create aPageRequestfor the specified page number of page size 10 (the default forPageRequest) of the query results sorted according to any static sort criteria that is specified and the ordered list ofSortcriteria that is represented by this instance.Order.pageSize(int size) Create aPageRequestfor the first page of the specified page size of the query results sorted according to any static sort criteria that is specified and the ordered list ofSortcriteria that is represented by this instance. -
Uses of PageRequest in jakarta.data.page
Methods in jakarta.data.page that return PageRequestModifier and TypeMethodDescriptionPageRequest.afterCursor(PageRequest.Cursor cursor) Requestscursor-based paginationin the forward direction, starting after the specified key.Requestscursor-based paginationin the forward direction, starting after the specified key.Creates a new page request with the same pagination information, appending the specifiedascending sortwith lower priority than all other sort criteria (if any) that have already been specified.PageRequest.ascIgnoreCase(String property) Creates a new page request with the same pagination information, appending the specifiedcase-insensitive ascending sortwith lower priority than all other sort criteria (if any) that have already been specified.PageRequest.beforeCursor(PageRequest.Cursor cursor) Requestscursor-based paginationin the previous page direction relative to the specified key values.Requestscursor-based paginationin the previous page direction relative to the specified key.Creates a new page request with the same pagination information, appending the specifieddescending sortwith lower priority than all other sort criteria (if any) that have already been specified.PageRequest.descIgnoreCase(String property) Creates a new page request with the same pagination information, appending the specifiedcase-insensitive descending sortwith lower priority than all other sort criteria (if any) that have already been specified.PageRequest.next()Returns thePageRequestrequesting the next page if using offset pagination.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.<E> PageRequest<E> Page.nextPageRequest(Class<E> entityClass) Returns a request for the next page ifPage.hasNext()indicates there might be a next page.static <T> PageRequest<T> Creates a page request to use when querying on entities of the specified entity class.static <T> PageRequest<T> PageRequest.ofPage(long pageNumber) Creates a new page request with the given page number and with a default size of 10.static <T> PageRequest<T> PageRequest.ofSize(int maxPageSize) Creates a new page request for requesting pages of the specified size, starting with the first page number, which is 1.PageRequest.page(long pageNumber) Creates a new page request with the same pagination information, but with the specified page number.Page.pageRequest()Returns the page request for which this page was obtained.<E> PageRequest<E> Page.pageRequest(Class<E> entityClass) Returns the page request for which this page was obtained.PageRequest.previous()Returns thePageRequestrequesting the previous page if using offset pagination, or null if this is the first page, that is, whenpage()returns1.CursoredPage.previousPageRequest()Creates a request for the previous page in a reverse direction from the current page.Page.previousPageRequest()Returns a request for thepreviouspage, ifPage.hasPrevious()indicates there might be a previous page.<E> PageRequest<E> Page.previousPageRequest(Class<E> entityClass) 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.Creates a new page request with the same pagination information, but using the specified sort criteria.Creates a new page request with the same pagination information, but using the specified sort criteria.Creates a new page request with the same pagination information, but using the specified sort criteria.PageRequest.sortBy(Sort<? super T> sort1, Sort<? super T> sort2, Sort<? super T> sort3, Sort<? super T> sort4) Creates a new page request with the same pagination information, but using the specified sort criteria.PageRequest.sortBy(Sort<? super T> sort1, Sort<? super T> sort2, Sort<? super T> sort3, Sort<? super T> sort4, Sort<? super T> sort5) Creates a new page request with the same pagination information, but using the specified sort criteria.Creates a new page request with the same pagination information, but using the specified sort criteria.PageRequest.withoutTotal()Returns an otherwise-equivalent page request withrequestTotal()set tofalse, so that totals will not be retrieved from the database.PageRequest.withTotal()Returns an otherwise-equivalent page request withrequestTotal()set tofalse, so that totals will be retrieved from the database. -
Uses of PageRequest in jakarta.data.page.impl
Methods in jakarta.data.page.impl that return PageRequestModifier and TypeMethodDescriptionCursoredPageRecord.nextPageRequest()Returns the value of thenextPageRequestrecord component.<E> PageRequest<E> CursoredPageRecord.nextPageRequest(Class<E> entityClass) PageRecord.nextPageRequest()<E> PageRequest<E> PageRecord.nextPageRequest(Class<E> entityClass) CursoredPageRecord.pageRequest()Returns the value of thepageRequestrecord component.<E> PageRequest<E> CursoredPageRecord.pageRequest(Class<E> entityClass) PageRecord.pageRequest()Returns the value of thepageRequestrecord component.<E> PageRequest<E> PageRecord.pageRequest(Class<E> entityClass) CursoredPageRecord.previousPageRequest()Returns the value of thepreviousPageRequestrecord component.<E> PageRequest<E> CursoredPageRecord.previousPageRequest(Class<E> entityClass) PageRecord.previousPageRequest()<E> PageRequest<E> PageRecord.previousPageRequest(Class<E> entityClass) Constructors in jakarta.data.page.impl with parameters of type PageRequestModifierConstructorDescriptionCursoredPageRecord(List<T> content, List<PageRequest.Cursor> cursors, long totalElements, PageRequest<T> pageRequest, PageRequest<T> nextPageRequest, PageRequest<T> previousPageRequest) Creates an instance of aCursoredPageRecordrecord class.PageRecord(PageRequest<T> 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<T> 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<T> pageRequest) Returns aPageof entities according to the page request that is provided as thePageRequestparameter.