|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DaoManager
Defines an interface for developing a Data Access Object manager.
Implementations of this interface will provide the following services:
Method Summary | |
---|---|
void |
destroy()
Destroy this manager. |
void |
freeResources(TransactionContext tc)
Free the resources held by the given transaction context. |
java.sql.Connection |
getConnection()
Returns a reference to a pooled connection. |
DaoWorker |
getDaoWorker()
Returns a reference to the DaoWorker instance of this manager. |
ListBuilder |
getListBuilder()
Returns a reference to the ListBuilder of this manager. |
java.lang.String |
getName()
Return the name of this manager. |
void |
init(XMLProperties xmlProps)
Initialise the manager with XML configuration containing the definition of the data dictionary that is abstracted and the physical database configuration parameters. |
TransactionContext |
newTransactionContext()
Instantiates and returns a TransactionContext instance. |
void |
releaseConnection(java.sql.Connection connection)
Release a connection. |
void |
setName(java.lang.String name)
Set the name of this manager. |
Method Detail |
---|
void init(XMLProperties xmlProps) throws DaoException
xmlProps
- XML configuration.
DaoException
- if the manager cannot be initialised.void setName(java.lang.String name)
name
- String containing manager name.java.lang.String getName()
java.sql.Connection getConnection() throws DaoException
DaoException
- if a connection cannot be obtained.void releaseConnection(java.sql.Connection connection)
connection
- Connection to releaseDaoWorker getDaoWorker()
TransactionContext newTransactionContext() throws DaoException
DaoException
- if the context instance cannot be returned.ListBuilder getListBuilder()
void freeResources(TransactionContext tc) throws DaoException
tc
- Free resources held by this transacation context.
DaoException
- if the resources held by the context cannot be
released.void destroy() throws DaoException
DaoException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |