Main Page | Packages | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

org.objectweb.cjdbc.controller.connection.AbstractConnectionManager Class Reference

Inheritance diagram for org.objectweb.cjdbc.controller.connection.AbstractConnectionManager:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 AbstractConnectionManager (String backendUrl, String backendName, String rLogin, String rPassword, String driverPath, String driverClassName)
AbstractConnectionManager copy (String url, String name) throws Exception
abstract void initializeConnections () throws SQLException
abstract void finalizeConnections () throws SQLException
Connection getConnectionFromDriver ()
abstract Connection getConnection () throws UnreachableBackendException
Connection getConnection (long transactionId) throws UnreachableBackendException
Connection retrieveConnection (long transactionId)
abstract void releaseConnection (Connection connection)
void releaseConnection (long transactionId)
abstract void deleteConnection (Connection connection)
void deleteConnection (long transactionId)
boolean isInitialized ()
String getLogin ()
void setLogin (String rLogin)
String getPassword ()
void setPassword (String rPassword)
abstract String getXmlImpl ()
String getXml ()
String getVLogin ()
void setVLogin (String login)
abstract int getCurrentNumberOfConnections ()
String getDriverClassName ()
void setDriverClassName (String driverClassName)
String getDriverPath ()
void setDriverPath (String driverPath)

Protected Member Functions

void finalize () throws Throwable
abstract Object clone () throws CloneNotSupportedException

Protected Attributes

String backendUrl
String backendName
String rLogin
String rPassword
String driverClassName
String driverPath
boolean initialized

Static Package Attributes

Trace logger

Detailed Description

A ConnectionManager object is responsible to talk directly with a database backend.

Author:
Emmanuel Cecchet

Mathieu Peltier

Nicolas Modrzyk

Version:
1.0

Definition at line 47 of file AbstractConnectionManager.java.


Constructor & Destructor Documentation

org.objectweb.cjdbc.controller.connection.AbstractConnectionManager.AbstractConnectionManager String  backendUrl,
String  backendName,
String  rLogin,
String  rPassword,
String  driverPath,
String  driverClassName
 

Creates a new AbstractConnectionManager instance: assigns login/password and instanciates transaction id/connection mapping.

Parameters:
backendUrl URL of the DatabaseBackend owning this connection manager
backendName name of the DatabaseBackend owning this connection manager
rLogin backend connection login to be used by this connection manager
rPassword backend connection password to be used by this connection manager
driverPath path for driver
driverClassName class name for driver

Definition at line 112 of file AbstractConnectionManager.java.

00114   {
00115     if (backendUrl == null)
00116       throw new IllegalArgumentException(
00117           "Illegal null database backend URL in AbstractConnectionManager constructor");
00118 
00119     if (backendName == null)
00120       throw new IllegalArgumentException(
00121           "Illegal null database backend name in AbstractConnectionManager constructor");
00122 
00123     if (rLogin == null)
00124       throw new IllegalArgumentException(
00125           "Illegal null database backend login in AbstractConnectionManager constructor");
00126 
00127     if (rPassword == null)
00128       throw new IllegalArgumentException(
00129           "Illegal null database backend password in AbstractConnectionManager constructor");
00130 
00131     if (driverPath != null)
00132     {
00133       if (driverClassName == null)
00134       {
00135         throw new IllegalArgumentException(
00136             "Illegal null database backend driverClassName in AbstractConnectionManager constructor");
00137       }
00138     }
00139     this.backendUrl = backendUrl;
00140     this.backendName = backendName;
00141     this.rLogin = rLogin;
00142     this.rPassword = rPassword;
00143     this.driverPath = driverPath;
00144     this.driverClassName = driverClassName;
00145     connectionForTransaction = new Hashtable();
00146 
00147   }


Member Function Documentation

AbstractConnectionManager org.objectweb.cjdbc.controller.connection.AbstractConnectionManager.copy String  url,
String  name
throws Exception
 

Copy this connection manager and replace the name of the backend and its url Every other parameter is the same

Parameters:
url the url to the backend associated to this ConnectionManager
name the name of the backend
Returns:
AbstractConnectionManager
Exceptions:
Exception if clone fails

