Package org.hibernate.testing.env
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
-
-
Constructor Summary
Constructors Constructor Description ConnectionProviderBuilder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImplbuildConnectionProvider()static org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImplbuildConnectionProvider(boolean allowAggressiveRelease)static org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImplbuildConnectionProvider(String dbName)static org.hibernate.engine.jdbc.connections.internal.DatasourceConnectionProviderImplbuildDataSourceConnectionProvider(String dbName)static PropertiesgetConnectionProviderProperties()static PropertiesgetConnectionProviderProperties(String dbName)static org.hibernate.dialect.DialectgetCorrespondingDialect()static PropertiesgetJpaConnectionProviderProperties()static PropertiesgetJpaConnectionProviderProperties(String dbName)booleanisMatch(org.hibernate.dialect.Dialect dialect)Does the given dialect match the defined check?
-
-
-
Field Detail
-
DRIVER
public static final String DRIVER
- See Also:
- Constant Field Values
-
DATA_SOURCE
public static final String DATA_SOURCE
- See Also:
- Constant Field Values
-
URL_FORMAT
public static final String URL_FORMAT
- See Also:
- Constant Field Values
-
URL
public static final String URL
- See Also:
- Constant Field Values
-
USER
public static final String USER
- See Also:
- Constant Field Values
-
PASS
public static final String PASS
- See Also:
- Constant Field Values
-
-
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 org.hibernate.dialect.Dialect getCorrespondingDialect()
-
isMatch
public boolean isMatch(org.hibernate.dialect.Dialect dialect)
Description copied from interface:DialectCheckDoes the given dialect match the defined check?- Specified by:
isMatchin interfaceDialectCheck- Parameters:
dialect- The dialect against which to check- Returns:
trueif it matches;falseotherwise.
-
-