org.objectweb.cjdbc.controller.backend
Class MockConnectionManager

java.lang.Object
  extended byorg.objectweb.cjdbc.controller.connection.AbstractConnectionManager
      extended byorg.objectweb.cjdbc.controller.backend.MockConnectionManager
All Implemented Interfaces:
java.io.Serializable

public class MockConnectionManager
extends AbstractConnectionManager

Mock connection manager.

Author:
Mathieu Peltier
See Also:
AbstractConnectionManager, Serialized Form

Nested Class Summary
 class MockConnectionManager.MockDatabaseMetaData
          Mock database meta data.
 
Field Summary
private  MockConnection connection
          Fake connection.
private  boolean isInitialized
          true if the connections have been initialized.
 
Fields inherited from class org.objectweb.cjdbc.controller.connection.AbstractConnectionManager
backendName, backendUrl, initialized, rLogin, rPassword
 
Constructor Summary
MockConnectionManager(AbstractDatabase database)
          Creates a new MockConnectionManager instance.
 
Method Summary
 void finalizeConnections()
           
 java.sql.Connection getConnection()
           
 java.lang.String getInformation()
           
 java.lang.String getXmlInformation()
           
 void initializeConnections()
           
 boolean isInitialized()
           
 void releaseConnection(java.sql.Connection connection)
           
 
Methods inherited from class org.objectweb.cjdbc.controller.connection.AbstractConnectionManager
finalize, getConnection, getLogin, getPassword, releaseConnection, retrieveConnection, setLogin, setPassword
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

connection

private MockConnection connection
Fake connection.


isInitialized

private boolean isInitialized
true if the connections have been initialized.

Constructor Detail

MockConnectionManager

public MockConnectionManager(AbstractDatabase database)
Creates a new MockConnectionManager instance.

Parameters:
database - AbstractDatabase instance.
Method Detail

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)

getInformation

public java.lang.String getInformation()
See Also:
AbstractConnectionManager.getInformation()

getXmlInformation

public java.lang.String getXmlInformation()


Copyright © 2002, 2003 - ObjectWeb Consortium - All Rights Reserved.