Class TransactionScopeManager

    • Method Detail

      • register

        public abstract void register​(TransactionManager manager)
        Register the transaction manager (for use by external transaction scopes).
      • getActive

        public abstract SpiTransaction getActive()
        Return the current Transaction potentially looking in external scope (like Spring).
      • set

        public abstract void set​(SpiTransaction trans)
        Set a new Transaction for this serverName and Thread.
      • clear

        public abstract void clear()
        Clears the current Transaction from thread local scope (for implicit transactions).
      • clearExternal

        public abstract void clearExternal()
        Clears the current Transaction from thread local scope without any check for active transactions. Intended for use with external transactions.
      • replace

        public abstract void replace​(SpiTransaction trans)
        Replace the current transaction with this one.

        Used for Background fetching and Nested transaction scopes.

        Used for background fetching. Replaces the current transaction with a 'dummy' transaction. The current transaction is given to the background thread so it can continue the fetch.

        Specified by:
        replace in interface SpiTransactionScopeManager