|
|||||||||
| 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()
alias for stop. |
|
void |
closeConnection(Connection conn)
|
|
void |
configure(Map configurationValues)
|
|
void |
configure(Properties props)
Pool configuration. |
|
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()
|
|
boolean |
isUnwrappableAs(Class unwrapType)
|
|
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). |
|
void |
stop()
|
|
boolean |
supportsAggressiveRelease()
|
|
|
unwrap(Class<T> unwrapType)
|
|
| 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 closeConnection(Connection conn)
throws SQLException
closeConnection in interface org.hibernate.service.jdbc.connections.spi.ConnectionProviderSQLExceptionConnectionProvider.closeConnection(java.sql.Connection)
public void configure(Properties props)
throws org.hibernate.HibernateException
props -
org.hibernate.HibernateException
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.service.jdbc.connections.spi.ConnectionProviderSQLExceptionConnectionProvider.getConnection()public boolean supportsAggressiveRelease()
supportsAggressiveRelease in interface org.hibernate.service.jdbc.connections.spi.ConnectionProviderConnectionProvider.supportsAggressiveRelease()protected BoneCPConfig getConfig()
public ClassLoader getClassLoader()
public void setClassLoader(ClassLoader classLoader)
classLoader - the classLoader to setpublic boolean isUnwrappableAs(Class unwrapType)
isUnwrappableAs in interface org.hibernate.service.spi.Wrappedpublic <T> T unwrap(Class<T> unwrapType)
unwrap in interface org.hibernate.service.spi.Wrappedpublic void configure(Map configurationValues)
configure in interface org.hibernate.service.spi.Configurablepublic void stop()
stop in interface org.hibernate.service.spi.Stoppablepublic void close()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||