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 TransactionManager
NotSupportedException
SystemException
public void commit() throws RollbackException, HeuristicMixedException, HeuristicRollbackException, SecurityException, IllegalStateException, SystemException
commit
in interface TransactionManager
RollbackException
HeuristicMixedException
HeuristicRollbackException
SecurityException
IllegalStateException
SystemException
public int getStatus() throws SystemException
getStatus
in interface TransactionManager
SystemException
public SimpleTransaction getTransaction() throws SystemException
getTransaction
in interface TransactionManager
SystemException
public void resume(Transaction tx) throws InvalidTransactionException, IllegalStateException, SystemException
resume
in interface TransactionManager
InvalidTransactionException
IllegalStateException
SystemException
public void rollback() throws IllegalStateException, SecurityException, SystemException
rollback
in interface TransactionManager
IllegalStateException
SecurityException
SystemException
public void setRollbackOnly() throws IllegalStateException, SystemException
setRollbackOnly
in interface TransactionManager
IllegalStateException
SystemException
public void setTransactionTimeout(int timeout) throws SystemException
setTransactionTimeout
in interface TransactionManager
SystemException
public SimpleTransaction suspend() throws SystemException
suspend
in interface TransactionManager
SystemException
Copyright © 2005–2017 Alfresco Software. All rights reserved.