com.ibm.connector2.cics
Class CICSConnection
- java.lang.Object
-
- com.ibm.connector2.cics.CICSConnection
-
- All Implemented Interfaces:
- javax.resource.cci.Connection
- Direct Known Subclasses:
- ECIConnection
public abstract class CICSConnection extends java.lang.Object implements javax.resource.cci.ConnectionThis abstract class provides the general CICS connection class. It provides support for the connection metadata and the log writer.
-
-
Method Summary
Methods Modifier and Type Method and Description voidclose()Closes this connection if it is not already closed.javax.resource.cci.ConnectionMetaDatagetMetaData()Returns the metadata for this connection.javax.resource.cci.ResultSetInfogetResultSetInfo()Returns the resultSetInfo object.
-
-
-
Method Detail
-
getResultSetInfo
public javax.resource.cci.ResultSetInfo getResultSetInfo() throws javax.resource.ResourceExceptionReturns the resultSetInfo object. This is not supported by CICS resource adapters, so a NotSupportedException is always thrown.- Specified by:
getResultSetInfoin interfacejavax.resource.cci.Connection- Returns:
- ResultSetInfo.
- Throws:
javax.resource.NotSupportedException- If feature not supported.javax.resource.ResourceException
-
getMetaData
public javax.resource.cci.ConnectionMetaData getMetaData() throws javax.resource.ResourceExceptionReturns the metadata for this connection.- Specified by:
getMetaDatain interfacejavax.resource.cci.Connection- Returns:
- ConnectionMetaData.
- Throws:
javax.resource.ResourceException
-
close
public void close() throws javax.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:
closein interfacejavax.resource.cci.Connection- Throws:
javax.resource.ResourceException- If the connection is already closed.
-
-