|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ConnectionHandler
This interface describes the behaviour of a Mentawai database connection provider. Classes implementing this interface may or may not use an underlying connection pool. This is a transparent way to get a connection to a database with Mentawai.
| Method Summary | |
|---|---|
void |
destroy()
Destroy the connection pool, closing and cleaning all connections. |
java.sql.Connection |
getConnection()
Returns a Connection to the database. |
void |
release(java.sql.Connection conn)
Release this connection. |
| Method Detail |
|---|
java.sql.Connection getConnection()
throws java.sql.SQLException
java.sql.SQLException - if there were problems trying to acquire the connection.void release(java.sql.Connection conn)
conn - The connection to release.void destroy()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||