|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.objectweb.cjdbc.controller.connection.AbstractConnectionManager
org.objectweb.cjdbc.controller.connection.SimpleConnectionManager
This connection manager creates a new Connection every time the
getConnection() method is called.
| Field Summary |
| Fields inherited from class org.objectweb.cjdbc.controller.connection.AbstractConnectionManager |
backendName, backendUrl, initialized, logger, rLogin, rPassword |
| Constructor Summary | |
SimpleConnectionManager(java.lang.String backendUrl,
java.lang.String backendName,
java.lang.String login,
java.lang.String password)
Creates a new SimpleConnectionManager instance. |
|
| Method Summary | |
void |
finalizeConnections()
Does nothing. |
java.sql.Connection |
getConnection()
Gets a new connection from the underlying driver. |
java.lang.String |
getInformation()
Gets information about this connection manager |
java.lang.String |
getXmlInformation()
Gets xml formatted information on this connection manager |
void |
initializeConnections()
Does nothing. |
void |
releaseConnection(java.sql.Connection connection)
Closes the connection. |
| Methods inherited from class org.objectweb.cjdbc.controller.connection.AbstractConnectionManager |
finalize, getConnection, getLogin, getPassword, isInitialized, releaseConnection, retrieveConnection, setLogin, setPassword |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SimpleConnectionManager(java.lang.String backendUrl,
java.lang.String backendName,
java.lang.String login,
java.lang.String password)
SimpleConnectionManager instance.
backendUrl - URL of the DatabaseBackend owning this
connection manager.backendName - name of the DatabaseBackend owning this
connection manager.login - backend connection login to be used by this connection
manager.password - backend connection password to be used by this connection
manager.| Method Detail |
public void initializeConnections()
throws java.sql.SQLException
initializeConnections in class AbstractConnectionManagerjava.sql.SQLException - if an error occurs.AbstractConnectionManager.initializeConnections()
public void finalizeConnections()
throws java.sql.SQLException
finalizeConnections in class AbstractConnectionManagerjava.sql.SQLException - if an error occurs.AbstractConnectionManager.finalizeConnections()public java.sql.Connection getConnection()
getConnection in class AbstractConnectionManagerConnection or null if no connection is
available or if the connection has not been initialized.AbstractConnectionManager.getConnection()public void releaseConnection(java.sql.Connection connection)
releaseConnection in class AbstractConnectionManagerconnection - the connection to release.AbstractConnectionManager.releaseConnection(Connection)public java.lang.String getXmlInformation()
AbstractConnectionManager
getXmlInformation in class AbstractConnectionManagerAbstractConnectionManager.getXmlInformation()public java.lang.String getInformation()
AbstractConnectionManager
getInformation in class AbstractConnectionManagerString value containing information.AbstractConnectionManager.getInformation()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||