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

    Modifier and Type
    Method
    Description
    void
    Begins a new Local Transaction for the related ECIManagedConnection
    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 ECIManagedConnection
      Specified by:
      begin in interface jakarta.resource.spi.LocalTransaction
      Throws:
      jakarta.resource.ResourceException - Thrown if a Local Transaction is already started.
    • commit

      public void commit() throws jakarta.resource.ResourceException
      Commits the current Local Transaction on the CICS Server.
      Specified by:
      commit in interface jakarta.resource.spi.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.spi.LocalTransaction
      Throws:
      jakarta.resource.ResourceException - Thrown if the backout fails.