Class 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 Detail

      • tm

        protected javax.transaction.TransactionManager tm
    • Method Detail

      • suspend

        public javax.transaction.Transaction suspend()
                                              throws javax.transaction.SystemException
        Specified by:
        suspend in interface javax.transaction.TransactionManager
        Throws:
        javax.transaction.SystemException
      • setTransactionTimeout

        public void setTransactionTimeout​(int seconds)
                                   throws javax.transaction.SystemException
        Specified by:
        setTransactionTimeout in interface javax.transaction.TransactionManager
        Throws:
        javax.transaction.SystemException
      • resume

        public void resume​(javax.transaction.Transaction tobj)
                    throws IllegalStateException,
                           javax.transaction.InvalidTransactionException,
                           javax.transaction.SystemException
        Specified by:
        resume in interface javax.transaction.TransactionManager
        Throws:
        IllegalStateException
        javax.transaction.InvalidTransactionException
        javax.transaction.SystemException
      • getStatus

        public int getStatus()
                      throws javax.transaction.SystemException
        Specified by:
        getStatus in interface javax.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 interface javax.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 interface javax.transaction.TransactionManager
        Throws:
        javax.transaction.SystemException
      • recoveryError

        public void recoveryError​(Exception e)
        Specified by:
        recoveryError in interface org.apache.geronimo.transaction.manager.RecoverableTransactionManager
      • registerNamedXAResourceFactory

        public void registerNamedXAResourceFactory​(org.apache.geronimo.transaction.manager.NamedXAResourceFactory factory)
        Specified by:
        registerNamedXAResourceFactory in interface org.apache.geronimo.transaction.manager.RecoverableTransactionManager
      • unregisterNamedXAResourceFactory

        public void unregisterNamedXAResourceFactory​(String factory)
        Specified by:
        unregisterNamedXAResourceFactory in interface org.apache.geronimo.transaction.manager.RecoverableTransactionManager
      • getTransaction

        public javax.transaction.Transaction getTransaction()
                                                     throws javax.transaction.SystemException
        Specified by:
        getTransaction in interface javax.transaction.TransactionManager
        Throws:
        javax.transaction.SystemException