Class MFECIConnectionFactory

Provides an interface for getting connection to a Cics Server instance.
java.lang.Object

extended bycom.microfocus.cics.connector.cci.MFECIConnectionFactory

All Implemented Interfaces

Serializable, javax.resource.Referenceable, javax.resource.cci.ConnectionFactory

Class Specifications

public class MFECIConnectionFactory

extends Object

implements javax.resource.cci.ConnectionFactory, Serializable, javax.resource.Referenceable

See Also:

Serialized Form

Constructor Summary

MFECIConnectionFactory(javax.resource.spi.ManagedConnectionFactory mcf)
Construct a connection factory.
MFECIConnectionFactory(javax.resource.spi.ManagedConnectionFactory mcf, javax.resource.spi.ManagedConnectionFactory javax.resource.spi.ConnectionManager cm)
Construct a connection factory.

Methods

Method Summary
javax.resource.cci.Connection getConnection()

Get an MFECI Connection instance.

javax.resource.cci.Connection getConnection(ConnectionSpec properties)

Get an MFECI Connection instance.

javax.resource.cci.ResourceAdapterMetaData getMetaData()

Get an instance of Resource Adapter Meta Data.

javax.resource.cci.RecordFactory getRecordFactory()

Get an MFECI Record factory.

Reference getReference()

Get a reference for the Connection Factory.

void setReference(Reference reference)

Set a reference for the Connection Factory.

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

MFECIConnectionFactory
public MFECIConnectionFactory(javax.resource.spi.ManagedConnectionFactory mcf)

Construct a connection factory.

Parameters:
mcf The Managed Connection factory instance.
MFECIConnectionFactory
public MFECIConnectionFactory(javax.resource.spi.ManagedConnectionFactory mcf,
                              javax.resource.spi.ManagedConnectionFactory javax.resource.spi.ConnectionManager cm)

Construct a connection factory.

Parameters:
mcf The Managed Connection factory instance.
cm The connection Manager. This is implemented by the EJB container.

Method Detail

getConnection
public javax.resource.cciConnection getConnection()
                         throws javax.resource.ResourceException

Get an MFECI Connection instance.

Specified by:
getConnection in interface javax.resource.cci.ConnectionFactory
Returns:
The MFECIConnection instance.
Throws:
javax.resource.ResourceException
getConnection
public Connection getConnection(ConnectionSpec properties)
                         throws javax.resource.ResourceException

Get an MFECI Connection instance.

Specified by:
getConnection in interface javax.resource.cci.ConnectionFactory
Parameters:
properties The Connection Spec properties.
Returns:
The MFECIConnection instance.
Throws:
javax.resource.ResourceException
getMetaData
public javax.resource.cci.ResourceAdapterMetaData getMetaData()
                                    throws javax.resource.ResourceException

Get an instance of Resource Adapter Meta Data.

Specified by:
getMetadata in interface javax.resource.cci.ConnectionFactory
Returns:
MFECIResourceAdapterMetaData
Throws:
java.resource.ResourceException
See Also:
MFECIResourceAdapterMetaData
getRecordFactory
public javax.resource.cci.RecordFactory getRecordFactory()
                               throws java.resource.ResourceException

Get an MFECI Record factory.

Specified by:
getRecordFactory in interface javax.resource.cci.ConnectionFactory
Returns:
MFECIRecordFactory
Throws:
java.resource.ResourceException
See Also:
MFECIRecordFactory
setReference
public void setReference(Reference reference)
                  throws ResourceException

Set a reference for the Connection Factory.

Parameters:
reference
getReference
public Reference getReference()

Get a reference for the Connection Factory.

Specified by:
getReference in interface Referenceable