public class JdbcQueryResultPager extends Object implements ResultPager<Record>
| Constructor and Description |
|---|
JdbcQueryResultPager(JdbcRecordStore recordStore,
Map<String,Object> properties,
Query query) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected void |
finalize() |
int |
getEndIndex()
Get the index of the last object in the current page.
|
List<Record> |
getList()
Get the list of objects in the current page.
|
int |
getNextPageNumber()
Get the page number of the next page.
|
int |
getNumPages()
Get the number of pages.
|
int |
getNumResults()
Get the total number of results returned.
|
int |
getPageNumber()
Get the page number of the current page.
|
int |
getPageSize()
Get the number of objects to display in a page.
|
int |
getPreviousPageNumber()
Get the page number of the previous page.
|
Query |
getQuery() |
RecordDefinition |
getRecordDefinition() |
RecordFactory |
getRecordFactory() |
JdbcRecordStore |
getRecordStore() |
protected String |
getSql() |
int |
getStartIndex()
Get the index of the first object in the current page.
|
boolean |
hasNextPage()
Check to see if there is a next page.
|
boolean |
hasPreviousPage()
Check to see if there is a previous page.
|
boolean |
isClosed() |
boolean |
isFirstPage()
Check to see if this is the first page.
|
boolean |
isLastPage()
Check to see if this is the last page.
|
protected void |
setNumResults(int numResults) |
void |
setPageNumber(int pageNumber)
Set the current page number.
|
void |
setPageNumberAndSize(int pageSize,
int pageNumber) |
void |
setPageSize(int pageSize)
Set the number of objects per page.
|
protected void |
setResults(List<Record> results) |
protected void |
updateNumPages() |
protected void |
updateResults()
Update the cached results for the current page.
|
public JdbcQueryResultPager(JdbcRecordStore recordStore, Map<String,Object> properties, Query query)
@PreDestroy public void close()
close in interface ResultPager<Record>close in interface AutoCloseableprotected void finalize()
throws Throwable
public int getEndIndex()
getEndIndex in interface ResultPager<Record>public List<Record> getList()
getList in interface ResultPager<Record>public int getNextPageNumber()
getNextPageNumber in interface ResultPager<Record>public int getNumPages()
getNumPages in interface ResultPager<Record>public int getNumResults()
getNumResults in interface ResultPager<Record>public int getPageNumber()
getPageNumber in interface ResultPager<Record>public int getPageSize()
getPageSize in interface ResultPager<Record>public int getPreviousPageNumber()
getPreviousPageNumber in interface ResultPager<Record>public Query getQuery()
public RecordDefinition getRecordDefinition()
public RecordFactory getRecordFactory()
public JdbcRecordStore getRecordStore()
protected String getSql()
public int getStartIndex()
getStartIndex in interface ResultPager<Record>public boolean hasNextPage()
hasNextPage in interface ResultPager<Record>public boolean hasPreviousPage()
hasPreviousPage in interface ResultPager<Record>public boolean isClosed()
public boolean isFirstPage()
isFirstPage in interface ResultPager<Record>public boolean isLastPage()
isLastPage in interface ResultPager<Record>protected void setNumResults(int numResults)
public void setPageNumber(int pageNumber)
setPageNumber in interface ResultPager<Record>pageNumber - The current page number.public void setPageNumberAndSize(int pageSize,
int pageNumber)
setPageNumberAndSize in interface ResultPager<Record>public void setPageSize(int pageSize)
setPageSize in interface ResultPager<Record>pageSize - The number of objects per page.protected void updateNumPages()
protected void updateResults()
Copyright © 2015 Revolution Systems Inc.. All rights reserved.