Class BaseTransactionManagerDelegate

  • All Implemented Interfaces:
    TransactionManager, org.jboss.tm.listener.TransactionListenerRegistry, org.jboss.tm.TransactionLocalDelegate, org.jboss.tm.TransactionTimeoutConfiguration
    Direct Known Subclasses:
    TransactionManagerDelegate, TransactionManagerDelegate

    public abstract class BaseTransactionManagerDelegate
    extends Object
    implements TransactionManager, org.jboss.tm.TransactionLocalDelegate, org.jboss.tm.TransactionTimeoutConfiguration, org.jboss.tm.listener.TransactionListenerRegistry
    Delegate for JBoss TransactionManager/TransactionLocalDelegate.
    Author:
    kevin
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addListener​(Transaction transaction, org.jboss.tm.listener.TransactionListener listener, EnumSet<org.jboss.tm.listener.EventType> types)
      register a listener for transaction related events that effect the current thread
      void begin()
      Begin a transaction and associate it with the current thread.
      void commit()
      Commit the current transaction and disassociate from the thread.
      boolean containsValue​(org.jboss.tm.TransactionLocal transactionLocal, Transaction transaction)
      Does the specified transaction contain a value for the transaction local.
      int getStatus()
      Get the transaction status.
      Transaction getTransaction()
      Get the transaction associated with the thread.
      Object getValue​(org.jboss.tm.TransactionLocal transactionLocal, Transaction transaction)
      Get value of the transaction local in the specified transaction.
      void lock​(org.jboss.tm.TransactionLocal local, Transaction transaction)
      Lock the transaction local in the context of this transaction.
      void resume​(Transaction transaction)
      Resume the specified transaction.
      void rollback()
      Rollback the current transaction and disassociate from the thread.
      void setRollbackOnly()
      Set rollback only on the current transaction.
      void setTransactionTimeout​(int timeout)
      Set the transaction timeout on the current thread.
      void storeValue​(org.jboss.tm.TransactionLocal transactionLocal, Transaction transaction, Object value)
      Store the value of the transaction local in the specified transaction.
      Transaction suspend()
      Suspend the current transaction.
      void unlock​(org.jboss.tm.TransactionLocal local, Transaction transaction)
      Unlock the transaction local in the context of this transaction
      • Methods inherited from interface org.jboss.tm.TransactionTimeoutConfiguration

        getTimeLeftBeforeTransactionTimeout, getTransactionTimeout