Class 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
    • Constructor Detail

      • ConnectionProviderBuilder

        public ConnectionProviderBuilder()
    • Method Detail

      • getConnectionProviderProperties

        public static Properties getConnectionProviderProperties​(String dbName)
      • getJpaConnectionProviderProperties

        public static Properties getJpaConnectionProviderProperties​(String dbName)
      • getConnectionProviderProperties

        public static Properties getConnectionProviderProperties()
      • getJpaConnectionProviderProperties

        public static Properties getJpaConnectionProviderProperties()
      • buildConnectionProvider

        public static org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl buildConnectionProvider()
      • buildConnectionProvider

        public static org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl buildConnectionProvider​(String dbName)
      • buildDataSourceConnectionProvider

        public static org.hibernate.engine.jdbc.connections.internal.DatasourceConnectionProviderImpl buildDataSourceConnectionProvider​(String dbName)
      • buildConnectionProvider

        public static org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl 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.