Package org.dbunit.ext.h2
Class H2Connection
java.lang.Object
org.dbunit.database.AbstractDatabaseConnection
org.dbunit.database.DatabaseConnection
org.dbunit.ext.h2.H2Connection
- All Implemented Interfaces:
IDatabaseConnection
DatabaseConnection specialization that configures H2-specific connection
behavior.- Since:
- 2.2.1
- Version:
- $Revision$ $Date$
- Author:
- Felipe Leme, Last changed by: $Author$
-
Constructor Summary
ConstructorsConstructorDescriptionH2Connection(Connection connection, String schema) Creates an H2 connection, pre-configuring the H2-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
-
H2Connection
Creates an H2 connection, pre-configuring the H2-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.
-