org.hdpagination.web.servlet
Class QueryCallbackUtils

java.lang.Object
  extended by org.hdpagination.web.servlet.QueryCallbackUtils

public final class QueryCallbackUtils
extends java.lang.Object

This class is to retrieve/update QueryCallback Page objects in session.

Since:
1.1
Author:
Liangfeng Ren

Method Summary
static QueryCallback resetOrder(javax.faces.context.FacesContext facesContext, java.lang.String pageKey, java.lang.String orderBy)
          Update Page instance in session with the new sort information.
static QueryCallback resetOrder(javax.faces.context.FacesContext facesContext, java.lang.String pageKey, java.lang.String orderBy, boolean ascending)
          Update Page instance in session with the new sort information.
static QueryCallback retrieveQueryCallback(javax.faces.context.FacesContext facesContext, java.lang.String pageKey)
          Retrieve instance of QueryCallback from session based on page key.
static void saveQueryCallback(javax.faces.context.FacesContext facesContext, QueryCallback queryCallback, int currentPageNo, int pageSize, int totalCount, java.lang.String pageKey)
          Update Page instance in session with the new pagination information.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

retrieveQueryCallback

public static QueryCallback retrieveQueryCallback(javax.faces.context.FacesContext facesContext,
                                                  java.lang.String pageKey)
Retrieve instance of QueryCallback from session based on page key.

Parameters:
facesContext -
pageKey -
Returns:

saveQueryCallback

public static void saveQueryCallback(javax.faces.context.FacesContext facesContext,
                                     QueryCallback queryCallback,
                                     int currentPageNo,
                                     int pageSize,
                                     int totalCount,
                                     java.lang.String pageKey)
Update Page instance in session with the new pagination information.

Parameters:
facesContext -
queryCallback -
currentPageNo -
pageSize -
totalCount -
pageKey -

resetOrder

public static QueryCallback resetOrder(javax.faces.context.FacesContext facesContext,
                                       java.lang.String pageKey,
                                       java.lang.String orderBy)
Update Page instance in session with the new sort information.

Parameters:
facesContext -
pageKey - page key
orderBy -
Returns:

resetOrder

public static QueryCallback resetOrder(javax.faces.context.FacesContext facesContext,
                                       java.lang.String pageKey,
                                       java.lang.String orderBy,
                                       boolean ascending)
Update Page instance in session with the new sort information.

Parameters:
facesContext -
pageKey -
orderBy -
ascending -
Returns:


Copyright © 2008 HDPagination All Rights Reserved.