org.araneaframework.backend.list.helper
Class BaseListSqlHelper.ListItemsDataCallback

java.lang.Object
  extended byorg.araneaframework.backend.list.helper.BaseListSqlHelper.ListItemsDataCallback
All Implemented Interfaces:
ConnectionCallback
Enclosing class:
BaseListSqlHelper

public static class BaseListSqlHelper.ListItemsDataCallback
extends Object
implements ConnectionCallback

The item range and total count querites callback that returns ListItemsData object.

Author:
Rein RaudjƤrv

Field Summary
protected  ConnectionCallback countSqlCallback
           
protected  ConnectionCallback itemRangeSqlCallback
           
 
Constructor Summary
BaseListSqlHelper.ListItemsDataCallback(ConnectionCallback countSqlCallback, ConnectionCallback itemRangeSqlCallback)
           
 
Method Summary
 Object doInConnection(Connection con)
          Executes both queries, creates and returns ListItemsData object containing results of both queries.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

countSqlCallback

protected ConnectionCallback countSqlCallback

itemRangeSqlCallback

protected ConnectionCallback itemRangeSqlCallback
Constructor Detail

BaseListSqlHelper.ListItemsDataCallback

public BaseListSqlHelper.ListItemsDataCallback(ConnectionCallback countSqlCallback,
                                               ConnectionCallback itemRangeSqlCallback)
Parameters:
countSqlCallback - total count query callback.
itemRangeSqlCallback - item range query callback.
Method Detail

doInConnection

public Object doInConnection(Connection con)
                      throws SQLException
Executes both queries, creates and returns ListItemsData object containing results of both queries.

Specified by:
doInConnection in interface ConnectionCallback
Parameters:
con - active CCI Connection
Returns:
the whole results as ListItemsData object.
Throws:
SQLException