org.ujac.util.table
Class ResultSetReader

java.lang.Object
  extended by org.ujac.util.table.ResultSetReader

public class ResultSetReader
extends Object

Name: ResultSetReader
Description: Reads tables from JDBC result sets.

Author:
lauerc

Constructor Summary
ResultSetReader()
           
 
Method Summary
static DataTable readTable(ResultSet rs)
          Reads a table from a given result set.
static DataTable readTable(ResultSet rs, DataTypeMapper dataTypeMapper)
          Reads a table from a given result set.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResultSetReader

public ResultSetReader()
Method Detail

readTable

public static final DataTable readTable(ResultSet rs)
                                 throws SQLException,
                                        TableException
Reads a table from a given result set.

Parameters:
rs - The result set.
Returns:
The according table.
Throws:
SQLException - If a database problem occured.
TableException - If a table problem occured.

readTable

public static final DataTable readTable(ResultSet rs,
                                        DataTypeMapper dataTypeMapper)
                                 throws SQLException,
                                        TableException
Reads a table from a given result set.

Parameters:
rs - The result set.
dataTypeMapper - The data type mapper to use.
Returns:
The according table.
Throws:
SQLException - If a database problem occured.
TableException - If a table problem occured.


Copyright © 2003-2004 UJAC.org. All Rights Reserved.