Uses of Class
org.nuiton.util.pagination.PaginationParameter
Packages that use PaginationParameter
Package
Description
This package contains all about pagination :
PaginationParameter to express the input pagination parameters when
preparing a query
PaginationOrder represents an order clause together with asc/desc
PaginationResult represents a list together with the pagination parameters
used to get the list of elements.-
Uses of PaginationParameter in org.nuiton.util.pagination
Fields in org.nuiton.util.pagination declared as PaginationParameterModifier and TypeFieldDescriptionstatic final PaginationParameterPaginationParameter.ALLAn instance that represents a page of ALL elementsprotected PaginationParameterPaginationResult.currentPageMethods in org.nuiton.util.pagination that return PaginationParameterModifier and TypeMethodDescriptionPaginationParameter.PaginationParameterBuilder.build()Final method that instantiates the immutable PaginationParameterPaginationResult.getCurrentPage()PaginationResult.getFirstPage()PaginationResult.getLastPage()PaginationResult.getNextPage()PaginationResult.getPreviousPage()static PaginationParameterPaginationParameter.of(int pageNumber, int pageSize) Method to create a PaginationParameter only based on pageNumber and pageSize (no order clauses).static PaginationParameterMethod to create a PaginationParameter based on pageNumber, pageSize and a single order clause.static PaginationParameterPaginationParameter.of(int pageNumber, int pageSize, String orderClause1, boolean orderDesc1, String orderClause2, boolean orderDesc2) Method to create a PaginationParameter based on pageNumber, pageSize and two order clauses.static PaginationParameterPaginationParameter.of(int pageNumber, int pageSize, String orderClause1, boolean orderDesc1, String orderClause2, boolean orderDesc2, String orderClause3, boolean orderDesc3) Method to create a PaginationParameter based on pageNumber, pageSize and three order clauses.Methods in org.nuiton.util.pagination with parameters of type PaginationParameterModifier and TypeMethodDescriptionstatic <T> PaginationResult<T> PaginationResult.empty(PaginationParameter requestedPage) Creates an instance for an empty result.static <T> PaginationResult<T> PaginationResult.fromFullList(List<T> fullList, PaginationParameter requestedPage) Creates an instance using the full list of elements ({code}fullList{/code}) and the {code}requestedPage{/code}PaginationParameter.static <T> PaginationResult<T> PaginationResult.of(List<T> elements, long count, PaginationParameter currentPage) Creates an instance using the already computed list of {code}elements{/code} and {code}count{/count}, together with the {code}currentPage{/code}PaginationParameterused to build it.Constructors in org.nuiton.util.pagination with parameters of type PaginationParameterModifierConstructorDescriptionprotectedPaginationResult(List<O> elements, long count, PaginationParameter currentPage)