org.hdpagination.dataaccess.orm.hibernate3
Class NoParamBindHBN3QueryCallback
java.lang.Object
org.hdpagination.dataaccess.orm.hibernate3.AbstractHBN3QueryCallback
org.hdpagination.dataaccess.orm.hibernate3.NoParamBindHBN3QueryCallback
- All Implemented Interfaces:
- java.io.Serializable, QueryCallback, HBN3QueryCallback
- Direct Known Subclasses:
- DefaultHBN3QueryCallback
public abstract class NoParamBindHBN3QueryCallback
- extends AbstractHBN3QueryCallback
A subclass of AbstractHBN3QueryCallback providing empty implementation of
setValues(Query query). It suits for query scenario where no parameters are
required to bind with.
- Since:
- 1.0
- Author:
- Liangfeng Ren
- See Also:
- Serialized Form
|
Method Summary |
abstract java.util.List |
processQueriedResult(java.util.List queriedResult)
process the result from calling org.hibernate.Query.list() method
in Hibernate3QueryTemplate.query(QueryCallback callback, int pageSize, int pageNo),
and the value(java.util.List) returned by current method will be used as the return value of
Hibernate3QueryTemplate.query(QueryCallback callback, int pageSize, int pageNo). |
void |
setValues(org.hibernate.Query query)
Do nothing |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NoParamBindHBN3QueryCallback
public NoParamBindHBN3QueryCallback(java.lang.String queryStmt)
- Parameters:
queryStmt - HQL statement
NoParamBindHBN3QueryCallback
public NoParamBindHBN3QueryCallback(java.lang.String queryStmt,
java.lang.String orderBy)
- Parameters:
queryStmt - HQL statementorderBy - column that will be added to the 'order by' clause of HQL statement
NoParamBindHBN3QueryCallback
public NoParamBindHBN3QueryCallback(java.lang.String queryStmt,
java.lang.String orderBy,
boolean ascending)
- Parameters:
queryStmt - HQL statementorderBy - column that will be added to the 'order by' clause of HQL statementascending - if sorted by ascending order
setValues
public void setValues(org.hibernate.Query query)
- Do nothing
- Specified by:
setValues in interface HBN3QueryCallback- Specified by:
setValues in class AbstractHBN3QueryCallback
processQueriedResult
public abstract java.util.List processQueriedResult(java.util.List queriedResult)
- Description copied from interface:
HBN3QueryCallback
- process the result from calling
org.hibernate.Query.list() method
in Hibernate3QueryTemplate.query(QueryCallback callback, int pageSize, int pageNo),
and the value(java.util.List) returned by current method will be used as the return value of
Hibernate3QueryTemplate.query(QueryCallback callback, int pageSize, int pageNo).
- Specified by:
processQueriedResult in interface HBN3QueryCallback- Specified by:
processQueriedResult in class AbstractHBN3QueryCallback
- Returns:
Copyright © 2008 HDPagination All Rights Reserved.