| net.xoetrope.optional.data.sql.ConnectionManager net.xoetrope.optional.data.sql.NamedConnectionManager
NamedConnectionManager | public class NamedConnectionManager extends ConnectionManager (Code) | | An extension of the ConnectionManager to manage connections to multiple
databases
Copyright: Copyright (c) 2003
License: see license.txt
$Revision: 1.4 $
|
connectionParameters | protected Vector connectionParameters(Code) | | Storage for the various connection parameters
|
NamedConnectionManager | protected NamedConnectionManager(String aDriver, String aurl, String auser, String apassword, int size)(Code) | | Constructs a new ConnectionManager, called by getInstance
Parameters: aurl - the database connection string Parameters: auser - the database user Parameters: apassword - the database password Parameters: size - the initial pool size |
addConnection | public void addConnection(String name, String driver, String url, String userName, String password)(Code) | | Gets an instance of the ConnectionManager. Any open connections are closed
prior to attempting the new connection.
Parameters: name - the name by which the connection paramenters will be referenced Parameters: driver - the driver class name Parameters: url - the database URL Parameters: userName - the user name Parameters: password - the password |
findConnectionParams | protected Object findConnectionParams(String connParamName)(Code) | | Find a nameds set of connection parameters
Parameters: connParamName - the name of the set of connection parameters the set or null if nothing is found |
getObject | public PoolObject getObject(String connParamName) throws Exception(Code) | | Get a new object from the pool. A lease is granted to the new object
Parameters: connParamName - the name of the connection parameters a new PoolObject throws: Exception - |
|
|