|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hibernate.connection.SimpleConnectionProvider
public class SimpleConnectionProvider
This is the Hibernate class org.hibernate.connection.connection.DriverManagerConnectionProvider, tweaked in order to work with Mule's hot deployment. A very simple connection provider which does not use java.sql.DriverManager. This provider also implements a very rudimentary connection pool.
ConnectionProvider
Constructor Summary | |
---|---|
SimpleConnectionProvider()
|
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleConnectionProvider()
Method Detail |
---|
public void configure(Properties props) throws org.hibernate.HibernateException
configure
in interface org.hibernate.connection.ConnectionProvider
org.hibernate.HibernateException
public Connection getConnection() throws SQLException
getConnection
in interface org.hibernate.connection.ConnectionProvider
SQLException
public void closeConnection(Connection conn) throws SQLException
closeConnection
in interface org.hibernate.connection.ConnectionProvider
SQLException
protected void finalize()
finalize
in class Object
public void close()
close
in interface org.hibernate.connection.ConnectionProvider
public boolean supportsAggressiveRelease()
supportsAggressiveRelease
in interface org.hibernate.connection.ConnectionProvider
ConnectionProvider.supportsAggressiveRelease()
public static boolean getBoolean(String name, Map values)
name
- The config setting name.values
- The map of config values
public 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 found
public 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 found
public static Integer getInteger(String name, Map values)
Integer
name
- The config setting name.values
- The map of config values
public static Properties maskOut(Properties props, String key)
props
- properties to checkkey
- proeprty to mask
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |