public class TransactionImpl extends Object implements TransactionInternal
| Constructor and Description |
|---|
TransactionImpl(org.omg.CosTransactions.Control control,
GlobalTID gtid) |
| Modifier and Type | Method and Description |
|---|---|
void |
commit()
Complete the transaction represented by this Transaction object
|
boolean |
delistResource(XAResource res,
int flags) |
boolean |
enlistResource(XAResource res)
enlist a resource with the current transaction
If a transaction is marked as rollback, enlistment will
succeed if the resource has been enlisted before.
|
boolean |
equals(Object object) |
long |
getStartTime() |
int |
getStatus() |
String |
getTransactionId() |
int |
hashCode() |
void |
registerInterposedSynchronization(Synchronization sync)
Register a Synchronization instance with special ordering semantics.
|
void |
registerSynchronization(Synchronization sync) |
void |
rollback()
Rollback the transaction represented by this Transaction object.
|
void |
setRollbackOnly() |
public TransactionImpl(org.omg.CosTransactions.Control control,
GlobalTID gtid)
throws SystemException
SystemExceptionpublic void commit()
throws HeuristicMixedException,
RollbackException,
HeuristicRollbackException,
IllegalStateException,
SecurityException,
SystemException
commit in interface TransactionHeuristicMixedExceptionRollbackExceptionHeuristicRollbackExceptionIllegalStateExceptionSecurityExceptionSystemExceptionpublic void rollback()
throws IllegalStateException,
SystemException
rollback in interface TransactionIllegalStateExceptionSystemExceptionpublic boolean enlistResource(XAResource res) throws RollbackException, IllegalStateException, SystemException
enlistResource in interface TransactionRollbackExceptionIllegalStateExceptionSystemExceptionpublic boolean delistResource(XAResource res, int flags) throws IllegalStateException, SystemException
delistResource in interface TransactionIllegalStateExceptionSystemExceptionpublic int getStatus()
throws SystemException
getStatus in interface TransactionSystemExceptionpublic void registerSynchronization(Synchronization sync) throws RollbackException, IllegalStateException, SystemException
registerSynchronization in interface TransactionRollbackExceptionIllegalStateExceptionSystemExceptionpublic void registerInterposedSynchronization(Synchronization sync) throws RollbackException, IllegalStateException, SystemException
TransactionInternalregisterInterposedSynchronization in interface TransactionInternalsync - - the Synchronization instance.RollbackExceptionIllegalStateExceptionSystemExceptionTransactionSynchronizationRegistry.registerInterposedSynchronization(Synchronization)public void setRollbackOnly()
throws IllegalStateException,
SystemException
setRollbackOnly in interface TransactionIllegalStateExceptionSystemExceptionpublic String getTransactionId()
public long getStartTime()
Copyright © 2019. All rights reserved.