org.hdpagination.dataaccess.orm.hibernate2
Interface HBN2QueryCallback

All Superinterfaces:
QueryCallback, java.io.Serializable
All Known Implementing Classes:
AbstractHBN2QueryCallback, DefaultHBN2QueryCallback, NoParamBindHBN2QueryCallback, NotProcessResultHBN2QueryCallback

public interface HBN2QueryCallback
extends QueryCallback

An interface defining the type of callback object which is generated by custom action class based on the received request parameters and passed to query engine class to execute Hibernate2 based query.

Since:
1.0
Author:
Liangfeng Ren

Method Summary
 java.util.List processQueriedResult(java.util.List queriedResult)
          process the result from calling net.sf.hibernate.Query.list() method in Hibernate2QueryTemplate.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 Hibernate2QueryTemplate.query(QueryCallback callback, int pageSize, int pageNo).
 void setValues(net.sf.hibernate.Query query)
          Operate on Query instance to bind parameters
 
Methods inherited from interface org.hdpagination.core.QueryCallback
getCountRecordsQueryStatement, getQueryOrder, getQueryStatement, setQueryOrder
 

Method Detail

setValues

void setValues(net.sf.hibernate.Query query)
               throws net.sf.hibernate.HibernateException
Operate on Query instance to bind parameters

Parameters:
query -
Throws:
net.sf.hibernate.HibernateException

processQueriedResult

java.util.List processQueriedResult(java.util.List queriedResult)
process the result from calling net.sf.hibernate.Query.list() method in Hibernate2QueryTemplate.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 Hibernate2QueryTemplate.query(QueryCallback callback, int pageSize, int pageNo).

Parameters:
queriedResult -
Returns:


Copyright © 2008 HDPagination All Rights Reserved.