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
    Modifier and Type
    Field
    Description
    static final String
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Begins a new Local Transaction for the related Connection.
    void
    Commits the current Local Transaction on the CICS Server.
    void
    Reverts the state of the CICS Server to that before begin() was called.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Method Details

    • begin

      public void begin() throws jakarta.resource.ResourceException
      Begins a new Local Transaction for the related Connection.
      Specified by:
      begin in interface jakarta.resource.cci.LocalTransaction
      Throws:
      jakarta.resource.ResourceException - Thrown if the begin fails.
    • commit

      public void commit() throws jakarta.resource.ResourceException
      Commits the current Local Transaction on the CICS Server.
      Specified by:
      commit in interface jakarta.resource.cci.LocalTransaction
      Throws:
      jakarta.resource.ResourceException - Thrown if the commit fails.
    • rollback

      public void rollback() throws jakarta.resource.ResourceException
      Reverts the state of the CICS Server to that before begin() was called.
      Specified by:
      rollback in interface jakarta.resource.cci.LocalTransaction
      Throws:
      jakarta.resource.ResourceException - Thrown if the backout fails.