Definition at line 158 of file AbstractConnectionManager.java.

References org.objectweb.cjdbc.controller.connection.AbstractConnectionManager.backendName, org.objectweb.cjdbc.controller.connection.AbstractConnectionManager.backendUrl, and org.objectweb.cjdbc.controller.connection.AbstractConnectionManager.clone().

Referenced by org.objectweb.cjdbc.controller.backend.DatabaseBackend.copy().

00160   {
00161     AbstractConnectionManager connectionManager = (AbstractConnectionManager) this
00162         .clone();
00163     connectionManager.backendName = name;
00164     connectionManager.backendUrl = url;
00165     return connectionManager;
00166   }

void org.objectweb.cjdbc.controller.connection.AbstractConnectionManager.deleteConnection long  transactionId  ) 
 

Delete a bad connection that was used for a transaction. The corresponding connection is deleted by calling deleteConnection(Connection).

Parameters:
transactionId the transaction id.
See also:
releaseConnection(Connection)

Definition at line 307 of file AbstractConnectionManager.java.

References org.objectweb.cjdbc.controller.connection.AbstractConnectionManager.deleteConnection(), and org.objectweb.cjdbc.controller.connection.AbstractConnectionManager.logger.

00308   {
00309     Connection c = (Connection) connectionForTransaction.remove(new Long(
00310         transactionId));
00311 
00312     if (c == null)
00313       logger.error(Translate.get("connection.transaction.unknown",
00314           transactionId));
00315     else
00316       deleteConnection(c);
00317   }

abstract void org.objectweb.cjdbc.controller.connection.AbstractConnectionManager.deleteConnection Connection  connection  )  [pure virtual]
 

Delete a connection that is no more valid.

Parameters:
connection the connection to delete.

Implemented in org.objectweb.cjdbc.controller.connection.FailFastPoolConnectionManager, org.objectweb.cjdbc.controller.connection.RandomWaitPoolConnectionManager, org.objectweb.cjdbc.controller.connection.SimpleConnectionManager, and org.objectweb.cjdbc.controller.connection.VariablePoolConnectionManager.

Referenced by org.objectweb.cjdbc.controller.connection.AbstractConnectionManager.deleteConnection(), and org.objectweb.cjdbc.controller.loadbalancer.singledb.SingleDB.execReadRequest().

void org.objectweb.cjdbc.controller.connection.AbstractConnectionManager.finalize  )  throws Throwable [protected]
 

Ensures that the connections are closed when the object is garbage collected.

Exceptions:
Throwable if an error occurs.

Definition at line 405 of file AbstractConnectionManager.java.

References org.objectweb.cjdbc.controller.connection.AbstractConnectionManager.finalizeConnections(), and org.objectweb.cjdbc.controller.connection.AbstractConnectionManager.isInitialized().

00406   {
00407     if (isInitialized())
00408       finalizeConnections();
00409     super.finalize();
00410   }

abstract void org.objectweb.cjdbc.controller.connection.AbstractConnectionManager.finalizeConnections  )  throws SQLException [pure virtual]
 

Releases all the connections to the database.

Exceptions:
SQLException if an error occurs.

Implemented in org.objectweb.cjdbc.controller.connection.AbstractPoolConnectionManager, org.objectweb.cjdbc.controller.connection.SimpleConnectionManager, and org.objectweb.cjdbc.controller.connection.VariablePoolConnectionManager.

Referenced by org.objectweb.cjdbc.controller.loadbalancer.singledb.SingleDB.disableBackend(), and org.objectweb.cjdbc.controller.connection.AbstractConnectionManager.finalize().

Connection org.objectweb.cjdbc.controller.connection.AbstractConnectionManager.getConnection long  transactionId  )  throws UnreachableBackendException
 

Gets a new connection for a transaction. This function calls getConnection()to get the connection and store the mapping between the connection and the transaction id.

Parameters:
transactionId the transaction id.
Returns:
a Connection or null if no connection is available .
Exceptions:
UnreachableBackendException if the backend must be disabled
See also:
getConnection()

