|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.hdpagination.web.jsf.util.PaginateQueryUtils
public class PaginateQueryUtils
This help class is responsible for calling the corresponding QueryTemplate to execute pagination query
and save the search results in specified scope.
| Constructor Summary | |
|---|---|
PaginateQueryUtils(javax.faces.context.FacesContext context,
PaginateDefinition definition)
|
|
| Method Summary | |
|---|---|
int |
findPageSize()
Get page size (number of records per page) |
boolean |
isSearchResultEmpty()
Check if the search result (saved in specified scope: 'request' | 'session' | 'application') is empty. |
void |
paginateQueryWithoutCount(QueryCallback callback,
int pageNo,
int pageSize)
run the query to get the result; save the result in corresponding scope |
int |
processPaginateQuery(QueryCallback callback,
int pageNo,
int pageSize)
run the query to get the result; count the number of total records; save the result in corresponding scope |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PaginateQueryUtils(javax.faces.context.FacesContext context,
PaginateDefinition definition)
| Method Detail |
|---|
public int findPageSize()
public int processPaginateQuery(QueryCallback callback,
int pageNo,
int pageSize)
callback - pageNo - pageSize -
public void paginateQueryWithoutCount(QueryCallback callback,
int pageNo,
int pageSize)
callback - pageNo - pageSize - public boolean isSearchResultEmpty()
PaginateRenderer to determine if the pagination UI component
should be rendered or not. Pagination UI component will not be rendered if this method returned true.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||