|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.jolbox.bonecp.provider.BoneCPConnectionProvider
public class BoneCPConnectionProvider
Hibernate Connection Provider.
| Field Summary | |
|---|---|
protected static String |
CONFIG_CONNECTION_DRIVER_CLASS
Config key. |
protected static String |
CONFIG_CONNECTION_DRIVER_CLASS_ALTERNATE
Config key. |
protected static String |
CONFIG_CONNECTION_PASSWORD
Config key. |
protected static String |
CONFIG_CONNECTION_PASSWORD_ALTERNATE
Config key. |
protected static String |
CONFIG_CONNECTION_URL
Config key. |
protected static String |
CONFIG_CONNECTION_URL_ALTERNATE
Config key. |
protected static String |
CONFIG_CONNECTION_USERNAME
Config key. |
protected static String |
CONFIG_CONNECTION_USERNAME_ALTERNATE
Config key. |
| Constructor Summary | |
|---|---|
BoneCPConnectionProvider()
|
|
| Method Summary | |
|---|---|
void |
close()
|
void |
closeConnection(Connection conn)
|
void |
configure(Properties props)
|
protected BoneCP |
createPool(BoneCPConfig config)
Creates the given connection pool with the given configuration. |
ClassLoader |
getClassLoader()
Returns the classloader to use when attempting to load the jdbc driver (if a value is given). |
protected BoneCPConfig |
getConfig()
Returns the configuration object being used. |
Connection |
getConnection()
|
protected Class<?> |
loadClass(String clazz)
Loads the given class, respecting the given classloader. |
void |
setClassLoader(ClassLoader classLoader)
Specifies the classloader to use when attempting to load the jdbc driver (if a value is given). |
boolean |
supportsAggressiveRelease()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final String CONFIG_CONNECTION_DRIVER_CLASS
protected static final String CONFIG_CONNECTION_PASSWORD
protected static final String CONFIG_CONNECTION_USERNAME
protected static final String CONFIG_CONNECTION_URL
protected static final String CONFIG_CONNECTION_DRIVER_CLASS_ALTERNATE
protected static final String CONFIG_CONNECTION_PASSWORD_ALTERNATE
protected static final String CONFIG_CONNECTION_USERNAME_ALTERNATE
protected static final String CONFIG_CONNECTION_URL_ALTERNATE
| Constructor Detail |
|---|
public BoneCPConnectionProvider()
| Method Detail |
|---|
public void close()
throws org.hibernate.HibernateException
close in interface org.hibernate.connection.ConnectionProviderorg.hibernate.HibernateExceptionConnectionProvider.close()
public void closeConnection(Connection conn)
throws SQLException
closeConnection in interface org.hibernate.connection.ConnectionProviderSQLExceptionConnectionProvider.closeConnection(java.sql.Connection)
public void configure(Properties props)
throws org.hibernate.HibernateException
configure in interface org.hibernate.connection.ConnectionProviderorg.hibernate.HibernateExceptionConnectionProvider.configure(java.util.Properties)
protected Class<?> loadClass(String clazz)
throws ClassNotFoundException
clazz - class to load
ClassNotFoundExceptionprotected BoneCP createPool(BoneCPConfig config)
config - configuration object.
public Connection getConnection()
throws SQLException
getConnection in interface org.hibernate.connection.ConnectionProviderSQLExceptionConnectionProvider.getConnection()public boolean supportsAggressiveRelease()
supportsAggressiveRelease in interface org.hibernate.connection.ConnectionProviderConnectionProvider.supportsAggressiveRelease()protected BoneCPConfig getConfig()
public ClassLoader getClassLoader()
public void setClassLoader(ClassLoader classLoader)
classLoader - the classLoader to set
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||