Definition at line 231 of file AbstractConnectionManager.java.

References org.objectweb.cjdbc.controller.connection.AbstractConnectionManager.getConnection(), and org.objectweb.cjdbc.controller.connection.AbstractConnectionManager.logger.

00233   {
00234     Long lTid = new Long(transactionId);
00235     Connection c = getConnection();
00236     if (c != null)
00237     {
00238       if (connectionForTransaction.put(lTid, c) != null)
00239       {
00240         logger
00241             .error("A new connection for transaction "
00242                 + lTid
00243                 + " has been opened but there was a remaining connection for this transaction that has not been closed.");
00244       }
00245     }
00246     return c;
00247   }

abstract Connection org.objectweb.cjdbc.controller.connection.AbstractConnectionManager.getConnection  )  throws UnreachableBackendException [pure virtual]
 

Gets a connection from the pool (round-robin).

Returns:
a Connection or null if no connection is available or if the connection has not been initialized.
Exceptions:
UnreachableBackendException if the backend must be disabled

Implemented in org.objectweb.cjdbc.controller.connection.FailFastPoolConnectionManager, org.objectweb.cjdbc.controller.connection.RandomWaitPoolConnectionManager, org.objectweb.cjdbc.controller.connection.SimpleConnectionManager, and org.objectweb.cjdbc.controller.connection.VariablePoolConnectionManager.

Referenced by org.objectweb.cjdbc.controller.loadbalancer.singledb.SingleDB.execReadRequest(), org.objectweb.cjdbc.controller.loadbalancer.singledb.SingleDB.execReadStoredProcedure(), org.objectweb.cjdbc.controller.loadbalancer.tasks.WriteStoredProcedureTask.executeTask(), org.objectweb.cjdbc.controller.loadbalancer.tasks.WriteRequestWithKeysTask.executeTask(), org.objectweb.cjdbc.controller.loadbalancer.tasks.WriteRequestTask.executeTask(), org.objectweb.cjdbc.controller.loadbalancer.tasks.SelectRequestTask.executeTask(), org.objectweb.cjdbc.controller.loadbalancer.tasks.ReadStoredProcedureTask.executeTask(), org.objectweb.cjdbc.controller.loadbalancer.singledb.SingleDB.execWriteRequest(), org.objectweb.cjdbc.controller.loadbalancer.raidb0.RAIDb0.execWriteRequest(), org.objectweb.cjdbc.controller.loadbalancer.singledb.SingleDB.execWriteRequestWithKeys(), org.objectweb.cjdbc.controller.loadbalancer.raidb0.RAIDb0.execWriteRequestWithKeys(), org.objectweb.cjdbc.controller.loadbalancer.singledb.SingleDB.execWriteStoredProcedure(), org.objectweb.cjdbc.controller.connection.AbstractConnectionManager.getConnection(), and org.objectweb.cjdbc.controller.connection.AbstractConnectionManager.getConnectionFromDriver().

Connection org.objectweb.cjdbc.controller.connection.AbstractConnectionManager.getConnectionFromDriver  ) 
 

Get a connection from DriverManager.

Returns:
a new connection or null if Driver.getConnection() failed.
See also:
DriverManager.getConnection(String, String, String, String, String)

Definition at line 193 of file AbstractConnectionManager.java.

References org.objectweb.cjdbc.controller.connection.AbstractConnectionManager.backendUrl, org.objectweb.cjdbc.controller.connection.AbstractConnectionManager.driverClassName, org.objectweb.cjdbc.controller.connection.AbstractConnectionManager.driverPath, org.objectweb.cjdbc.controller.connection.AbstractConnectionManager.getConnection(), org.objectweb.cjdbc.controller.connection.AbstractConnectionManager.logger, org.objectweb.cjdbc.controller.connection.AbstractConnectionManager.rLogin, and org.objectweb.cjdbc.controller.connection.AbstractConnectionManager.rPassword.

