org.hdpagination.dataaccess.orm.hibernate3
Interface HBN3QueryCallback

All Superinterfaces:
QueryCallback, java.io.Serializable
All Known Implementing Classes:
AbstractHBN3QueryCallback, DefaultHBN3QueryCallback, HBN3QueryCallbackNamedParamWrapper, HBN3QueryCallbackWrapper, NoParamBindHBN3QueryCallback, NotProcessResultHBN3QueryCallback

public interface HBN3QueryCallback
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 Hibernate3 based query.

Since:
1.0
Author:
Liangfeng Ren

Method Summary
 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)
          Operate on Query instance to bind parameters
 
Methods inherited from interface org.hdpagination.core.QueryCallback
getCountRecordsQueryStatement, getQueryOrder, getQueryStatement, setQueryOrder
 

Method Detail

setValues

void setValues(org.hibernate.Query query)
Operate on Query instance to bind parameters

Parameters:
query -

processQueriedResult

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).

Parameters:
queriedResult -
Returns:


Copyright © 2008 HDPagination All Rights Reserved.