Package com.ibm.jakarta.connector2.cics
Class CICSConnection
java.lang.Object
com.ibm.jakarta.connector2.cics.CICSConnection
- All Implemented Interfaces:
jakarta.resource.cci.Connection
- Direct Known Subclasses:
ECIConnection
,EPIConnection
This abstract class provides the general CICS connection class. It provides
support for the connection metadata and the log writer.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Closes this connection if it is not already closed.jakarta.resource.cci.ConnectionMetaData
Returns the metadata for this connection.jakarta.resource.cci.ResultSetInfo
Returns the resultSetInfo object.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface jakarta.resource.cci.Connection
createInteraction, getLocalTransaction
-
Field Details
-
CLASS_VERSION
- See Also:
-
-
Method Details
-
getResultSetInfo
public jakarta.resource.cci.ResultSetInfo getResultSetInfo() throws jakarta.resource.ResourceExceptionReturns the resultSetInfo object. This is not supported by CICS resource adapters, so a NotSupportedException is always thrown.- Specified by:
getResultSetInfo
in interfacejakarta.resource.cci.Connection
- Returns:
- ResultSetInfo.
- Throws:
jakarta.resource.NotSupportedException
- If feature not supported.jakarta.resource.ResourceException
-
getMetaData
public jakarta.resource.cci.ConnectionMetaData getMetaData() throws jakarta.resource.ResourceExceptionReturns the metadata for this connection.- Specified by:
getMetaData
in interfacejakarta.resource.cci.Connection
- Returns:
- ConnectionMetaData.
- Throws:
jakarta.resource.ResourceException
-
close
public void close() throws jakarta.resource.ResourceExceptionCloses this connection if it is not already closed. Any subclass that overrides this method must call the method on the superclass. The managed connection is asked to remove this connection and an event is fired to say the connection is closed. The connection is flagged as being in the closed state and cannot be used any more.Attempting to close an already closed connection results in a ResourceException being thrown.
Any method providing a subclass close now cannot throw explicit exceptions. This facility can be provided under a different method name and the subclass will inherit and invoke this method rather than super().close();
- Specified by:
close
in interfacejakarta.resource.cci.Connection
- Throws:
jakarta.resource.ResourceException
- If the connection is already closed.
-