Package com.ibm.jakarta.connector2.cics
Class SPILocalTransaction
java.lang.Object
com.ibm.jakarta.connector2.cics.SPILocalTransaction
- All Implemented Interfaces:
jakarta.resource.spi.LocalTransaction
public final class SPILocalTransaction
extends Object
implements jakarta.resource.spi.LocalTransaction
An SPILocalTransaction object is used by a J2EE environment to control the Transaction state of the ECI Connector. The object 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 ECIManagedConnection.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 ECIManagedConnection- Specified by:
begin
in interfacejakarta.resource.spi.LocalTransaction
- Throws:
jakarta.resource.ResourceException
- Thrown if a Local Transaction is already started.
-
commit
public void commit() throws jakarta.resource.ResourceExceptionCommits the current Local Transaction on the CICS Server.- Specified by:
commit
in interfacejakarta.resource.spi.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.spi.LocalTransaction
- Throws:
jakarta.resource.ResourceException
- Thrown if the backout fails.
-