public class TransactionWrapper extends Object implements Transaction
| Constructor and Description |
|---|
TransactionWrapper(Transaction transaction,
TransactionManagerWrapper transactionManagerWrapper) |
| Modifier and Type | Method and Description |
|---|---|
void |
commit() |
boolean |
delistResource(XAResource xaResource,
int i) |
boolean |
enlistResource(XAResource xaResource) |
int |
getStatus() |
void |
registerSynchronization(Synchronization synchronization) |
void |
rollback() |
void |
setRollbackOnly() |
public TransactionWrapper(Transaction transaction, TransactionManagerWrapper transactionManagerWrapper)
public void commit()
throws RollbackException,
HeuristicMixedException,
HeuristicRollbackException,
SecurityException,
IllegalStateException,
SystemException
commit in interface TransactionRollbackExceptionHeuristicMixedExceptionHeuristicRollbackExceptionSecurityExceptionIllegalStateExceptionSystemExceptionpublic boolean delistResource(XAResource xaResource, int i) throws IllegalStateException, SystemException
delistResource in interface TransactionIllegalStateExceptionSystemExceptionpublic boolean enlistResource(XAResource xaResource) throws RollbackException, IllegalStateException, SystemException
enlistResource in interface TransactionRollbackExceptionIllegalStateExceptionSystemExceptionpublic int getStatus()
throws SystemException
getStatus in interface TransactionSystemExceptionpublic void registerSynchronization(Synchronization synchronization) throws RollbackException, IllegalStateException, SystemException
registerSynchronization in interface TransactionRollbackExceptionIllegalStateExceptionSystemExceptionpublic void rollback()
throws IllegalStateException,
SystemException
rollback in interface TransactionIllegalStateExceptionSystemExceptionpublic void setRollbackOnly()
throws IllegalStateException,
SystemException
setRollbackOnly in interface TransactionIllegalStateExceptionSystemExceptionCopyright © 2006–2022 MuleSoft, Inc.. All rights reserved.