Package org.dbunit.ext.db2
Class Db2Connection
java.lang.Object
org.dbunit.database.AbstractDatabaseConnection
org.dbunit.database.DatabaseConnection
org.dbunit.ext.db2.Db2Connection
- All Implemented Interfaces:
IDatabaseConnection
Database connection for DB2 that pre-configures all properties required to successfully
use dbunit with DB2.
- Since:
- 1.5.5 (Jul 17, 2003)
- Version:
- $Revision$ $Date$
- Author:
- Federico Spinazzi, Last changed by: $Author$
-
Constructor Summary
ConstructorsConstructorDescriptionDb2Connection(Connection connection, String schema) Creates a DB2 connection, pre-configuring the DB2-specific data type factory and metadata handler. -
Method Summary
Methods inherited from class org.dbunit.database.DatabaseConnection
close, getConnection, getSchema, toStringMethods inherited from class org.dbunit.database.AbstractDatabaseConnection
createDataSet, createDataSet, createQueryTable, createTable, createTable, getConfig, getRowCount, getRowCount, getStatementFactoryMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.dbunit.database.IDatabaseConnection
createDataSet, createDataSet, createQueryTable, createTable, createTable, getConfig, getRowCount, getRowCount, getStatementFactory
-
Constructor Details
-
Db2Connection
Creates a DB2 connection, pre-configuring the DB2-specific data type factory and metadata handler.- Parameters:
connection- the adapted JDBC connection.schema- the database schema.- Throws:
DatabaseUnitException- if the connection cannot be adapted.
-