|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||

java.lang.Objecttoolbox.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 ConnectionManagerxmlProps - XML configuration properties
DaoException - if the manager cannot be initialised.
public java.sql.Connection getConnection()
throws DaoException
getConnection in interface ConnectionManagerDaoException - if a connection cannot be obtained.public void releaseConnection(java.sql.Connection connection)
releaseConnection in interface ConnectionManagerconnection - Connection to release
public void destroy()
throws DaoException
destroy in interface ConnectionManagerDaoException - if the manager cannot be destroyed.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||