com.bankframe.examples.txnhandler.connector.testcustomer
Class TestCustomerConnectionManager

java.lang.Object
  extended bycom.bankframe.examples.txnhandler.connector.testcustomer.TestCustomerConnectionManager
All Implemented Interfaces:
EConnectionEventListener, EConnectionManager, java.util.EventListener, java.io.Serializable

public class TestCustomerConnectionManager
extends java.lang.Object
implements EConnectionManager, EConnectionEventListener

This class manages TestCustomerConnection instances

See Also:
Serialized Form

Method Summary
 java.lang.Object allocateConnection(EManagedConnectionFactory mcf, java.lang.String properties)
          This method gets a TestCustomerConnection instance
 void connectionClosed(EConnectionEvent event)
          This method is called when a connection is closed
 void connectionErrorOccurred(EConnectionEvent event)
          This method is called when a connection error occurs
 void freeConnection(EManagedConnection con)
          This method releases a connection back into the pool
static TestCustomerConnectionManager getInstance()
          This method gets a singleton instance of the TestCustomerConnectionManager
 TestCustomerConnectionPool getPool()
          This method gets the connection pool
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

allocateConnection

public java.lang.Object allocateConnection(EManagedConnectionFactory mcf,
                                           java.lang.String properties)
This method gets a TestCustomerConnection instance

Specified by:
allocateConnection in interface EConnectionManager
Parameters:
mcf - Managed connection factory
properties - configuration properteis
Returns:
TestCustomerConnection instance

connectionClosed

public void connectionClosed(EConnectionEvent event)
This method is called when a connection is closed

Specified by:
connectionClosed in interface EConnectionEventListener
Parameters:
event - The close event

connectionErrorOccurred

public void connectionErrorOccurred(EConnectionEvent event)
This method is called when a connection error occurs

Specified by:
connectionErrorOccurred in interface EConnectionEventListener
Parameters:
event - The connection error event

freeConnection

public void freeConnection(EManagedConnection con)
This method releases a connection back into the pool


getInstance

public static TestCustomerConnectionManager getInstance()
This method gets a singleton instance of the TestCustomerConnectionManager


getPool

public TestCustomerConnectionPool getPool()
This method gets the connection pool



Copyright © 2005, 2007, Oracle. All rights reserved.