CICS® Transaction Gateway Programming Reference v1.1.0.0

com.ibm.connector2.cics
Class CCILocalTransaction

java.lang.Object
  extended by com.ibm.connector2.cics.CCILocalTransaction
All Implemented Interfaces:
javax.resource.cci.LocalTransaction

public final class CCILocalTransaction
extends java.lang.Object
implements javax.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.


Method Summary
 void begin()
          Begins a new Local Transaction for the related Connection.
 void commit()
          Commits the current Local Transaction on the CICS Server.
 void rollback()
          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
 

Method Detail

begin

public void begin()
           throws javax.resource.ResourceException
Begins a new Local Transaction for the related Connection.

Specified by:
begin in interface javax.resource.cci.LocalTransaction
Throws:
javax.resource.ResourceException - Thrown if the begin fails.

commit

public void commit()
            throws javax.resource.ResourceException
Commits the current Local Transaction on the CICS Server.

Specified by:
commit in interface javax.resource.cci.LocalTransaction
Throws:
javax.resource.ResourceException - Thrown if the commit fails.

rollback

public void rollback()
              throws javax.resource.ResourceException
Reverts the state of the CICS Server to that before begin() was called.

Specified by:
rollback in interface javax.resource.cci.LocalTransaction
Throws:
javax.resource.ResourceException - Thrown if the backout fails.

©Copyright IBM Corp. 1994, 2014
Legal