Package com.ibm.jakarta.connector2.cics
Class ECIConnection
java.lang.Object
com.ibm.jakarta.connector2.cics.CICSConnection
com.ibm.jakarta.connector2.cics.ECIConnection
- All Implemented Interfaces:
jakarta.resource.cci.Connection
The ECIConnection class represents a connection to CICS. Through this
ECIConnection the user creates an ECIInteration to communicate with a
CICS server.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Closes the ECI connection, disabling it from further use.jakarta.resource.cci.Interaction
Get a new ECIInteraction object with which to flow requests to CICS.jakarta.resource.cci.LocalTransaction
Return a CCI local transaction controller object for an application to control the transaction state of the ECIConnection.toString()
Returns a string representation of this instance for use in tracing.Methods inherited from class com.ibm.jakarta.connector2.cics.CICSConnection
getMetaData, getResultSetInfo
-
Field Details
-
CLASS_VERSION
- See Also:
-
-
Method Details
-
close
public void close() throws jakarta.resource.ResourceExceptionCloses the ECI connection, disabling it from further use.- Specified by:
close
in interfacejakarta.resource.cci.Connection
- Overrides:
close
in classCICSConnection
- Throws:
jakarta.resource.ResourceException
- If an error occurs.
-
createInteraction
public jakarta.resource.cci.Interaction createInteraction() throws jakarta.resource.ResourceExceptionGet a new ECIInteraction object with which to flow requests to CICS.- Returns:
- Interaction The new ECIInteraction object to be used.
- Throws:
jakarta.resource.ResourceException
- Thrown if the connection is closed.
-
getLocalTransaction
public jakarta.resource.cci.LocalTransaction getLocalTransaction() throws jakarta.resource.ResourceExceptionReturn a CCI local transaction controller object for an application to control the transaction state of the ECIConnection.- Returns:
- The CCILocalTransaction object.
- Throws:
jakarta.resource.ResourceException
- Thrown if the connection is closed.
-
toString
Returns a string representation of this instance for use in tracing.
-