|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.eng.qbe.utility.HibernatePage
public class HibernatePage
This class is taken by Hibernate wiki. This class provides pagination for displaying results from a large result set over a number of pages (i.e. with a given number of results per page). Taken from http://blog.hibernate.org/cgi-bin/blosxom.cgi/2004/08/14#fn.html.
Constructor Summary | |
---|---|
HibernatePage(org.hibernate.Query query,
int page,
int pageSize)
Construct a new Page. |
Method Summary | |
---|---|
int |
getFirstResultNumber()
Gets the first result number. |
int |
getLastPageNumber()
Gets the last page number. |
int |
getLastResultNumber()
Gets the last result number. |
java.util.List |
getList()
Gets the list. |
int |
getNextPageNumber()
Gets the next page number. |
int |
getPreviousPageNumber()
Gets the previous page number. |
protected org.hibernate.ScrollableResults |
getScrollableResults()
Gets the scrollable results. |
int |
getTotalResults()
Gets the total results. |
boolean |
hasNextPage()
Checks for next page. |
boolean |
hasPreviousPage()
Checks for previous page. |
boolean |
isFirstPage()
Checks if is first page. |
boolean |
isLastPage()
Checks if is last page. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HibernatePage(org.hibernate.Query query, int page, int pageSize) throws org.hibernate.HibernateException
query
- the Hibernate Querypage
- the page number (zero-based)pageSize
- the number of results to display on the page
org.hibernate.HibernateException
- the hibernate exceptionMethod Detail |
---|
public boolean isFirstPage()
public boolean isLastPage()
public boolean hasNextPage()
public boolean hasPreviousPage()
public int getLastPageNumber()
public java.util.List getList()
public int getTotalResults()
public int getFirstResultNumber()
public int getLastResultNumber()
public int getNextPageNumber()
public int getPreviousPageNumber()
protected org.hibernate.ScrollableResults getScrollableResults()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |