Class H2Connection

All Implemented Interfaces:
IDatabaseConnection

public class H2Connection extends DatabaseConnection
DatabaseConnection specialization that configures H2-specific connection behavior.
Since:
2.2.1
Version:
$Revision$ $Date$
Author:
Felipe Leme, Last changed by: $Author$
  • Constructor Details

    • H2Connection

      public H2Connection(Connection connection, String schema) throws DatabaseUnitException
      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.