public class RegistryManagedRuntime.TransactionManagerRegistryFacade extends Object implements TransactionManager, Transaction
TransactionManager and Transaction facade
that delegates the appropriate methods to the internally-held
TransactionSynchronizationRegistry. Since the
registry is not able to start or end transactions, all transaction
control methods will just throw a SystemException.| Constructor and Description |
|---|
TransactionManagerRegistryFacade(TransactionSynchronizationRegistry registry) |
| Modifier and Type | Method and Description |
|---|---|
void |
begin() |
void |
commit() |
boolean |
delistResource(XAResource xaRes,
int flag) |
boolean |
enlistResource(XAResource xaRes) |
int |
getStatus() |
Transaction |
getTransaction() |
Object |
getTransactionKey() |
void |
registerSynchronization(Synchronization sync) |
void |
resume(Transaction tobj) |
void |
rollback() |
void |
setRollbackOnly() |
void |
setTransactionTimeout(int seconds) |
Transaction |
suspend() |
public TransactionManagerRegistryFacade(TransactionSynchronizationRegistry registry)
public Transaction getTransaction() throws SystemException
getTransaction in interface TransactionManagerSystemExceptionpublic void registerSynchronization(Synchronization sync) throws RollbackException, IllegalStateException, SystemException
registerSynchronization in interface TransactionRollbackExceptionIllegalStateExceptionSystemExceptionpublic void setRollbackOnly()
throws IllegalStateException,
SystemException
setRollbackOnly in interface TransactionsetRollbackOnly in interface TransactionManagerIllegalStateExceptionSystemExceptionpublic int getStatus()
throws SystemException
getStatus in interface TransactiongetStatus in interface TransactionManagerSystemExceptionpublic Object getTransactionKey()
public void begin()
throws NotSupportedException,
SystemException
begin in interface TransactionManagerNotSupportedExceptionSystemExceptionpublic void commit()
throws RollbackException,
HeuristicMixedException,
SystemException,
HeuristicRollbackException,
SecurityException,
IllegalStateException
commit in interface Transactioncommit in interface TransactionManagerRollbackExceptionHeuristicMixedExceptionSystemExceptionHeuristicRollbackExceptionSecurityExceptionIllegalStateExceptionpublic void resume(Transaction tobj) throws InvalidTransactionException, IllegalStateException, SystemException
resume in interface TransactionManagerInvalidTransactionExceptionIllegalStateExceptionSystemExceptionpublic void rollback()
throws IllegalStateException,
SecurityException,
SystemException
rollback in interface Transactionrollback in interface TransactionManagerIllegalStateExceptionSecurityExceptionSystemExceptionpublic void setTransactionTimeout(int seconds)
throws SystemException
setTransactionTimeout in interface TransactionManagerSystemExceptionpublic Transaction suspend() throws SystemException
suspend in interface TransactionManagerSystemExceptionpublic boolean delistResource(XAResource xaRes, int flag) throws IllegalStateException, SystemException
delistResource in interface TransactionIllegalStateExceptionSystemExceptionpublic boolean enlistResource(XAResource xaRes) throws RollbackException, IllegalStateException, SystemException
enlistResource in interface TransactionRollbackExceptionIllegalStateExceptionSystemExceptionCopyright © 2006–2022 Apache Software Foundation. All rights reserved.