@Singleton public class CDIDelegatingTransactionManager extends Object implements TransactionManager, Serializable
TransactionScoped.| Modifier and Type | Field and Description |
|---|---|
(package private) javax.enterprise.event.Event<Object> |
transactionScopeBeforeDestroyed
|
(package private) javax.enterprise.event.Event<Object> |
transactionScopeDestroyed
|
(package private) javax.enterprise.event.Event<Transaction> |
transactionScopeInitialized
|
| Constructor and Description |
|---|
CDIDelegatingTransactionManager()
Delegating transaction manager call to com.arjuna.ats.jta.
TransactionManager |
| Modifier and Type | Method and Description |
|---|---|
void |
begin()
Overrides
TransactionManager.begin() to
additionally fire an Object
representing the initialization
of the transaction scope. |
void |
commit()
Overrides
TransactionManager.commit() to
additionally fire an Object
representing the before destruction and
the destruction
of the transaction scope. |
int |
getStatus() |
Transaction |
getTransaction() |
int |
getTransactionTimeout()
Returns transaction timeout in seconds.
|
void |
resume(Transaction transaction) |
void |
rollback()
Overrides
TransactionManager.rollback() to
additionally fire an Object
representing the before destruction and
the destruction
of the transaction scope. |
void |
setRollbackOnly() |
void |
setTransactionTimeout(int seconds) |
Transaction |
suspend() |
@Inject @Initialized(value=javax.transaction.TransactionScoped.class) javax.enterprise.event.Event<Transaction> transactionScopeInitialized
@Inject @BeforeDestroyed(value=javax.transaction.TransactionScoped.class) javax.enterprise.event.Event<Object> transactionScopeBeforeDestroyed
@Inject @Destroyed(value=javax.transaction.TransactionScoped.class) javax.enterprise.event.Event<Object> transactionScopeDestroyed
public CDIDelegatingTransactionManager()
TransactionManagerpublic void begin()
throws NotSupportedException,
SystemException
TransactionManager.begin() to
additionally fire an Object
representing the initialization
of the transaction scope.begin in interface TransactionManagerNotSupportedExceptionSystemExceptionTransactionManager.begin()public void commit()
throws RollbackException,
HeuristicMixedException,
HeuristicRollbackException,
SecurityException,
IllegalStateException,
SystemException
TransactionManager.commit() to
additionally fire an Object
representing the before destruction and
the destruction
of the transaction scope.commit in interface TransactionManagerRollbackExceptionHeuristicMixedExceptionHeuristicRollbackExceptionSecurityExceptionIllegalStateExceptionSystemExceptionTransactionManager.commit()public void rollback()
throws IllegalStateException,
SecurityException,
SystemException
TransactionManager.rollback() to
additionally fire an Object
representing the before destruction and
the destruction
of the transaction scope.rollback in interface TransactionManagerIllegalStateExceptionSecurityExceptionSystemExceptionTransactionManager.rollback()public int getStatus()
throws SystemException
getStatus in interface TransactionManagerSystemExceptionpublic Transaction getTransaction() throws SystemException
getTransaction in interface TransactionManagerSystemExceptionpublic void resume(Transaction transaction) throws InvalidTransactionException, IllegalStateException, SystemException
resume in interface TransactionManagerInvalidTransactionExceptionIllegalStateExceptionSystemExceptionpublic void setRollbackOnly()
throws IllegalStateException,
SystemException
setRollbackOnly in interface TransactionManagerIllegalStateExceptionSystemExceptionpublic void setTransactionTimeout(int seconds)
throws SystemException
setTransactionTimeout in interface TransactionManagerSystemExceptionpublic int getTransactionTimeout()
throws SystemException
SystemException - on an undefined errorpublic Transaction suspend() throws SystemException
suspend in interface TransactionManagerSystemExceptionCopyright © 2021 JBoss by Red Hat. All rights reserved.