Interface DatabaseConnectionFactory

All Known Implementing Classes:
DefaultDatabaseConnectionFactory

public interface DatabaseConnectionFactory
Interface that must be implemented if the default connection factory fit not for the own usage or used database.

Since:
1.7.0
Version:
1.7, 2012-10-02
Author:
Florian
  • Method Summary

    Modifier and Type
    Method
    Description
    org.dbunit.database.IDatabaseConnection
    Create a database connection (IDatabaseConnection) that can be used for the dbunit tests.
  • Method Details

    • createConnection

      org.dbunit.database.IDatabaseConnection createConnection(Connection con, DatabaseMetaData databaseMetaData) throws SQLException, org.dbunit.DatabaseUnitException
      Create a database connection (IDatabaseConnection) that can be used for the dbunit tests.
      Parameters:
      con - connection to the database supported by the driver
      databaseMetaData - meta data from the database.
      Returns:
      a new created database connection
      Throws:
      SQLException
      org.dbunit.DatabaseUnitException