org.araneaframework.backend.list.helper
Class BaseListSqlHelper.ListItemsDataCallback
java.lang.Object
org.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
|
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 |
countSqlCallback
protected ConnectionCallback countSqlCallback
itemRangeSqlCallback
protected ConnectionCallback itemRangeSqlCallback
BaseListSqlHelper.ListItemsDataCallback
public BaseListSqlHelper.ListItemsDataCallback(ConnectionCallback countSqlCallback,
ConnectionCallback itemRangeSqlCallback)
- Parameters:
countSqlCallback - total count query callback.itemRangeSqlCallback - item range query callback.
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