|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- the entity bean typepublic interface Page<T>
Represents a Page of results that is part of a PagingList.
Typically a Page represents the data that is shown to the user at a single time - and the user 'pages' through a large list.
Query.findPagingList(int)
,
PagingList
Method Summary | |
---|---|
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. |
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. |
Page<T> |
prev()
Return the previous page. |
Method Detail |
---|
List<T> getList()
int getTotalRowCount()
int getTotalPageCount()
int getPageIndex()
boolean hasNext()
boolean hasPrev()
Page<T> next()
Page<T> prev()
String getDisplayXtoYofZ(String to, String of)
to
- String to put between the first and last rowof
- String to put between the last row and the total row count
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |