org.rimudb.generic.binders
Class DefaultIterativeResultSetBinder

java.lang.Object
  extended by org.rimudb.generic.binders.DefaultIterativeResultSetBinder
All Implemented Interfaces:
IIterativeResultSetBinder

public class DefaultIterativeResultSetBinder
extends java.lang.Object
implements IIterativeResultSetBinder

This class provides a default implementation of an IIterativeResultSetBinder. It assumes the IResultSetBean class passed on the constructor has an empty constructor method.

Author:
Simon Ritchie

Constructor Summary
DefaultIterativeResultSetBinder(java.lang.Class<? extends IResultSetBean> clazz)
           
 
Method Summary
 void initialize(Database database)
          Initialize the IResultSetBinder.
 java.lang.Object processSingleResultSet(java.sql.ResultSet rs)
          Process the current record pointed to by the ResultSet.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultIterativeResultSetBinder

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

initialize

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

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

processSingleResultSet

public java.lang.Object processSingleResultSet(java.sql.ResultSet rs)
                                        throws RimuDBException
Description copied from interface: IIterativeResultSetBinder
Process the current record pointed to by the ResultSet. Implementing classes should not call rs.next().

Specified by:
processSingleResultSet in interface IIterativeResultSetBinder
Parameters:
rs - ResultSet
Returns:
Object
Throws:
RimuDBException


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