Referenced by org.objectweb.cjdbc.controller.connection.VariablePoolConnectionManager.deleteConnection(), org.objectweb.cjdbc.controller.connection.RandomWaitPoolConnectionManager.deleteConnection(), org.objectweb.cjdbc.controller.connection.VariablePoolConnectionManager.getConnection(), org.objectweb.cjdbc.controller.connection.SimpleConnectionManager.getConnection(), org.objectweb.cjdbc.controller.connection.RandomWaitPoolConnectionManager.getConnection(), org.objectweb.cjdbc.controller.connection.FailFastPoolConnectionManager.getConnection(), and org.objectweb.cjdbc.controller.backend.DatabaseBackend.isJDBCConnected().

00195   {
00196     try
00197     {
00198       return DriverManager.getConnection(backendUrl, rLogin, rPassword,
00199           driverPath, driverClassName);
00200     }
00201     catch (SQLException ignore)
00202     {
00203       if (logger.isDebugEnabled())
00204       {
00205         logger.debug("failed to get connection for driver ", ignore);
00206       }
00207       return null;
00208     }
00209   }

abstract int org.objectweb.cjdbc.controller.connection.AbstractConnectionManager.getCurrentNumberOfConnections  )  [pure virtual]
 

Get the current number of connections open for this connection manager.

Returns:
the current number of open connections

Implemented in org.objectweb.cjdbc.controller.connection.AbstractPoolConnectionManager, and org.objectweb.cjdbc.controller.connection.SimpleConnectionManager.

Referenced by org.objectweb.cjdbc.controller.backend.DatabaseBackend.getTotalActiveConnections().

String org.objectweb.cjdbc.controller.connection.AbstractConnectionManager.getDriverClassName  ) 
 

Returns the driverClassName value.

Returns:
Returns the driverClassName.

Definition at line 440 of file AbstractConnectionManager.java.

Referenced by org.objectweb.cjdbc.controller.backend.DatabaseBackend.copy().

00441   {
00442     return driverClassName;
00443   }

String org.objectweb.cjdbc.controller.connection.AbstractConnectionManager.getDriverPath  ) 
 

Returns the driverPath value.

Returns:
Returns the driverPath.

Definition at line 460 of file AbstractConnectionManager.java.

Referenced by org.objectweb.cjdbc.controller.backend.DatabaseBackend.copy().

00461   {
00462     return driverPath;
00463   }

String org.objectweb.cjdbc.controller.connection.AbstractConnectionManager.getLogin  ) 
 

Returns the login used by this connection manager.

Returns:
a String value.

Definition at line 338 of file AbstractConnectionManager.java.

Referenced by org.objectweb.cjdbc.controller.backend.DatabaseBackend.checkDatabaseSchema().

00339   {
00340     return rLogin;
00341   }

String org.objectweb.cjdbc.controller.connection.AbstractConnectionManager.getPassword  ) 
 

Returns the password used by this connection manager.

Returns:
a String value.

Definition at line 358 of file AbstractConnectionManager.java.

00359   {
00360     return rPassword;
00361   }

String org.objectweb.cjdbc.controller.connection.AbstractConnectionManager.getVLogin  ) 
 

Returns:
Returns the vLogin.

Definition at line 415 of file AbstractConnectionManager.java.

00416   {
00417     return vLogin;
00418   }

String org.objectweb.cjdbc.controller.connection.AbstractConnectionManager.getXml  ) 
 

See also:
org.objectweb.cjdbc.common.xml.XmlComponent.getXml()

Definition at line 387 of file AbstractConnectionManager.java.

References org.objectweb.cjdbc.controller.connection.AbstractConnectionManager.getXmlImpl(), org.objectweb.cjdbc.controller.connection.AbstractConnectionManager.rLogin, and org.objectweb.cjdbc.controller.connection.AbstractConnectionManager.rPassword.

Referenced by org.objectweb.cjdbc.controller.backend.DatabaseBackend.getXml().

00388   {
00389     StringBuffer info = new StringBuffer();
00390     info.append("<" + DatabasesXmlTags.ELT_ConnectionManager + " "
00391         + DatabasesXmlTags.ATT_vLogin + "=\"" + vLogin + "\"  " + ""
00392         + DatabasesXmlTags.ATT_rLogin + "=\"" + rLogin + "\"  " + ""
00393         + DatabasesXmlTags.ATT_rPassword + "=\"" + rPassword + "\"  " + ">");
00394     info.append(this.getXmlImpl());
00395     info.append("</" + DatabasesXmlTags.ELT_ConnectionManager + ">");
00396     return info.toString();
00397   }

