com.bankframe.ei.txnhandler.connector.jdbcconnector
Class JDBCConnectionFactory

java.lang.Object
  extended bycom.bankframe.ei.txnhandler.connector.jdbcconnector.JDBCConnectionFactory
All Implemented Interfaces:
EConnectionFactory, javax.naming.Referenceable, java.io.Serializable

public class JDBCConnectionFactory
extends java.lang.Object
implements EConnectionFactory

This class provides a means for an application to obtain a connection to a host system. The Connector's connection factory can be looked up in the JNDI namespace of the application server that it was deployed to. The application then uses the getConnection method to obtain an instance of the corresponding EConnection class.

See Also:
Serialized Form

Constructor Summary
JDBCConnectionFactory()
          JDBCConnectionFactory constructor with no argument.
JDBCConnectionFactory(JDBCManagedConnectionFactory jdbcmanagedconnectionfactory)
          JDBCConnectionFactory constructor with argument JDBCManagedConnectionFactory.
JDBCConnectionFactory(JDBCManagedConnectionFactory jdbcmanagedconnectionfactory, EConnectionManager econnectionmanager)
          JDBCConnectionFactory constructor with argument JDBCManagedConnectionFactory.
 
Method Summary
 EConnection getConnection()
          This method gets a connection handle to JDBC.
 EConnection getConnection(java.lang.String s)
          This method gets a connection handle to JDBC, by matching or creating a new connection to the parameters specified in the String of properties passed in.
 javax.naming.Reference getReference()
          This method gets the Reference instance.
 void setReference(javax.naming.Reference reference1)
          This method sets the Reference instance.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDBCConnectionFactory

public JDBCConnectionFactory()
JDBCConnectionFactory constructor with no argument.


JDBCConnectionFactory

public JDBCConnectionFactory(JDBCManagedConnectionFactory jdbcmanagedconnectionfactory)
JDBCConnectionFactory constructor with argument JDBCManagedConnectionFactory.

Parameters:
jdbcmanagedconnectionfactory - An instance of a EManagedConnectionFactory to be associated with this Factory.

JDBCConnectionFactory

public JDBCConnectionFactory(JDBCManagedConnectionFactory jdbcmanagedconnectionfactory,
                             EConnectionManager econnectionmanager)
JDBCConnectionFactory constructor with argument JDBCManagedConnectionFactory.

Parameters:
jdbcmanagedconnectionfactory - An instance of a EManagedConnectionFactory to be associated with this Factory.
econnectionmanager - An instance of an EConnectionManager to be associated with this Factory.
Method Detail

getConnection

public EConnection getConnection()
This method gets a connection handle to JDBC.

Specified by:
getConnection in interface EConnectionFactory
Returns:
EConnection a connection handle.

getConnection

public EConnection getConnection(java.lang.String s)
This method gets a connection handle to JDBC, by matching or creating a new connection to the parameters specified in the String of properties passed in.

Specified by:
getConnection in interface EConnectionFactory
Parameters:
s - A semi-colon delimited String of connection specific properties. For example: user=jbloggs;password=eontec;paramX=valueX;
Returns:
EConnection a connection handle.

getReference

public javax.naming.Reference getReference()
                                    throws javax.naming.NamingException
This method gets the Reference instance.

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

setReference

public void setReference(javax.naming.Reference reference1)
This method sets the Reference instance.

Specified by:
setReference in interface EConnectionFactory
Parameters:
reference1 - A Reference instance


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