org.rimudb.generic.binders
Class IterativeSingleValueBinder

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

public class IterativeSingleValueBinder
extends java.lang.Object
implements IIterativeResultSetBinder

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

Author:
Simon Ritchie

Constructor Summary
IterativeSingleValueBinder()
           
 
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

IterativeSingleValueBinder

public IterativeSingleValueBinder()
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.