Class ConnectionProviderBuilder

java.lang.Object
org.hibernate.testing.env.ConnectionProviderBuilder
All Implemented Interfaces:
DialectCheck

public class ConnectionProviderBuilder extends Object implements DialectCheck
Defines the JDBC connection information (currently H2) used by Hibernate for unit (not functional!) tests
  • Field Details

  • Constructor Details

    • ConnectionProviderBuilder

      public ConnectionProviderBuilder()
  • Method Details

    • getConnectionProviderProperties

      public static Properties getConnectionProviderProperties(String dbName)
    • getConnectionProviderProperties

      public static Properties getConnectionProviderProperties(String dbName, Map<String,String> environmentOverrides)
    • getJpaConnectionProviderProperties

      public static Properties getJpaConnectionProviderProperties(String dbName)
    • getConnectionProviderProperties

      public static Properties getConnectionProviderProperties()
    • getJpaConnectionProviderProperties

      public static Properties getJpaConnectionProviderProperties()
    • buildConnectionProvider

      public static ConnectionProvider buildConnectionProvider()
    • buildConnectionProvider

      public static ConnectionProvider buildConnectionProvider(String dbName)
    • buildConnectionProvider

      public static ConnectionProvider buildConnectionProvider(String dbName, Map<String,String> environmentOverrides)
    • buildDataSourceConnectionProvider

      public static ConnectionProvider buildDataSourceConnectionProvider(String dbName)
    • buildConnectionProvider

      public static ConnectionProvider buildConnectionProvider(boolean allowAggressiveRelease)
    • getCorrespondingDialect

      public static Dialect getCorrespondingDialect()
    • isMatch

      public boolean isMatch(Dialect dialect)
      Description copied from interface: DialectCheck
      Does the given dialect match the defined check?
      Specified by:
      isMatch in interface DialectCheck
      Parameters:
      dialect - The dialect against which to check
      Returns:
      true if it matches; false otherwise.