com.bankframe.examples.txnhandler.connector.coboltest
Class CobolTestManagedConnectionFactory

java.lang.Object
  extended bycom.bankframe.examples.txnhandler.connector.coboltest.CobolTestManagedConnectionFactory
All Implemented Interfaces:
EManagedConnectionFactory, java.io.Serializable

public class CobolTestManagedConnectionFactory
extends java.lang.Object
implements EManagedConnectionFactory

This class creates TestCustomerManagedConnection instances

See Also:
Serialized Form

Constructor Summary
CobolTestManagedConnectionFactory()
          Default Constructor
 
Method Summary
 java.lang.Object createConnectionFactory()
          This method creates a connection factorty
 java.lang.Object createConnectionFactory(EConnectionManager cm)
          This method creates a connection factory
 EManagedConnection createManagedConnection(java.lang.String properties)
          This method creates a managed connection
 boolean equals(java.lang.Object obj)
          This method returns true iff they have the same hostname, port, channel name and offline mode.
 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

CobolTestManagedConnectionFactory

public CobolTestManagedConnectionFactory()
Default Constructor

Method Detail

createConnectionFactory

public java.lang.Object createConnectionFactory()
This method creates a connection factorty

Specified by:
createConnectionFactory in interface EManagedConnectionFactory
Returns:
Connection Factory instance.

createConnectionFactory

public java.lang.Object createConnectionFactory(EConnectionManager cm)
This method creates a connection factory

Specified by:
createConnectionFactory in interface EManagedConnectionFactory
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 managed connection

Specified by:
createManagedConnection in interface EManagedConnectionFactory
Parameters:
properties - additional connector specific connection request information (as a semi-colon delimited String)
Returns:
EManagedConnection instance

equals

public boolean equals(java.lang.Object obj)
This method returns true iff they have the same hostname, port, channel name and offline mode.

Specified by:
equals in interface EManagedConnectionFactory

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 - java.util.Set
properties - java.lang.String
Returns:
com.bankframe.ei.txnhandler.connector.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, 2007, Oracle. All rights reserved.