public class SimpleConnectionProvider extends Object implements org.hibernate.connection.ConnectionProvider
ConnectionProvider| Constructor and Description |
|---|
SimpleConnectionProvider() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
closeConnection(Connection conn) |
void |
configure(Properties props) |
protected void |
finalize() |
static boolean |
getBoolean(String name,
Map values)
Get the config value as a boolean (default of false)
|
static boolean |
getBoolean(String name,
Map values,
boolean defaultValue)
Get the config value as a boolean.
|
Connection |
getConnection() |
static int |
getInt(String name,
Map values,
int defaultValue)
Get the config value as an int
|
static Integer |
getInteger(String name,
Map values)
Get the config value as an
Integer |
static Properties |
maskOut(Properties props,
String key)
replace a property by a starred version
|
boolean |
supportsAggressiveRelease() |
public void configure(Properties props) throws org.hibernate.HibernateException
configure in interface org.hibernate.connection.ConnectionProviderorg.hibernate.HibernateExceptionpublic Connection getConnection() throws SQLException
getConnection in interface org.hibernate.connection.ConnectionProviderSQLExceptionpublic void closeConnection(Connection conn) throws SQLException
closeConnection in interface org.hibernate.connection.ConnectionProviderSQLExceptionpublic void close()
close in interface org.hibernate.connection.ConnectionProviderpublic boolean supportsAggressiveRelease()
supportsAggressiveRelease in interface org.hibernate.connection.ConnectionProviderConnectionProvider.supportsAggressiveRelease()public static boolean getBoolean(String name, Map values)
name - The config setting name.values - The map of config valuespublic static boolean getBoolean(String name, Map values, boolean defaultValue)
name - The config setting name.values - The map of config valuesdefaultValue - The default value to use if not foundpublic static int getInt(String name, Map values, int defaultValue)
name - The config setting name.values - The map of config valuesdefaultValue - The default value to use if not foundpublic static Integer getInteger(String name, Map values)
Integername - The config setting name.values - The map of config valuespublic static Properties maskOut(Properties props, String key)
props - properties to checkkey - proeprty to maskCopyright © 2003–2016 MuleSoft, Inc.. All rights reserved.