org.nuxeo.runtime.jtajca
Class NuxeoContainer.TransactionManagerWrapper
java.lang.Object
org.nuxeo.runtime.jtajca.NuxeoContainer.TransactionManagerWrapper
- All Implemented Interfaces:
- TransactionManager, org.apache.geronimo.transaction.manager.RecoverableTransactionManager
- Enclosing class:
- NuxeoContainer
public static class NuxeoContainer.TransactionManagerWrapper
- extends Object
- implements org.apache.geronimo.transaction.manager.RecoverableTransactionManager
Wraps a transaction manager for providing a dummy recoverable interface.
- Author:
- matic
NuxeoContainer.TransactionManagerWrapper
public NuxeoContainer.TransactionManagerWrapper(TransactionManager tm)
suspend
public Transaction suspend()
throws SystemException
- Specified by:
suspend
in interface TransactionManager
- Throws:
SystemException
setTransactionTimeout
public void setTransactionTimeout(int seconds)
throws SystemException
- Specified by:
setTransactionTimeout
in interface TransactionManager
- Throws:
SystemException
setRollbackOnly
public void setRollbackOnly()
throws IllegalStateException,
SystemException
- Specified by:
setRollbackOnly
in interface TransactionManager
- Throws:
IllegalStateException
SystemException
rollback
public void rollback()
throws IllegalStateException,
SecurityException,
SystemException
- Specified by:
rollback
in interface TransactionManager
- Throws:
IllegalStateException
SecurityException
SystemException
resume
public void resume(Transaction tobj)
throws IllegalStateException,
InvalidTransactionException,
SystemException
- Specified by:
resume
in interface TransactionManager
- Throws:
IllegalStateException
InvalidTransactionException
SystemException
getTransaction
public Transaction getTransaction()
throws SystemException
- Specified by:
getTransaction
in interface TransactionManager
- Throws:
SystemException
getStatus
public int getStatus()
throws SystemException
- Specified by:
getStatus
in interface TransactionManager
- Throws:
SystemException
commit
public void commit()
throws HeuristicMixedException,
HeuristicRollbackException,
IllegalStateException,
RollbackException,
SecurityException,
SystemException
- Specified by:
commit
in interface TransactionManager
- Throws:
HeuristicMixedException
HeuristicRollbackException
IllegalStateException
RollbackException
SecurityException
SystemException
begin
public void begin()
throws SystemException
- Specified by:
begin
in interface TransactionManager
- Throws:
SystemException
recoveryError
public void recoveryError(Exception e)
- Specified by:
recoveryError
in interface org.apache.geronimo.transaction.manager.RecoverableTransactionManager
recoverResourceManager
public void recoverResourceManager(org.apache.geronimo.transaction.manager.NamedXAResource xaResource)
- Specified by:
recoverResourceManager
in interface org.apache.geronimo.transaction.manager.RecoverableTransactionManager
Copyright © 2011 Nuxeo SAS. All Rights Reserved.