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

java.lang.Object
  extended bycom.bankframe.examples.txnhandler.connector.testcustomer.TestCustomerConnectionFactory
All Implemented Interfaces:
EConnectionFactory, javax.naming.Referenceable, java.io.Serializable

public class TestCustomerConnectionFactory
extends java.lang.Object
implements EConnectionFactory

This class creates TestCustomerConnection instances

See Also:
Serialized Form

Constructor Summary
TestCustomerConnectionFactory()
          Default constructor
TestCustomerConnectionFactory(TestCustomerManagedConnectionFactory mcf)
          Constructor
TestCustomerConnectionFactory(TestCustomerManagedConnectionFactory tcmcf, EConnectionManager ecm)
          Constructor
 
Method Summary
 EConnection getConnection()
          This method gets an TestCustomerConnection instance
 EConnection getConnection(java.lang.String properties)
          This method gets an TestCustomerConnection instance
 javax.naming.Reference getReference()
          This method gets a JNDI naming reference
 void setReference(javax.naming.Reference ref)
          This method sets the JNDI naming reference
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestCustomerConnectionFactory

public TestCustomerConnectionFactory()
Default constructor


TestCustomerConnectionFactory

public TestCustomerConnectionFactory(TestCustomerManagedConnectionFactory mcf)
Constructor

Parameters:
mcf - Managed connection factory reference

TestCustomerConnectionFactory

public TestCustomerConnectionFactory(TestCustomerManagedConnectionFactory tcmcf,
                                     EConnectionManager ecm)
Constructor

Parameters:
tcmcf - Managed connection factory instance
ecm - Connection manager
Method Detail

getConnection

public EConnection getConnection()
This method gets an TestCustomerConnection instance

Specified by:
getConnection in interface EConnectionFactory
Returns:
EConnection instance

getConnection

public EConnection getConnection(java.lang.String properties)
This method gets an TestCustomerConnection instance

Specified by:
getConnection in interface EConnectionFactory
Parameters:
properties - Configuration properties for the connection
Returns:
EConnection instance

getReference

public javax.naming.Reference getReference()
                                    throws javax.naming.NamingException
This method gets a JNDI naming reference

Specified by:
getReference in interface EConnectionFactory
Returns:
The Reference instance for this class.
Throws:
javax.naming.NamingException

setReference

public void setReference(javax.naming.Reference ref)
This method sets the JNDI naming reference

Specified by:
setReference in interface EConnectionFactory
Parameters:
ref - JNDI naming reference


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