Class ConnectionProviderBuilder

  • All Implemented Interfaces:
    DialectCheck

    public class ConnectionProviderBuilder
    extends java.lang.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 java.util.Properties getConnectionProviderProperties​(java.lang.String dbName)
      • getJpaConnectionProviderProperties

        public static java.util.Properties getJpaConnectionProviderProperties​(java.lang.String dbName)
      • getConnectionProviderProperties

        public static java.util.Properties getConnectionProviderProperties()
      • getJpaConnectionProviderProperties

        public static java.util.Properties getJpaConnectionProviderProperties()
      • buildConnectionProvider

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

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

        public static org.hibernate.engine.jdbc.connections.internal.DatasourceConnectionProviderImpl buildDataSourceConnectionProvider​(java.lang.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.