Package com.ibm.jakarta.connector2.cics
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 Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionjakarta.resource.cci.Connection
Returns a connection.jakarta.resource.cci.RecordFactory
This will throw a NotSupportedException if invoked.Returns the reference object associated with this object.void
setReference
(Reference newRef) Sets the reference instance.toString()
Return a string representation of this instance.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface jakarta.resource.cci.ConnectionFactory
getConnection, getMetaData
-
Field Details
-
CLASS_VERSION
- See Also:
-
-
Method Details
-
setReference
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 interfacejakarta.resource.Referenceable
- Parameters:
newRef
- A reference object.
-
getReference
Returns the reference object associated with this object.- Specified by:
getReference
in interfaceReferenceable
- Returns:
- The associated reference object.
- Throws:
NamingException
-
getRecordFactory
public jakarta.resource.cci.RecordFactory getRecordFactory() throws jakarta.resource.ResourceExceptionThis will throw a NotSupportedException if invoked.- Specified by:
getRecordFactory
in interfacejakarta.resource.cci.ConnectionFactory
- Throws:
jakarta.resource.ResourceException
- if invoked.
-
getConnection
public jakarta.resource.cci.Connection getConnection() throws jakarta.resource.ResourceExceptionReturns 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 interfacejakarta.resource.cci.ConnectionFactory
- Returns:
- The new connection.
- Throws:
jakarta.resource.ResourceException
- if an invalid connection is returned.
-
toString
Return a string representation of this instance. It is made up of the super.toString() and the properties held in this object.
-