org.rimudb.generic.binders
Class DefaultQueryResultSetBinder

java.lang.Object
  extended by org.rimudb.generic.binders.DefaultQueryResultSetBinder
All Implemented Interfaces:
IQueryResultSetBinder

public class DefaultQueryResultSetBinder
extends java.lang.Object
implements IQueryResultSetBinder

Author:
Simon Ritchie

Constructor Summary
DefaultQueryResultSetBinder(java.lang.Class<? extends IResultSetBean> clazz)
           
 
Method Summary
 void initialize(Database database)
          Initialize the IResultSetBinder.
 java.lang.Object processAllResultSet(java.sql.ResultSet rs)
          Process the Query result set, returning an Object defined by the binder.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultQueryResultSetBinder

public DefaultQueryResultSetBinder(java.lang.Class<? extends IResultSetBean> clazz)
Method Detail

initialize

public void initialize(Database database)
                throws RimuDBException
Description copied from interface: IQueryResultSetBinder
Initialize the IResultSetBinder. Some binders require access to the Database to perform initialization.

Specified by:
initialize in interface IQueryResultSetBinder
Parameters:
database - Database
Throws:
RimuDBException

processAllResultSet

public java.lang.Object processAllResultSet(java.sql.ResultSet rs)
                                     throws RimuDBException
Description copied from interface: IQueryResultSetBinder
Process the Query result set, returning an Object defined by the binder.

Specified by:
processAllResultSet in interface IQueryResultSetBinder
Parameters:
rs - ResultSet
Returns:
Object
Throws:
RimuDBException


Copyright © 2008-2011 Simon Ritchie. All Rights Reserved.