|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.infoengine.connector.IeCCILocalTransaction
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 |
IeConnection cx
IeManagedConnection managedCx
Log log
Constructor Detail |
IeCCILocalTransaction(IeConnection cx, Log l)
cx
- IeConnection object this transaction is associated withl
- LogMethod Detail |
public void begin() throws javax.resource.ResourceException
begin
in interface javax.resource.cci.LocalTransaction
javax.resource.ResourceException
public void commit() throws javax.resource.ResourceException
commit
in interface javax.resource.cci.LocalTransaction
javax.resource.ResourceException
public void rollback() throws javax.resource.ResourceException
rollback
in interface javax.resource.cci.LocalTransaction
javax.resource.ResourceException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |