org.rimudb.generic.binders
Class SingleValueListBinder

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

public class SingleValueListBinder
extends java.lang.Object
implements IQueryResultSetBinder

This binder is used by GenericQuery to return a list of Objects for an entire result set.

Author:
Simon Ritchie

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

SingleValueListBinder

public SingleValueListBinder()
Method Detail

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

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


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