com.bankframe.ei.txnhandler.connector.offline
Class OffLineConnectionFactory

java.lang.Object
  |
  +--com.bankframe.ei.txnhandler.connector.offline.OffLineConnectionFactory
All Implemented Interfaces:
EConnectionFactory, javax.naming.Referenceable, java.io.Serializable

public class OffLineConnectionFactory
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
OffLineConnectionFactory()
          OffLineConnectionFactory constructor.
OffLineConnectionFactory(EManagedConnectionFactory mcf)
          OffLineHostConnectionFactory constructor.
OffLineConnectionFactory(EManagedConnectionFactory mcf, EConnectionManager cm)
          OffLineHostConnectionFactory constructor.
 
Method Summary
 EConnection getConnection()
          This method gets a connection handle to the OffLine database.
 EConnection getConnection(java.lang.String properties)
          This method gets a connection handle to the OffLine database, 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 ref)
          This method sets the Reference instance.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OffLineConnectionFactory

public OffLineConnectionFactory()
OffLineConnectionFactory constructor.


OffLineConnectionFactory

public OffLineConnectionFactory(EManagedConnectionFactory mcf)
OffLineHostConnectionFactory constructor.

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

OffLineConnectionFactory

public OffLineConnectionFactory(EManagedConnectionFactory mcf,
                                EConnectionManager cm)
OffLineHostConnectionFactory constructor.

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

getConnection

public EConnection getConnection()
This method gets a connection handle to the OffLine database.

Specified by:
getConnection in interface EConnectionFactory
Returns:
An application level connection handle.

getConnection

public EConnection getConnection(java.lang.String properties)
This method gets a connection handle to the OffLine database, 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:
properties - A semi-colon delimited String of properties for the desired connection.
Returns:
An application level 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.
javax.naming.NamingException

setReference

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

Specified by:
setReference in interface EConnectionFactory
Parameters:
ref - The Reference object to be set for this class.


Copyright © 2005 Siebel Systems, Inc. All rights reserved.