Class SimpleTransactionManager
- java.lang.Object
-
- org.alfresco.repo.search.transaction.SimpleTransactionManager
-
- All Implemented Interfaces:
TransactionManager
public class SimpleTransactionManager extends Object implements TransactionManager
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbegin()voidcommit()static SimpleTransactionManagergetInstance()intgetStatus()SimpleTransactiongetTransaction()voidresume(Transaction tx)voidrollback()voidsetRollbackOnly()voidsetTransactionTimeout(int timeout)SimpleTransactionsuspend()
-
-
-
Method Detail
-
getInstance
public static SimpleTransactionManager getInstance()
-
begin
public void begin() throws NotSupportedException, SystemException- Specified by:
beginin interfaceTransactionManager- Throws:
NotSupportedExceptionSystemException
-
commit
public void commit() throws RollbackException, HeuristicMixedException, HeuristicRollbackException, SecurityException, IllegalStateException, SystemException- Specified by:
commitin interfaceTransactionManager- Throws:
RollbackExceptionHeuristicMixedExceptionHeuristicRollbackExceptionSecurityExceptionIllegalStateExceptionSystemException
-
getStatus
public int getStatus() throws SystemException- Specified by:
getStatusin interfaceTransactionManager- Throws:
SystemException
-
getTransaction
public SimpleTransaction getTransaction() throws SystemException
- Specified by:
getTransactionin interfaceTransactionManager- Throws:
SystemException
-
resume
public void resume(Transaction tx) throws InvalidTransactionException, IllegalStateException, SystemException
- Specified by:
resumein interfaceTransactionManager- Throws:
InvalidTransactionExceptionIllegalStateExceptionSystemException
-
rollback
public void rollback() throws IllegalStateException, SecurityException, SystemException- Specified by:
rollbackin interfaceTransactionManager- Throws:
IllegalStateExceptionSecurityExceptionSystemException
-
setRollbackOnly
public void setRollbackOnly() throws IllegalStateException, SystemException- Specified by:
setRollbackOnlyin interfaceTransactionManager- Throws:
IllegalStateExceptionSystemException
-
setTransactionTimeout
public void setTransactionTimeout(int timeout) throws SystemException- Specified by:
setTransactionTimeoutin interfaceTransactionManager- Throws:
SystemException
-
suspend
public SimpleTransaction suspend() throws SystemException
- Specified by:
suspendin interfaceTransactionManager- Throws:
SystemException
-
-