public interface Pageable<R> extends IdentifiableSearchQuery
R.| Modifier and Type | Method and Description |
|---|---|
List<R> |
getAllResults()
Returns all results on all pages.
|
List<R> |
getCurrentPage()
Gets the entries of the current record.
|
int |
getPageNumber()
Returns the active page number.
|
int |
getPageSize()
Returns the page size.
|
SortData |
getSortData()
Returns sort related information
|
int |
getTotalCount()
Returns count of all items in the collection that is being paged.
|
String |
getTypeCode()
Returns the "common" type code of all entries.
|
boolean |
hasNextPage()
Determines if there is a next page.
|
boolean |
hasPreviousPage()
Determines if there is a previous page.
|
List<R> |
nextPage()
Gets the entries of the next record page and updates the current page number (see
getCurrentPage()). |
List<R> |
previousPage()
Get the entries of the previous page and updates the current page number (see
getCurrentPage()). |
void |
refresh()
Refreshes current page.
|
void |
setPageNumber(int pageNo)
Sets the active page number.
|
List<R> |
setPageSize(int pageSize)
Changes the page size and returns the current page with a new page size.
|
default void |
setQueryId(String queryId) |
void |
setSortData(SortData sortData) |
getQueryIdList<R> getCurrentPage()
void refresh()
List<R> nextPage()
getCurrentPage()).hasNextPage() returns falseList<R> previousPage()
getCurrentPage()).RESULT or empty list if hasPreviousPage() returns false.boolean hasNextPage()
boolean hasPreviousPage()
int getPageSize()
String getTypeCode()
List<R> setPageSize(int pageSize)
pageSize - - new page sizeList of RESULT or empty list.int getTotalCount()
int getPageNumber()
void setPageNumber(int pageNo)
SortData getSortData()
void setSortData(SortData sortData)
sortData - sort related informationList<R> getAllResults()
default void setQueryId(String queryId)
queryId - Queries with same identifiers are assumed to perform same request to data sourceCopyright © 2018. All rights reserved.