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 ConnectionProvider
static ConnectionProvider
buildConnectionProvider
(boolean allowAggressiveRelease) static ConnectionProvider
buildConnectionProvider
(String dbName) static ConnectionProvider
buildConnectionProvider
(String dbName, Map<String, String> environmentOverrides) static ConnectionProvider
static Properties
static Properties
static Properties
getConnectionProviderProperties
(String dbName, Map<String, String> environmentOverrides) static Dialect
static Properties
static Properties
boolean
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
-
buildConnectionProvider
-
buildConnectionProvider
public static ConnectionProvider buildConnectionProvider(String dbName, Map<String, String> environmentOverrides) -
buildDataSourceConnectionProvider
-
buildConnectionProvider
-
getCorrespondingDialect
-
isMatch
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.
-