public interface ConnectionHandler extends org.mentacontainer.Factory, org.mentacontainer.Interceptor<Connection>
| Modifier and Type | Interface and Description |
|---|---|
static interface |
ConnectionHandler.Exec |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Destroy the connection pool, closing and cleaning all connections.
|
void |
exec(ConnectionHandler.Exec exec) |
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.
|
Connection getConnection() throws SQLException
SQLException - if there were problems trying to acquire the connection.void release(Connection conn)
conn - The connection to release.void destroy()
String getStatus()
void exec(ConnectionHandler.Exec exec)
Copyright © 2015. All Rights Reserved.