org.ujac.util.table
Class ResultSetReader
java.lang.Object
org.ujac.util.table.ResultSetReader
public class ResultSetReader
- extends Object
Name: ResultSetReader
Description: Reads tables from JDBC result sets.
- Author:
- lauerc
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResultSetReader
public ResultSetReader()
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.