| java.lang.Object com.rift.coad.lib.db.DBSourceManager
DBSourceManager | public class DBSourceManager (Code) | | This object is responsible for managing the database sources used by the
coadunation environments.
author: Brett Chaldecott |
Field Summary | |
protected Logger | log |
addDBSource | public void addDBSource(String driverPath, String driverClass, String jndi, HashMap env) throws DBException(Code) | | This method adds a new database source. This method must not be
used by any Daemon instances!!!!!
Parameters: driverPath - The path to the driver library. Parameters: driverClass - The driver class to load. Parameters: jndi - The name to register this jdbc connection with the jndi. Parameters: env - The environment for the jdbc connetion. exception: DBException - |
addDBSource | public void addDBSource(String driverClass, String jndi, HashMap env) throws DBException(Code) | | This method adds the database source.
Parameters: driverClass - The driver class to load. Parameters: jndi - The name to register this jdbc connection with the jndi. Parameters: env - The environment for the jdbc connetion. exception: DBException - |
getInstance | public static synchronized DBSourceManager getInstance() throws DBException(Code) | | This method returns an instance of the database source manager.
The instance of the database source manager. exception: DBException - |
init | public static synchronized void init() throws DBException(Code) | | This method initializes the database source manager.
|
removeDBSource | public void removeDBSource(String jndi) throws DBException(Code) | | This method removes the database source from JNDI. It does not unload
the library that requires a restart.
Parameters: jndi - The path to the jndi variable. exception: DBException - |
|
|