toolbox.dao
Class GenericDaoManager

Package class diagram package GenericDaoManager
java.lang.Object
  extended by toolbox.dao.AbstractDaoManager
      extended by toolbox.dao.GenericDaoManager
All Implemented Interfaces:
DaoManager

public class GenericDaoManager
extends AbstractDaoManager

Generic DaoManager implementation that should work with most JDBC compliant databases.

This class utilises the MetaDataHelper of this package to extract information from the ResultSetMetaData and DatabaseMetaData interfaces provided by the java.sql package.


Field Summary
 
Fields inherited from class toolbox.dao.AbstractDaoManager
m_statements, m_tableDefs, m_xmlProps
 
Constructor Summary
GenericDaoManager()
          Default constructor
 
Method Summary
 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.
 
Methods inherited from class toolbox.dao.AbstractDaoManager
destroy, freeResources, getConnection, getDaoWorker, getListBuilder, getName, initFinal, initSQL, initStart, newTransactionContext, releaseConnection, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericDaoManager

public GenericDaoManager()
Default constructor

Method Detail

init

public void init(XMLProperties xmlProps)
          throws DaoException
Initialise the manager with XML configuration containing the definition of the data dictionary that is abstracted and the physical database configuration parameters.

Parameters:
xmlProps - XML configuration containing data dictionary definition.
Throws:
DaoException - if the manager cannot be initialised.