org.rimudb.generic.binders
Class IterativeDataObjectListBinder

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

public class IterativeDataObjectListBinder
extends java.lang.Object
implements IIterativeResultSetBinder

This binder is used by IterativeQuery to return a single DataObject for a result set row.

Author:
Simon Ritchie

Constructor Summary
IterativeDataObjectListBinder(java.lang.Class<? extends DataObject> dataObjectClass)
          Create a binder for the Data Object class.
 
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

IterativeDataObjectListBinder

public IterativeDataObjectListBinder(java.lang.Class<? extends DataObject> dataObjectClass)
Create a binder for the Data Object class.

Parameters:
dataObjectClass - Class
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.