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