public abstract class PageableWithFullTextDataCallback extends Object implements FullTextSearchPageable
onFullTextSearchData(FullTextSearchData) after current page is fetched and full
text search data is available.| Modifier and Type | Method and Description |
|---|---|
List |
getAllResults()
Returns all results on all pages.
|
List |
getCurrentPage()
Gets the entries of the current record.
|
FullTextSearchData |
getFullTextSearchData()
Gets full text search data.
|
Pageable |
getPageable() |
int |
getPageNumber()
Returns the active page number.
|
int |
getPageSize()
Returns the page size.
|
String |
getQueryId() |
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 |
nextPage()
Gets the entries of the next record page and updates the current page number (see
Pageable.getCurrentPage()). |
List |
previousPage()
Get the entries of the previous page and updates the current page number (see
Pageable.getCurrentPage()). |
void |
refresh()
Refreshes current page.
|
void |
setPageNumber(int pageNo)
Sets the active page number.
|
List |
setPageSize(int pageSize)
Changes the page size and returns the current page with a new page size.
|
void |
setQueryId(String queryId) |
void |
setSortData(SortData sortData) |
public List getCurrentPage()
PageablegetCurrentPage in interface Pageablepublic Pageable getPageable()
public void refresh()
Pageablepublic List nextPage()
PageablePageable.getCurrentPage()).nextPage in interface PageablePageable.hasNextPage() returns falsepublic List previousPage()
PageablePageable.getCurrentPage()).previousPage in interface PageableRESULT or empty list if Pageable.hasPreviousPage() returns false.public boolean hasNextPage()
PageablehasNextPage in interface Pageablepublic boolean hasPreviousPage()
PageablehasPreviousPage in interface Pageablepublic int getPageSize()
PageablegetPageSize in interface Pageablepublic String getTypeCode()
PageablegetTypeCode in interface Pageablepublic List setPageSize(int pageSize)
PageablesetPageSize in interface PageablepageSize - - new page sizeList of RESULT or empty list.public int getTotalCount()
PageablegetTotalCount in interface Pageablepublic int getPageNumber()
PageablegetPageNumber in interface Pageablepublic void setPageNumber(int pageNo)
PageablesetPageNumber in interface Pageablepublic SortData getSortData()
PageablegetSortData in interface Pageablepublic void setSortData(SortData sortData)
setSortData in interface PageablesortData - sort related informationpublic List getAllResults()
PageablegetAllResults in interface Pageablepublic FullTextSearchData getFullTextSearchData()
FullTextSearchPageablegetFullTextSearchData in interface FullTextSearchPageablepublic String getQueryId()
getQueryId in interface IdentifiableSearchQuerypublic void setQueryId(String queryId)
setQueryId in interface PageablequeryId - Queries with same identifiers are assumed to perform same request to data sourceCopyright © 2018. All rights reserved.