abstract String org.objectweb.cjdbc.controller.connection.AbstractConnectionManager.getXmlImpl  )  [pure virtual]
 

Gets xml formatted information on this connection manager

Returns:
xml formatted string that conforms to c-jdbc.dtd

Implemented in org.objectweb.cjdbc.controller.connection.FailFastPoolConnectionManager, org.objectweb.cjdbc.controller.connection.RandomWaitPoolConnectionManager, org.objectweb.cjdbc.controller.connection.SimpleConnectionManager, and org.objectweb.cjdbc.controller.connection.VariablePoolConnectionManager.

Referenced by org.objectweb.cjdbc.controller.connection.AbstractConnectionManager.getXml().

abstract void org.objectweb.cjdbc.controller.connection.AbstractConnectionManager.initializeConnections  )  throws SQLException [pure virtual]
 

Initializes the connection(s) to the database. The caller must ensure that the driver has already been loaded else an exception will be thrown.

Exceptions:
SQLException if an error occurs.

Implemented in org.objectweb.cjdbc.controller.connection.AbstractPoolConnectionManager, org.objectweb.cjdbc.controller.connection.SimpleConnectionManager, and org.objectweb.cjdbc.controller.connection.VariablePoolConnectionManager.

Referenced by org.objectweb.cjdbc.controller.loadbalancer.singledb.SingleDB.enableBackend().

boolean org.objectweb.cjdbc.controller.connection.AbstractConnectionManager.isInitialized  ) 
 

Tests if the connections have been initialized.

Returns:
true if the connections have been initialized.

Definition at line 324 of file AbstractConnectionManager.java.

Referenced by org.objectweb.cjdbc.controller.connection.AbstractConnectionManager.finalize().

00325   {
00326     return initialized;
00327   }

void org.objectweb.cjdbc.controller.connection.AbstractConnectionManager.releaseConnection long  transactionId  ) 
 

Releases a connection used for a transaction. The corresponding connection is released by calling releaseConnection(Connection).

Parameters:
transactionId the transaction id.
See also:
releaseConnection(Connection)

Definition at line 281 of file AbstractConnectionManager.java.

References org.objectweb.cjdbc.controller.connection.AbstractConnectionManager.logger, and org.objectweb.cjdbc.controller.connection.AbstractConnectionManager.releaseConnection().

00282   {
00283     Connection c = (Connection) connectionForTransaction.remove(new Long(
00284         transactionId));
00285 
00286     if (c == null)
00287       logger.error(Translate.get("connection.transaction.unknown",
00288           transactionId));
00289     else
00290       releaseConnection(c);
00291   }

abstract void org.objectweb.cjdbc.controller.connection.AbstractConnectionManager.releaseConnection Connection  connection  )  [pure virtual]
 

Releases a connection.

Parameters:
connection the connection to release.

Implemented in org.objectweb.cjdbc.controller.connection.FailFastPoolConnectionManager, org.objectweb.cjdbc.controller.connection.RandomWaitPoolConnectionManager, org.objectweb.cjdbc.controller.connection.SimpleConnectionManager, and org.objectweb.cjdbc.controller.connection.VariablePoolConnectionManager.

