|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object toolbox.dao.ConnectionManagerDerbyImpl
public class ConnectionManagerDerbyImpl
Specialised ConnectionManager
implementation to facilitate the
use of the Apache Derby embedded database environment.
This implementation requires a special instance of the DaoManager XML configuration document. The document must provide two instances of the JDBCConfig element. The first must be named derby-data and the second must be called derby-close. The derby-close instance must specify a valid Derby connection URL for shutting down the system or database.
Constructor Summary | |
---|---|
ConnectionManagerDerbyImpl()
Default constructor |
Method Summary | |
---|---|
void |
destroy()
Shuts down the embedded environment. |
java.sql.Connection |
getConnection()
Returns a reference to the embedded database connection. |
void |
init(XMLProperties xmlProps)
Initialise the connection manager with the given XMLProperties. |
void |
releaseConnection(java.sql.Connection connection)
Empty implementation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConnectionManagerDerbyImpl()
Method Detail |
---|
public void init(XMLProperties xmlProps) throws DaoException
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 the connection cannot be obtained.public void releaseConnection(java.sql.Connection connection)
releaseConnection
in interface ConnectionManager
connection
- The embedded database connection.public 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 |