T - the entity bean typepublic class LimitOffsetPage<T> extends Object implements Page<T>, BeanCollectionTouched
| Constructor and Description |
|---|
LimitOffsetPage(int pageIndex,
LimitOffsetPagingQuery<T> owner) |
| Modifier and Type | Method and Description |
|---|---|
String |
getDisplayXtoYofZ(String to,
String of)
Helper method to return a "X to Y of Z" string for this page where X is the
first row, Y the last row and Z the total row count.
|
FutureList<T> |
getFutureList() |
List<T> |
getList()
Return the list of entities for this page.
|
int |
getPageIndex()
Return the index position of this page.
|
int |
getTotalPageCount()
Return the total number of pages.
|
int |
getTotalRowCount()
Return the total row count for all pages.
|
boolean |
hasNext()
Return true if there is a next page.
|
boolean |
hasPrev()
Return true if there is a previous page.
|
Page<T> |
next()
Return the next page.
|
void |
notifyTouched(BeanCollection<?> c)
Perform fetch ahead when the list is first accessed.
|
Page<T> |
prev()
Return the previous page.
|
public LimitOffsetPage(int pageIndex,
LimitOffsetPagingQuery<T> owner)
public FutureList<T> getFutureList()
public void notifyTouched(BeanCollection<?> c)
notifyTouched in interface BeanCollectionTouchedpublic List<T> getList()
Pagepublic boolean hasNext()
Pagepublic boolean hasPrev()
Pagepublic int getPageIndex()
PagegetPageIndex in interface Page<T>public int getTotalPageCount()
PagegetTotalPageCount in interface Page<T>public int getTotalRowCount()
PagegetTotalRowCount in interface Page<T>public String getDisplayXtoYofZ(String to, String of)
PagegetDisplayXtoYofZ in interface Page<T>to - String to put between the first and last rowof - String to put between the last row and the total row countCopyright © 2014. All Rights Reserved.