com.infoengine.connector
Class IeCCILocalTransaction

java.lang.Object
  extended bycom.infoengine.connector.IeCCILocalTransaction
All Implemented Interfaces:
javax.resource.cci.LocalTransaction

public class IeCCILocalTransaction
extends Object
implements javax.resource.cci.LocalTransaction

CCI view of a Windchill transaction.
this object can by used by an application to manage transactions.

Example:

LocalTransaction trans = null;
Connection cciCx = null;
try {
  cciCx = ... // get a cci connection to Info*Engine
  LocalTransaction trans = cciCx.getLocalTransaction();
  trans.begin(); // start a transaction
  ... // use cciCx to interact with Windchill
  trans.commit();
} catch ( Exception e ) {
  if ( trans != null ) trans.rollback();
} finally {
  if ( cciCx != null ) cciCx.close();
}


Field Summary
(package private)  IeConnection cx
           
(package private)  Log log
           
(package private)  IeManagedConnection managedCx
           
 
Constructor Summary
(package private) IeCCILocalTransaction(IeConnection cx, Log l)
          create a new local transaction object
 
Method Summary
 void begin()
          begin a transaction
 void commit()
          commit a transaction
 void rollback()
          rollback a transaction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cx

IeConnection cx

managedCx

IeManagedConnection managedCx

log

Log log
Constructor Detail

IeCCILocalTransaction

IeCCILocalTransaction(IeConnection cx,
                      Log l)
create a new local transaction object

Parameters:
cx - IeConnection object this transaction is associated with
l - Log
Method Detail

begin

public void begin()
           throws javax.resource.ResourceException
begin a transaction

Specified by:
begin in interface javax.resource.cci.LocalTransaction
Throws:
javax.resource.ResourceException

commit

public void commit()
            throws javax.resource.ResourceException
commit a transaction

Specified by:
commit in interface javax.resource.cci.LocalTransaction
Throws:
javax.resource.ResourceException

rollback

public void rollback()
              throws javax.resource.ResourceException
rollback a transaction

Specified by:
rollback in interface javax.resource.cci.LocalTransaction
Throws:
javax.resource.ResourceException