Package org.nuxeo.runtime.jtajca
Class NuxeoContainer.TransactionManagerWrapper
- java.lang.Object
-
- org.nuxeo.runtime.jtajca.NuxeoContainer.TransactionManagerWrapper
-
- All Implemented Interfaces:
javax.transaction.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
-
-
Field Summary
Fields Modifier and Type Field Description protected javax.transaction.TransactionManager
tm
-
Constructor Summary
Constructors Constructor Description TransactionManagerWrapper(javax.transaction.TransactionManager tm)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
begin()
void
commit()
int
getStatus()
javax.transaction.Transaction
getTransaction()
void
recoveryError(Exception e)
void
registerNamedXAResourceFactory(org.apache.geronimo.transaction.manager.NamedXAResourceFactory factory)
void
resume(javax.transaction.Transaction tobj)
void
rollback()
void
setRollbackOnly()
void
setTransactionTimeout(int seconds)
javax.transaction.Transaction
suspend()
void
unregisterNamedXAResourceFactory(String factory)
-
-
-
Field Detail
-
tm
protected javax.transaction.TransactionManager tm
-
-
Constructor Detail
-
TransactionManagerWrapper
public TransactionManagerWrapper(javax.transaction.TransactionManager tm)
-
-
Method Detail
-
suspend
public javax.transaction.Transaction suspend() throws javax.transaction.SystemException
- Specified by:
suspend
in interfacejavax.transaction.TransactionManager
- Throws:
javax.transaction.SystemException
-
setTransactionTimeout
public void setTransactionTimeout(int seconds) throws javax.transaction.SystemException
- Specified by:
setTransactionTimeout
in interfacejavax.transaction.TransactionManager
- Throws:
javax.transaction.SystemException
-
setRollbackOnly
public void setRollbackOnly() throws IllegalStateException, javax.transaction.SystemException
- Specified by:
setRollbackOnly
in interfacejavax.transaction.TransactionManager
- Throws:
IllegalStateException
javax.transaction.SystemException
-
rollback
public void rollback() throws IllegalStateException, SecurityException, javax.transaction.SystemException
- Specified by:
rollback
in interfacejavax.transaction.TransactionManager
- Throws:
IllegalStateException
SecurityException
javax.transaction.SystemException
-
resume
public void resume(javax.transaction.Transaction tobj) throws IllegalStateException, javax.transaction.InvalidTransactionException, javax.transaction.SystemException
- Specified by:
resume
in interfacejavax.transaction.TransactionManager
- Throws:
IllegalStateException
javax.transaction.InvalidTransactionException
javax.transaction.SystemException
-
getStatus
public int getStatus() throws javax.transaction.SystemException
- Specified by:
getStatus
in interfacejavax.transaction.TransactionManager
- Throws:
javax.transaction.SystemException
-
commit
public void commit() throws javax.transaction.HeuristicMixedException, javax.transaction.HeuristicRollbackException, IllegalStateException, javax.transaction.RollbackException, SecurityException, javax.transaction.SystemException
- Specified by:
commit
in interfacejavax.transaction.TransactionManager
- Throws:
javax.transaction.HeuristicMixedException
javax.transaction.HeuristicRollbackException
IllegalStateException
javax.transaction.RollbackException
SecurityException
javax.transaction.SystemException
-
begin
public void begin() throws javax.transaction.SystemException
- Specified by:
begin
in interfacejavax.transaction.TransactionManager
- Throws:
javax.transaction.SystemException
-
recoveryError
public void recoveryError(Exception e)
- Specified by:
recoveryError
in interfaceorg.apache.geronimo.transaction.manager.RecoverableTransactionManager
-
registerNamedXAResourceFactory
public void registerNamedXAResourceFactory(org.apache.geronimo.transaction.manager.NamedXAResourceFactory factory)
- Specified by:
registerNamedXAResourceFactory
in interfaceorg.apache.geronimo.transaction.manager.RecoverableTransactionManager
-
unregisterNamedXAResourceFactory
public void unregisterNamedXAResourceFactory(String factory)
- Specified by:
unregisterNamedXAResourceFactory
in interfaceorg.apache.geronimo.transaction.manager.RecoverableTransactionManager
-
getTransaction
public javax.transaction.Transaction getTransaction() throws javax.transaction.SystemException
- Specified by:
getTransaction
in interfacejavax.transaction.TransactionManager
- Throws:
javax.transaction.SystemException
-
-