org.rimudb.generic.binders
Class SingleValueBinder

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

public class SingleValueBinder
extends java.lang.Object
implements IQueryResultSetBinder

This binder is used by GenericQuery to return a single Object for an entire result set.

Author:
Simon Ritchie

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

SingleValueBinder

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