public class SimpleTransactionManager extends Object implements TransactionManager
| Modifier and Type | Method and Description |
|---|---|
void |
begin() |
void |
commit() |
static SimpleTransactionManager |
getInstance() |
int |
getStatus() |
SimpleTransaction |
getTransaction() |
void |
resume(Transaction tx) |
void |
rollback() |
void |
setRollbackOnly() |
void |
setTransactionTimeout(int timeout) |
SimpleTransaction |
suspend() |
public static SimpleTransactionManager getInstance()
public void begin()
throws NotSupportedException,
SystemException
begin in interface TransactionManagerNotSupportedExceptionSystemExceptionpublic void commit()
throws RollbackException,
HeuristicMixedException,
HeuristicRollbackException,
SecurityException,
IllegalStateException,
SystemException
commit in interface TransactionManagerRollbackExceptionHeuristicMixedExceptionHeuristicRollbackExceptionSecurityExceptionIllegalStateExceptionSystemExceptionpublic int getStatus()
throws SystemException
getStatus in interface TransactionManagerSystemExceptionpublic SimpleTransaction getTransaction() throws SystemException
getTransaction in interface TransactionManagerSystemExceptionpublic void resume(Transaction tx) throws InvalidTransactionException, IllegalStateException, SystemException
resume in interface TransactionManagerInvalidTransactionExceptionIllegalStateExceptionSystemExceptionpublic void rollback()
throws IllegalStateException,
SecurityException,
SystemException
rollback in interface TransactionManagerIllegalStateExceptionSecurityExceptionSystemExceptionpublic void setRollbackOnly()
throws IllegalStateException,
SystemException
setRollbackOnly in interface TransactionManagerIllegalStateExceptionSystemExceptionpublic void setTransactionTimeout(int timeout)
throws SystemException
setTransactionTimeout in interface TransactionManagerSystemExceptionpublic SimpleTransaction suspend() throws SystemException
suspend in interface TransactionManagerSystemExceptionCopyright © 2005–2018 Alfresco Software. All rights reserved.