|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object toolbox.dao.ConnectionManagerPoolImpl
public class ConnectionManagerPoolImpl
Abstracts the mechanism of obtaining managed connections from a toolbox.pooling.JDBCResourcePool instance.
Constructor Summary | |
---|---|
ConnectionManagerPoolImpl()
Default constructor |
Method Summary | |
---|---|
void |
destroy()
Perform cleanup operations. |
java.sql.Connection |
getConnection()
Returns a reference to a pooled connection. |
void |
init(XMLProperties xmlProps)
Initialise the connection manager with the given XMLProperties. |
void |
releaseConnection(java.sql.Connection connection)
Release a connection. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConnectionManagerPoolImpl()
Method Detail |
---|
public void init(XMLProperties xmlProps) throws DaoException
Create a JDBCResourcePool using the given configuration.
init
in interface ConnectionManager
xmlProps
- XML configuration properties
DaoException
- if the manager cannot be initialised.public java.sql.Connection getConnection() throws DaoException
getConnection
in interface ConnectionManager
DaoException
- if a connection cannot be obtained.public void releaseConnection(java.sql.Connection connection)
releaseConnection
in interface ConnectionManager
connection
- Connection to releasepublic void destroy() throws DaoException
destroy
in interface ConnectionManager
DaoException
- if the manager cannot be destroyed.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |