toolbox.dao.oracle
Class OracleListBuilder

Package class diagram package OracleListBuilder
java.lang.Object
  extended by toolbox.dao.oracle.OracleListBuilder
All Implemented Interfaces:
ListBuilder

public class OracleListBuilder
extends java.lang.Object
implements ListBuilder

Oracle ListBuilder implementation that applies Oracle type conversions.


Constructor Summary
OracleListBuilder()
          Default constructor
 
Method Summary
 java.util.List buildList(java.sql.ResultSet rs)
          Construct a list from the given ResultSet and perform Oracle database type conversions where required.
 java.util.List buildList(java.sql.ResultSet rs, java.lang.Class returnType)
          Construct a list from the given ResultSet and perform Oracle database type conversions where required.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OracleListBuilder

public OracleListBuilder()
Default constructor

Method Detail

buildList

public java.util.List buildList(java.sql.ResultSet rs,
                                java.lang.Class returnType)
                         throws java.sql.SQLException,
                                DaoException
Construct a list from the given ResultSet and perform Oracle database type conversions where required.

In addition result entries are wrapped as instances of the specified return type. This implementation requires that the provided class be an implementation of the toolbox.dao.DaoBeanEx interface.

Specified by:
buildList in interface ListBuilder
Parameters:
rs - ResultSet to use.
returnType - Class denoting the return type. Must be an implementation of the toolbox.dao.DaoBeanEx interface.
Returns:
List containing ResultSet data.
Throws:
java.sql.SQLException - if the ResultSet cannot be accessed.
DaoException - if the results cannot be wrapped as the specified return type.

buildList

public java.util.List buildList(java.sql.ResultSet rs)
                         throws java.sql.SQLException
Construct a list from the given ResultSet and perform Oracle database type conversions where required.

Specified by:
buildList in interface ListBuilder
Parameters:
rs - ResultSet to use.
Returns:
List containing ResultSet data.
Throws:
java.sql.SQLException - if the ResultSet cannot be accessed.