Package org.dbunit.database
Class ForwardOnlyResultSetTableFactory
java.lang.Object
org.dbunit.database.ForwardOnlyResultSetTableFactory
- All Implemented Interfaces:
IResultSetTableFactory
IResultSetTableFactory that creates forward-only, non-cached IResultSetTable instances.- Since:
- 2.0 (Jul 31, 2003)
- Version:
- $Revision$ $Date$
- Author:
- manuel.laflamme, Last changed by: $Author$
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateTable(String tableName, String selectStatement, IDatabaseConnection connection) Creates a table from a table name and a SQL select statement.createTable(String tableName, PreparedStatement preparedStatement, IDatabaseConnection connection) Creates a table from a preparedStatementcreateTable(ITableMetaData metaData, IDatabaseConnection connection) Creates a table from a metadata descriptor and a connection.
-
Constructor Details
-
ForwardOnlyResultSetTableFactory
public ForwardOnlyResultSetTableFactory()
-
-
Method Details
-
createTable
public IResultSetTable createTable(String tableName, String selectStatement, IDatabaseConnection connection) throws SQLException, DataSetException Description copied from interface:IResultSetTableFactoryCreates a table from a table name and a SQL select statement.- Specified by:
createTablein interfaceIResultSetTableFactory- Parameters:
tableName- the table name.selectStatement- the SQL select statement.connection- the database connection.- Returns:
- The table based on the SQL result set.
- Throws:
SQLException- if executing the query fails.DataSetException- if metadata retrieval fails.
-
createTable
public IResultSetTable createTable(ITableMetaData metaData, IDatabaseConnection connection) throws SQLException, DataSetException Description copied from interface:IResultSetTableFactoryCreates a table from a metadata descriptor and a connection.- Specified by:
createTablein interfaceIResultSetTableFactory- Parameters:
metaData- the table metadata.connection- the database connection.- Returns:
- The table based on the SQL result set.
- Throws:
SQLException- if executing the query fails.DataSetException- if metadata retrieval fails.
-
createTable
public IResultSetTable createTable(String tableName, PreparedStatement preparedStatement, IDatabaseConnection connection) throws SQLException, DataSetException Description copied from interface:IResultSetTableFactoryCreates a table from a preparedStatement- Specified by:
createTablein interfaceIResultSetTableFactory- Parameters:
tableName- the table name.preparedStatement- the prepared statement to execute.connection- the database connection.- Returns:
- The table based on a SQL result set
- Throws:
SQLException- if executing the statement fails.DataSetException- if metadata retrieval fails.
-