Class CICSConnectionFactory

java.lang.Object
com.ibm.jakarta.connector2.cics.CICSConnectionFactory
All Implemented Interfaces:
jakarta.resource.cci.ConnectionFactory, jakarta.resource.Referenceable, Serializable, Referenceable
Direct Known Subclasses:
ECIConnectionFactory, EPIConnectionFactory

public abstract class CICSConnectionFactory extends Object implements jakarta.resource.cci.ConnectionFactory
This abstract class provides the framework for CICS connection factories.

It provides support for the logWriter, timeout, JNDI reference and metadata properties. It also manages the managed connection factory and connection manager references.

  • Field Details

  • Method Details

    • setReference

      public void setReference(Reference newRef)
      Sets the reference instance. This method is called by the deployment code to set the reference that can be later returned by the getReference method.
      Specified by:
      setReference in interface jakarta.resource.Referenceable
      Parameters:
      newRef - A reference object.
    • getReference

      public Reference getReference() throws NamingException
      Returns the reference object associated with this object.
      Specified by:
      getReference in interface Referenceable
      Returns:
      The associated reference object.
      Throws:
      NamingException
    • getRecordFactory

      public jakarta.resource.cci.RecordFactory getRecordFactory() throws jakarta.resource.ResourceException
      This will throw a NotSupportedException if invoked.
      Specified by:
      getRecordFactory in interface jakarta.resource.cci.ConnectionFactory
      Throws:
      jakarta.resource.ResourceException - if invoked.
    • getConnection

      public jakarta.resource.cci.Connection getConnection() throws jakarta.resource.ResourceException
      Returns a connection. You cannot provide any extra connection information here. You can only do this through any extra methods on the managed connection factory.
      Specified by:
      getConnection in interface jakarta.resource.cci.ConnectionFactory
      Returns:
      The new connection.
      Throws:
      jakarta.resource.ResourceException - if an invalid connection is returned.
    • toString

      public String toString()
      Return a string representation of this instance. It is made up of the super.toString() and the properties held in this object.
      Overrides:
      toString in class Object
      Returns:
      A string representation of this instance.