Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.runtime.jtajca
Class NuxeoContainer.TransactionManagerWrapper

java.lang.Object
  extended by 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

Constructor Summary
NuxeoContainer.TransactionManagerWrapper(TransactionManager tm)
           
 
Method Summary
 void begin()
           
 void commit()
           
 int getStatus()
           
 Transaction getTransaction()
           
 void recoverResourceManager(org.apache.geronimo.transaction.manager.NamedXAResource xaResource)
           
 void recoveryError(Exception e)
           
 void resume(Transaction tobj)
           
 void rollback()
           
 void setRollbackOnly()
           
 void setTransactionTimeout(int seconds)
           
 Transaction suspend()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NuxeoContainer.TransactionManagerWrapper

public NuxeoContainer.TransactionManagerWrapper(TransactionManager tm)
Method Detail

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

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.