org.rimudb.generic.binders
Interface IIterativeResultSetBinder

All Known Implementing Classes:
DefaultIterativeResultSetBinder, IterativeDataObjectListArrayBinder, IterativeDataObjectListBinder, IterativeSingleValueBinder

public interface IIterativeResultSetBinder

This interface provides the contract for IIterativeResultSetBinder. IIterativeResultSetBinder are passed to an IterativeQuery to provide handling of the ResultSet.

Author:
Simon Ritchie

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.
 

Method Detail

initialize

void initialize(Database database)
                throws RimuDBException
Initialize the IResultSetBinder. Some binders require access to the Database to perform initialization.

Parameters:
database - Database
Throws:
RimuDBException

processSingleResultSet

java.lang.Object processSingleResultSet(java.sql.ResultSet rs)
                                        throws RimuDBException
Process the current record pointed to by the ResultSet. Implementing classes should not call rs.next().

Parameters:
rs - ResultSet
Returns:
Object
Throws:
RimuDBException


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