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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
begin()
void
commit()
int
javax.transaction.Transaction
void
void
registerNamedXAResourceFactory
(org.apache.geronimo.transaction.manager.NamedXAResourceFactory factory) void
resume
(javax.transaction.Transaction tobj) void
rollback()
void
void
setTransactionTimeout
(int seconds) javax.transaction.Transaction
suspend()
void
unregisterNamedXAResourceFactory
(String factory)
-
Field Details
-
tm
protected javax.transaction.TransactionManager tm
-
-
Constructor Details
-
TransactionManagerWrapper
public TransactionManagerWrapper(javax.transaction.TransactionManager tm)
-
-
Method Details
-
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
- 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
- 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
- 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
-