Referenced by org.objectweb.cjdbc.controller.loadbalancer.singledb.SingleDB.commit(), org.objectweb.cjdbc.controller.loadbalancer.singledb.SingleDB.execReadRequest(), org.objectweb.cjdbc.controller.loadbalancer.singledb.SingleDB.execReadStoredProcedure(), org.objectweb.cjdbc.controller.loadbalancer.tasks.WriteStoredProcedureTask.executeTask(), org.objectweb.cjdbc.controller.loadbalancer.tasks.WriteRequestWithKeysTask.executeTask(), org.objectweb.cjdbc.controller.loadbalancer.tasks.WriteRequestTask.executeTask(), org.objectweb.cjdbc.controller.loadbalancer.tasks.SelectRequestTask.executeTask(), org.objectweb.cjdbc.controller.loadbalancer.tasks.RollbackTask.executeTask(), org.objectweb.cjdbc.controller.loadbalancer.tasks.ReadStoredProcedureTask.executeTask(), org.objectweb.cjdbc.controller.loadbalancer.tasks.CommitTask.executeTask(), org.objectweb.cjdbc.controller.loadbalancer.singledb.SingleDB.execWriteRequest(), org.objectweb.cjdbc.controller.loadbalancer.raidb0.RAIDb0.execWriteRequest(), org.objectweb.cjdbc.controller.loadbalancer.singledb.SingleDB.execWriteStoredProcedure(), org.objectweb.cjdbc.controller.connection.AbstractConnectionManager.releaseConnection(), and org.objectweb.cjdbc.controller.loadbalancer.singledb.SingleDB.rollback().

Connection org.objectweb.cjdbc.controller.connection.AbstractConnectionManager.retrieveConnection long  transactionId  ) 
 

Retrieves a connection used for a transaction. This connection must have been allocated by calling getConnection(long).

Parameters:
transactionId the transaction id.
Returns:
a Connection or null if no connection has been found for this transaction id.
See also:
getConnection(long)

Definition at line 258 of file AbstractConnectionManager.java.

Referenced by org.objectweb.cjdbc.controller.loadbalancer.singledb.SingleDB.commit(), org.objectweb.cjdbc.controller.loadbalancer.paralleldb.ParallelDB.commit(), org.objectweb.cjdbc.controller.loadbalancer.singledb.SingleDB.execReadRequest(), org.objectweb.cjdbc.controller.loadbalancer.singledb.SingleDB.execReadStoredProcedure(), org.objectweb.cjdbc.controller.loadbalancer.tasks.RollbackTask.executeTask(), org.objectweb.cjdbc.controller.loadbalancer.tasks.CommitTask.executeTask(), org.objectweb.cjdbc.controller.loadbalancer.singledb.SingleDB.execWriteStoredProcedure(), org.objectweb.cjdbc.controller.loadbalancer.singledb.SingleDB.rollback(), and org.objectweb.cjdbc.controller.loadbalancer.paralleldb.ParallelDB.rollback().

00259   {
00260     Long id = new Long(transactionId);
00261     synchronized (connectionForTransaction)
00262     {
00263       return (Connection) connectionForTransaction.get(id);
00264     }
00265   }

void org.objectweb.cjdbc.controller.connection.AbstractConnectionManager.setDriverClassName String  driverClassName  ) 
 

Sets the driverClassName value.

Parameters:
driverClassName The driverClassName to set.

Definition at line 450 of file AbstractConnectionManager.java.

References org.objectweb.cjdbc.controller.connection.AbstractConnectionManager.driverClassName.

00451   {
00452     this.driverClassName = driverClassName;
00453   }

void org.objectweb.cjdbc.controller.connection.AbstractConnectionManager.setDriverPath String  driverPath  ) 
 

Sets the driverPath value.

Parameters:
driverPath The driverPath to set.

Definition at line 470 of file AbstractConnectionManager.java.

References org.objectweb.cjdbc.controller.connection.AbstractConnectionManager.driverPath.

00471   {
00472     this.driverPath = driverPath;
00473   }

void org.objectweb.cjdbc.controller.connection.AbstractConnectionManager.setLogin String  rLogin  ) 
 

Sets the login to be used by this connection manager.

Parameters:
rLogin the login to set.

Definition at line 348 of file AbstractConnectionManager.java.

References org.objectweb.cjdbc.controller.connection.AbstractConnectionManager.rLogin.

00349   {
00350     this.rLogin = rLogin;
00351   }

void org.objectweb.cjdbc.controller.connection.AbstractConnectionManager.setPassword String  rPassword  ) 
 

Sets the password to be used by this connection manager.

Parameters:
rPassword the password to set.

Definition at line 368 of file AbstractConnectionManager.java.

References org.objectweb.cjdbc.controller.connection.AbstractConnectionManager.rPassword.

