|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.dbunit.database.AbstractDatabaseConnection
org.dbunit.database.DatabaseConnection
This class adapts a JDBC Connection
to a
IDatabaseConnection
.
Constructor Summary | |
DatabaseConnection(java.sql.Connection connection)
Creates a new DatabaseConnection . |
|
DatabaseConnection(java.sql.Connection connection,
java.lang.String schema)
Creates a new DatabaseConnection . |
Method Summary | |
void |
close()
Close this connection. |
java.sql.Connection |
getConnection()
Returns a JDBC database connection. |
java.lang.String |
getSchema()
Returns the database schema name. |
Methods inherited from class org.dbunit.database.AbstractDatabaseConnection |
createDataSet, createDataSet, createQueryTable, getConfig, getRowCount, getRowCount, getStatementFactory |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.dbunit.database.IDatabaseConnection |
createDataSet, createDataSet, createQueryTable, getConfig, getRowCount, getRowCount, getStatementFactory |
Constructor Detail |
public DatabaseConnection(java.sql.Connection connection, java.lang.String schema)
DatabaseConnection
.
connection
- the adapted JDBC connectionschema
- the database schemapublic DatabaseConnection(java.sql.Connection connection)
DatabaseConnection
.
connection
- the adapted JDBC connectionMethod Detail |
public java.sql.Connection getConnection() throws java.sql.SQLException
IDatabaseConnection
getConnection
in interface IDatabaseConnection
java.sql.SQLException
public java.lang.String getSchema()
IDatabaseConnection
getSchema
in interface IDatabaseConnection
public void close() throws java.sql.SQLException
IDatabaseConnection
close
in interface IDatabaseConnection
java.sql.SQLException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |