Uses of Class
org.nuiton.util.pagination.PaginationParameter
| Package | Description |
|---|---|
| org.nuiton.util.pagination |
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 PaginationParameter Modifier and Type Field Description static PaginationParameterPaginationParameter. ALLAn instance that represents a page of ALL elementsprotected PaginationParameterPaginationResult. currentPageMethods in org.nuiton.util.pagination that return PaginationParameter Modifier and Type Method Description PaginationParameterPaginationParameter.PaginationParameterBuilder. build()Final method that instantiates the immutable PaginationParameterPaginationParameterPaginationResult. getCurrentPage()PaginationParameterPaginationResult. getFirstPage()PaginationParameterPaginationResult. getLastPage()PaginationParameterPaginationResult. getNextPage()PaginationParameterPaginationResult. getPreviousPage()static PaginationParameterPaginationParameter. of(int pageNumber, int pageSize)Method to create a PaginationParameter only based on pageNumber and pageSize (no order clauses).static PaginationParameterPaginationParameter. of(int pageNumber, int pageSize, java.lang.String orderClause1, boolean orderDesc1)Method to create a PaginationParameter based on pageNumber, pageSize and a single order clause.static PaginationParameterPaginationParameter. of(int pageNumber, int pageSize, java.lang.String orderClause1, boolean orderDesc1, java.lang.String orderClause2, boolean orderDesc2)Method to create a PaginationParameter based on pageNumber, pageSize and two order clauses.static PaginationParameterPaginationParameter. of(int pageNumber, int pageSize, java.lang.String orderClause1, boolean orderDesc1, java.lang.String orderClause2, boolean orderDesc2, java.lang.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 PaginationParameter Modifier and Type Method Description static <T> PaginationResult<T>PaginationResult. fromFullList(java.util.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(java.util.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 PaginationParameter Constructor Description PaginationResult(java.util.List<O> elements, long count, PaginationParameter currentPage)