Package org.hibernate.testing.env
Class ConnectionProviderBuilder
java.lang.Object
org.hibernate.testing.env.ConnectionProviderBuilder
- All Implemented Interfaces:
DialectCheck
Defines the JDBC connection information (currently H2) used by Hibernate for unit (not functional!) tests
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.hibernate.engine.jdbc.connections.spi.ConnectionProvider
static org.hibernate.engine.jdbc.connections.spi.ConnectionProvider
buildConnectionProvider
(boolean allowAggressiveRelease) static org.hibernate.engine.jdbc.connections.spi.ConnectionProvider
buildConnectionProvider
(String dbName) static org.hibernate.engine.jdbc.connections.spi.ConnectionProvider
buildConnectionProvider
(String dbName, Map<String, String> environmentOverrides) static org.hibernate.engine.jdbc.connections.spi.ConnectionProvider
static Properties
static Properties
static Properties
getConnectionProviderProperties
(String dbName, Map<String, String> environmentOverrides) static org.hibernate.dialect.Dialect
static Properties
static Properties
boolean
isMatch
(org.hibernate.dialect.Dialect dialect) Does the given dialect match the defined check?
-
Field Details
-
DRIVER
- See Also:
-
DATA_SOURCE
- See Also:
-
SHARED_DATABASE_NAME
- See Also:
-
URL_FORMAT
- See Also:
-
URL
-
USER
- See Also:
-
PASS
- See Also:
-
-
Constructor Details
-
ConnectionProviderBuilder
public ConnectionProviderBuilder()
-
-
Method Details
-
getConnectionProviderProperties
-
getConnectionProviderProperties
public static Properties getConnectionProviderProperties(String dbName, Map<String, String> environmentOverrides) -
getJpaConnectionProviderProperties
-
getConnectionProviderProperties
-
getJpaConnectionProviderProperties
-
buildConnectionProvider
public static org.hibernate.engine.jdbc.connections.spi.ConnectionProvider buildConnectionProvider() -
buildConnectionProvider
public static org.hibernate.engine.jdbc.connections.spi.ConnectionProvider buildConnectionProvider(String dbName) -
buildConnectionProvider
-
buildDataSourceConnectionProvider
public static org.hibernate.engine.jdbc.connections.spi.ConnectionProvider buildDataSourceConnectionProvider(String dbName) -
buildConnectionProvider
public static org.hibernate.engine.jdbc.connections.spi.ConnectionProvider buildConnectionProvider(boolean allowAggressiveRelease) -
getCorrespondingDialect
public static org.hibernate.dialect.Dialect getCorrespondingDialect() -
isMatch
public boolean isMatch(org.hibernate.dialect.Dialect dialect) Description copied from interface:DialectCheck
Does the given dialect match the defined check?- Specified by:
isMatch
in interfaceDialectCheck
- Parameters:
dialect
- The dialect against which to check- Returns:
true
if it matches;false
otherwise.
-