public class ConnectionProviderBuilder extends Object implements DialectCheck
Modifier and Type | Field and Description |
---|---|
static String |
DATA_SOURCE |
static String |
DRIVER |
static String |
PASS |
static String |
URL |
static String |
USER |
Constructor and Description |
---|
ConnectionProviderBuilder() |
Modifier and Type | Method and Description |
---|---|
static org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl |
buildConnectionProvider() |
static org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl |
buildConnectionProvider(boolean allowAggressiveRelease) |
static org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl |
buildConnectionProvider(String dbName) |
static org.hibernate.engine.jdbc.connections.internal.DatasourceConnectionProviderImpl |
buildDataSourceConnectionProvider(String dbName) |
static Properties |
getConnectionProviderProperties() |
static Properties |
getConnectionProviderProperties(String dbName) |
static Dialect |
getCorrespondingDialect() |
boolean |
isMatch(Dialect dialect)
Does the given dialect match the defined check?
|
public static final String DRIVER
public static final String DATA_SOURCE
public static final String URL
public static final String USER
public static final String PASS
public static Properties getConnectionProviderProperties(String dbName)
public static Properties getConnectionProviderProperties()
public static org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl buildConnectionProvider()
public static org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl buildConnectionProvider(String dbName)
public static org.hibernate.engine.jdbc.connections.internal.DatasourceConnectionProviderImpl buildDataSourceConnectionProvider(String dbName)
public static org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl buildConnectionProvider(boolean allowAggressiveRelease)
public static Dialect getCorrespondingDialect()
public boolean isMatch(Dialect dialect)
DialectCheck
isMatch
in interface DialectCheck
dialect
- The dialect against which to checktrue
if it matches; false
otherwise.Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.