public class BoneCPConnectionHandler extends AbstractConnectionHandler
ConnectionHandler.Exec| Constructor and Description |
|---|
BoneCPConnectionHandler(String driver,
com.jolbox.bonecp.BoneCPConfig config) |
BoneCPConnectionHandler(String driver,
String url,
String user,
String pass) |
BoneCPConnectionHandler(String driver,
String url,
String user,
String pass,
String testQuery) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Destroy the connection pool, closing and cleaning all connections.
|
com.jolbox.bonecp.BoneCP |
getBoneCP() |
Connection |
getConnection()
Returns a Connection to the database.
|
com.jolbox.bonecp.Statistics |
getStatistics() |
String |
getStatus()
Print the status of this connection pool if any.
|
void |
release(Connection conn)
Release this connection.
|
exec, getInstance, getType, onCleared, onCreatedpublic BoneCPConnectionHandler(String driver, String url, String user, String pass, String testQuery)
public BoneCPConnectionHandler(String driver, String url, String user, String pass)
public BoneCPConnectionHandler(String driver, com.jolbox.bonecp.BoneCPConfig config)
public com.jolbox.bonecp.BoneCP getBoneCP()
public com.jolbox.bonecp.Statistics getStatistics()
public Connection getConnection() throws SQLException
ConnectionHandlerSQLException - if there were problems trying to acquire the connection.public void release(Connection conn)
ConnectionHandlerconn - The connection to release.public void destroy()
ConnectionHandlerpublic String getStatus()
ConnectionHandlerCopyright © 2015. All Rights Reserved.