Package com.ibm.jakarta.connector2.cics
Class CCILocalTransaction
java.lang.Object
com.ibm.jakarta.connector2.cics.CCILocalTransaction
- All Implemented Interfaces:
jakarta.resource.cci.LocalTransaction
public final class CCILocalTransaction
extends Object
implements jakarta.resource.cci.LocalTransaction
A CCILocalTransaction object is used to control the Transaction state of the ECI Connector. The objects methods can only be used however when no other transactions are in progress and then only if AutoCommit is not set to true on its Connection.
Access to the CCILocalTransaction object is provided exclusively through the ECIConnection.getLocalTransaction() method.
-
Field Summary
Fields -
Method Summary
-
Field Details
-
CLASS_VERSION
- See Also:
-
-
Method Details
-
begin
public void begin() throws jakarta.resource.ResourceExceptionBegins a new Local Transaction for the related Connection.- Specified by:
begin
in interfacejakarta.resource.cci.LocalTransaction
- Throws:
jakarta.resource.ResourceException
- Thrown if the begin fails.
-
commit
public void commit() throws jakarta.resource.ResourceExceptionCommits the current Local Transaction on the CICS Server.- Specified by:
commit
in interfacejakarta.resource.cci.LocalTransaction
- Throws:
jakarta.resource.ResourceException
- Thrown if the commit fails.
-
rollback
public void rollback() throws jakarta.resource.ResourceExceptionReverts the state of the CICS Server to that before begin() was called.- Specified by:
rollback
in interfacejakarta.resource.cci.LocalTransaction
- Throws:
jakarta.resource.ResourceException
- Thrown if the backout fails.
-