00369   {
00370     this.rPassword = rPassword;
00371   }

void org.objectweb.cjdbc.controller.connection.AbstractConnectionManager.setVLogin String  login  ) 
 

Parameters:
login The vLogin to set.

Definition at line 423 of file AbstractConnectionManager.java.

00424   {
00425     vLogin = login;
00426   }


Member Data Documentation

String org.objectweb.cjdbc.controller.connection.AbstractConnectionManager.backendName [protected]
 

Name of the DatabaseBackend owning this connection manager.

Definition at line 68 of file AbstractConnectionManager.java.

Referenced by org.objectweb.cjdbc.controller.connection.AbstractConnectionManager.copy().

String org.objectweb.cjdbc.controller.connection.AbstractConnectionManager.backendUrl [protected]
 

URL of the DatabaseBackend owning this connection manager.

Definition at line 63 of file AbstractConnectionManager.java.

Referenced by org.objectweb.cjdbc.controller.connection.AbstractConnectionManager.copy(), and org.objectweb.cjdbc.controller.connection.AbstractConnectionManager.getConnectionFromDriver().

String org.objectweb.cjdbc.controller.connection.AbstractConnectionManager.driverClassName [protected]
 

The class name of the driver

Definition at line 77 of file AbstractConnectionManager.java.

Referenced by org.objectweb.cjdbc.controller.backend.DatabaseBackend.getBackendData(), org.objectweb.cjdbc.controller.connection.AbstractConnectionManager.getConnectionFromDriver(), and org.objectweb.cjdbc.controller.connection.AbstractConnectionManager.setDriverClassName().

String org.objectweb.cjdbc.controller.connection.AbstractConnectionManager.driverPath [protected]
 

The path to the driver if null the default directory is used

Definition at line 82 of file AbstractConnectionManager.java.

Referenced by org.objectweb.cjdbc.controller.connection.AbstractConnectionManager.getConnectionFromDriver(), and org.objectweb.cjdbc.controller.connection.AbstractConnectionManager.setDriverPath().

boolean org.objectweb.cjdbc.controller.connection.AbstractConnectionManager.initialized [protected]
 

true if the connection pool has been initialized.

Definition at line 85 of file AbstractConnectionManager.java.

Trace org.objectweb.cjdbc.controller.connection.AbstractConnectionManager.logger [static, package]
 

Initial value:

 Trace
                                         .getLogger("org.objectweb.cjdbc.controller.connection")
Logger instance.

Definition at line 59 of file AbstractConnectionManager.java.

Referenced by org.objectweb.cjdbc.controller.connection.AbstractConnectionManager.deleteConnection(), org.objectweb.cjdbc.controller.connection.AbstractConnectionManager.getConnection(), org.objectweb.cjdbc.controller.connection.AbstractConnectionManager.getConnectionFromDriver(), and org.objectweb.cjdbc.controller.connection.AbstractConnectionManager.releaseConnection().

String org.objectweb.cjdbc.controller.connection.AbstractConnectionManager.rLogin [protected]
 

Backend connection login to be used by this connection manager.

Definition at line 71 of file AbstractConnectionManager.java.

Referenced by org.objectweb.cjdbc.controller.connection.AbstractConnectionManager.getConnectionFromDriver(), org.objectweb.cjdbc.controller.connection.AbstractConnectionManager.getXml(), and org.objectweb.cjdbc.controller.connection.AbstractConnectionManager.setLogin().

String org.objectweb.cjdbc.controller.connection.AbstractConnectionManager.rPassword [protected]
 

Backend connection password to be used by this connection manager.

Definition at line 74 of file AbstractConnectionManager.java.

Referenced by org.objectweb.cjdbc.controller.connection.AbstractConnectionManager.getConnectionFromDriver(), org.objectweb.cjdbc.controller.connection.AbstractConnectionManager.getXml(), and org.objectweb.cjdbc.controller.connection.AbstractConnectionManager.setPassword().


The documentation for this class was generated from the following file:
Generated on Mon Apr 11 22:03:39 2005 for C-JDBC by  doxygen 1.3.9.1