org.hdpagination.dataaccess.orm.hibernate3
Class NotProcessResultHBN3QueryCallback

java.lang.Object
  extended by org.hdpagination.dataaccess.orm.hibernate3.AbstractHBN3QueryCallback
      extended by org.hdpagination.dataaccess.orm.hibernate3.NotProcessResultHBN3QueryCallback
All Implemented Interfaces:
java.io.Serializable, QueryCallback, HBN3QueryCallback

public abstract class NotProcessResultHBN3QueryCallback
extends AbstractHBN3QueryCallback

A subclass of AbstractHBN3QueryCallback providing default implementation of processQueriedResult(List queriedResult) method without processing of returned result from calling org.hibernate.Query.list() method.

Since:
1.0
Author:
Liangfeng Ren
See Also:
Serialized Form

Constructor Summary
NotProcessResultHBN3QueryCallback(java.lang.String queryStmt)
           
NotProcessResultHBN3QueryCallback(java.lang.String queryStmt, java.lang.String orderBy)
           
NotProcessResultHBN3QueryCallback(java.lang.String queryStmt, java.lang.String orderBy, boolean ascending)
           
 
Method Summary
 java.util.List processQueriedResult(java.util.List queriedResult)
          Do nothing, just return input
abstract  void setValues(org.hibernate.Query query)
          Operate on Query instance to bind parameters
 
Methods inherited from class org.hdpagination.dataaccess.orm.hibernate3.AbstractHBN3QueryCallback
getCountRecordsQueryStatement, getQueryOrder, getQueryStatement, setCountRecordsQueryStatement, setQueryOrder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NotProcessResultHBN3QueryCallback

public NotProcessResultHBN3QueryCallback(java.lang.String queryStmt)
Parameters:
queryStmt - HQL statement

NotProcessResultHBN3QueryCallback

public NotProcessResultHBN3QueryCallback(java.lang.String queryStmt,
                                         java.lang.String orderBy)
Parameters:
queryStmt - HQL statement
orderBy - column that will be added to the 'order by' clause of HQL statement

NotProcessResultHBN3QueryCallback

public NotProcessResultHBN3QueryCallback(java.lang.String queryStmt,
                                         java.lang.String orderBy,
                                         boolean ascending)
Parameters:
queryStmt - HQL statement
orderBy - column that will be added to the 'order by' clause of HQL statement
ascending - if sorted by ascending order
Method Detail

processQueriedResult

public java.util.List processQueriedResult(java.util.List queriedResult)
Do nothing, just return input

Specified by:
processQueriedResult in interface HBN3QueryCallback
Specified by:
processQueriedResult in class AbstractHBN3QueryCallback
Returns:

setValues

public abstract void setValues(org.hibernate.Query query)
Description copied from interface: HBN3QueryCallback
Operate on Query instance to bind parameters

Specified by:
setValues in interface HBN3QueryCallback
Specified by:
setValues in class AbstractHBN3QueryCallback


Copyright © 2008 HDPagination All Rights Reserved.