org.objectweb.cjdbc.scenario.tools.mock
Class MockConnectionManager
java.lang.Object
org.objectweb.cjdbc.controller.connection.AbstractConnectionManager
org.objectweb.cjdbc.scenario.tools.mock.MockConnectionManager
- All Implemented Interfaces:
- java.lang.Cloneable, XmlComponent
- public class MockConnectionManager
- extends AbstractConnectionManager
Mock connection manager.
- Author:
- Mathieu Peltier
- See Also:
AbstractConnectionManager
Field Summary |
private MockConnection2 |
connection
Fake connection. |
private boolean |
isInitialized
true if the connections have been initialized. |
Methods inherited from class org.objectweb.cjdbc.controller.connection.AbstractConnectionManager |
copy, deleteConnection, finalize, getConnection, getConnectionFromDriver, getDriverClassName, getDriverPath, getLogin, getPassword, getVLogin, getXml, releaseConnection, retrieveConnection, setDriverClassName, setDriverPath, setLogin, setPassword, setVLogin |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
connection
private MockConnection2 connection
- Fake connection.
isInitialized
private boolean isInitialized
true
if the connections have been initialized.
MockConnectionManager
public MockConnectionManager(AbstractDatabase database)
- Creates a new
MockConnectionManager
instance.
- Parameters:
database
- AbstractDatabase
instance.
clone
protected java.lang.Object clone()
throws java.lang.CloneNotSupportedException
- Throws:
java.lang.CloneNotSupportedException
- See Also:
Object.clone()
finalizeConnections
public void finalizeConnections()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
- See Also:
AbstractConnectionManager.finalizeConnections()
getConnection
public java.sql.Connection getConnection()
- See Also:
AbstractConnectionManager.getConnection()
initializeConnections
public void initializeConnections()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
- See Also:
AbstractConnectionManager.initializeConnections()
isInitialized
public boolean isInitialized()
- See Also:
AbstractConnectionManager.isInitialized()
releaseConnection
public void releaseConnection(java.sql.Connection connection)
- See Also:
AbstractConnectionManager.releaseConnection(java.sql.Connection)
deleteConnection
public void deleteConnection(java.sql.Connection connection)
- See Also:
AbstractConnectionManager.deleteConnection(java.sql.Connection)
getCurrentNumberOfConnections
public int getCurrentNumberOfConnections()
- See Also:
AbstractConnectionManager.getCurrentNumberOfConnections()
getXmlImpl
public java.lang.String getXmlImpl()
- See Also:
AbstractConnectionManager.getXmlImpl()
Copyright © 2002, 2005 - ObjectWeb Consortium - All Rights Reserved.