public class ScrollPage extends HibernatePage
DEFAULT_SIZE
Constructor and Description |
---|
ScrollPage(org.hibernate.Criteria criteria,
int pageNumber,
int pageSize)
Construct a new HibernatePage.
|
ScrollPage(org.hibernate.Query query,
int pageNumber,
int pageSize)
Construct a new HibernatePage.
|
Modifier and Type | Method and Description |
---|---|
int |
getTotalNumberOfElements()
Gets the total number of elements.
|
getThisPageElements, hasNextPage
getLastPageNumber, getLogger, getNextPageNumber, getPageNumber, getPageSize, getPreviousPageNumber, getThisPageFirstElementNumber, getThisPageLastElementNumber, hasPreviousPage, isFirstPage, isLastPage
public ScrollPage(org.hibernate.Query query, int pageNumber, int pageSize)
query
- the Hibernate QuerypageNumber
- the page number (zero-based); if Integer.MAX_VALUE will return the last page for the querypageSize
- the number of results to display on the pagepublic ScrollPage(org.hibernate.Criteria criteria, int pageNumber, int pageSize)
criteria
- the Hibernate CriteriapageNumber
- the page number (zero-based); if Integer.MAX_VALUE will return the last page for the querypageSize
- the number of results to display on the pagepublic int getTotalNumberOfElements()
Page
Copyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa