com.bankframe.ei.txnhandler.connector
Interface EManagedConnectionFactory

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
CobolTestManagedConnectionFactory, JDBCManagedConnectionFactory, OffLineManagedConnectionFactory, TestCustomerManagedConnectionFactory

public interface EManagedConnectionFactory
extends java.io.Serializable

EManagedConnectionFactory instance is a factory of both EManagedConnection and connector-specific connection factory instances. This interface supports connection pooling by providing methods for matching and creation of EManagedConnection instance.


Method Summary
 java.lang.Object createConnectionFactory()
          This method creates a Connection Factory instance
 java.lang.Object createConnectionFactory(EConnectionManager cm)
          This method creates a Connection Factory instance.
 EManagedConnection createManagedConnection(java.lang.String properties)
          This method creates a new physical connection to the underlying Connector resource manager
 boolean equals(java.lang.Object other)
          This method checks if this EManagedConnectionFactory is equal to another EManagedConnectionFactory
 EManagedConnection matchManagedConnections(java.util.Set connectionSet, java.lang.String properties)
          This method returns a matched connection from the candidate set of connections
 

Method Detail

createConnectionFactory

public java.lang.Object createConnectionFactory()
This method creates a Connection Factory instance

Returns:
Connection Factory instance.

createConnectionFactory

public java.lang.Object createConnectionFactory(EConnectionManager cm)
This method creates a Connection Factory instance. The Connection Factory instance gets initialized with the passed EConnectionManager. In the managed scenario, a Connection Manager is provided by the application server. In a non-managed scenario, it is provided by the connector provider, or the application developers.

Parameters:
cm - The connection manager to be associated with this connection factory instance.
Returns:
Connection Factory instance

createManagedConnection

public EManagedConnection createManagedConnection(java.lang.String properties)
This method creates a new physical connection to the underlying Connector resource manager

Parameters:
properties - additional connector specific connection request information (as a semi-colon delimited String)
Returns:
EManagedConnection instance

equals

public boolean equals(java.lang.Object other)
This method checks if this EManagedConnectionFactory is equal to another EManagedConnectionFactory

Overrides:
equals in class java.lang.Object
Parameters:
other - Another instance of an EManagedConnectionFactory
Returns:
true if two instances are equal

matchManagedConnections

public EManagedConnection matchManagedConnections(java.util.Set connectionSet,
                                                  java.lang.String properties)
This method returns a matched connection from the candidate set of connections

Parameters:
connectionSet - The candidate Set of connections
properties - Any connection specific information required by the connector.
Returns:
A matching EManagedConnection instance


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