|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object toolbox.dao.ConnectionManagerDataSourceImpl
public class ConnectionManagerDataSourceImpl
Abstracts the mechanism of obtaining managed connections from a javax.sql.DataSource instance.
Constructor Summary | |
---|---|
ConnectionManagerDataSourceImpl()
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 ConnectionManagerDataSourceImpl()
Method Detail |
---|
public void init(XMLProperties xmlProps) throws DaoException
Lookup a DataSource instance.
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 |