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

java.lang.Object
  |
  +--com.bankframe.ei.txnhandler.connector.offline.OffLineManagedConnectionFactory
All Implemented Interfaces:
EManagedConnectionFactory, java.io.Serializable

public class OffLineManagedConnectionFactory
extends java.lang.Object
implements EManagedConnectionFactory

OffLineManagedConnectionFactory is the implementation of EManagedConnectionFactory.

See Also:
Serialized Form

Constructor Summary
OffLineManagedConnectionFactory()
          OffLineManagedConnectionFactory constructor.
 
Method Summary
 java.lang.Object createConnectionFactory()
          This method creates a new OffLineConnectionFactory instance.
 java.lang.Object createConnectionFactory(EConnectionManager cm)
          This method creates a new OffLineConnectionFactory instance.
 EManagedConnection createManagedConnection(java.lang.String properties)
          This method will create a new physical connection to the OffLine Database.
 boolean equals(java.lang.Object obj)
          This method checks whether a EManagedConnectionFactory instance is equal to this one.
 EManagedConnection matchManagedConnections(java.util.Set connectionSet, java.lang.String properties)
          The matchManagedConnections search the connection set, the pool, to find if there is a connector with right propertioes.
 java.util.Properties parseProperties(java.lang.String properties)
          This method will parse a semi-colon delimited String into a Properties object.
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OffLineManagedConnectionFactory

public OffLineManagedConnectionFactory()
OffLineManagedConnectionFactory constructor.

Method Detail

createConnectionFactory

public java.lang.Object createConnectionFactory()
This method creates a new OffLineConnectionFactory instance. By default, it uses the DataSourceOffLineConnectionManager as it's connection manager implementation.

Specified by:
createConnectionFactory in interface EManagedConnectionFactory
Returns:
A new OffLineConnectionFactory instance.

createConnectionFactory

public java.lang.Object createConnectionFactory(EConnectionManager cm)
This method creates a new OffLineConnectionFactory instance. It uses the EConnectionManager implementation that was passed in.

Specified by:
createConnectionFactory in interface EManagedConnectionFactory
Parameters:
cm - An instance of a Connection Manager to use with this factory.
Returns:
A new OffLineConnectionFactory instance.

createManagedConnection

public EManagedConnection createManagedConnection(java.lang.String properties)
This method will create a new physical connection to the OffLine Database. It uses a JDBC DataSource object of the application server. For scenarios where a JDBC DataSource is not available, use the createManagedConnection_NoDS method.

Specified by:
createManagedConnection in interface EManagedConnectionFactory
Parameters:
properties - A semi-colon delimited String of property values to be associated with this connection.
Returns:
A new EManagedConnection.

equals

public boolean equals(java.lang.Object obj)
This method checks whether a EManagedConnectionFactory instance is equal to this one.

Specified by:
equals in interface EManagedConnectionFactory
Overrides:
equals in class java.lang.Object
Parameters:
obj - An instance of another EManagedConnectionFactory object.
Returns:
True if the managed connection factory passed in is equal to this one.

matchManagedConnections

public EManagedConnection matchManagedConnections(java.util.Set connectionSet,
                                                  java.lang.String properties)
The matchManagedConnections search the connection set, the pool, to find if there is a connector with right propertioes. If there is one, the return it. Otherwise, return null.

Specified by:
matchManagedConnections in interface EManagedConnectionFactory
Parameters:
connectionSet - Set
properties - a semi-colon delimited String of property values
Returns:
EManagedConnection

parseProperties

public java.util.Properties parseProperties(java.lang.String properties)
This method will parse a semi-colon delimited String into a Properties object.

Parameters:
properties - A semi-colon delimited String of property values.
Returns:
A Properties object representing the String value passed in.


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