public final class ContextTransactionManager extends Object implements TransactionManager
| Modifier and Type | Method and Description |
|---|---|
void |
begin() |
void |
commit() |
static ContextTransactionManager |
getInstance()
Get the transaction manager instance.
|
int |
getStatus() |
AbstractTransaction |
getTransaction() |
void |
resume(Transaction transaction) |
void |
rollback() |
void |
setRollbackOnly() |
void |
setTransactionTimeout(int timeout) |
AbstractTransaction |
suspend() |
public void begin()
throws NotSupportedException,
SystemException
begin in interface TransactionManagerNotSupportedExceptionSystemExceptionpublic void commit()
throws RollbackException,
HeuristicMixedException,
HeuristicRollbackException,
SecurityException,
IllegalStateException,
SystemException
commit in interface TransactionManagerRollbackExceptionHeuristicMixedExceptionHeuristicRollbackExceptionSecurityExceptionIllegalStateExceptionSystemExceptionpublic void rollback()
throws IllegalStateException,
SecurityException,
SystemException
rollback in interface TransactionManagerIllegalStateExceptionSecurityExceptionSystemExceptionpublic void setRollbackOnly()
throws IllegalStateException,
SystemException
setRollbackOnly in interface TransactionManagerIllegalStateExceptionSystemExceptionpublic int getStatus()
throws SystemException
getStatus in interface TransactionManagerSystemExceptionpublic AbstractTransaction getTransaction()
getTransaction in interface TransactionManagerpublic void setTransactionTimeout(int timeout)
setTransactionTimeout in interface TransactionManagerpublic AbstractTransaction suspend() throws SystemException
suspend in interface TransactionManagerSystemExceptionpublic void resume(Transaction transaction) throws InvalidTransactionException, IllegalStateException, SystemException
resume in interface TransactionManagerInvalidTransactionExceptionIllegalStateExceptionSystemExceptionpublic static ContextTransactionManager getInstance()
null)Copyright © 2017 JBoss by Red Hat. All rights reserved.