Class JTAUserTransactionAdapter

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected jakarta.transaction.UserTransaction userTran
      JTA transaction manager
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void begin()
      Create a new transaction and associate it with the current thread.
      void commit()
      Complete the transaction associated with the current thread.
      int getStatus()
      Obtain the status of the transaction associated with the current thread.
      void rollback()
      Roll back the transaction associated with the current thread.
      void setRollbackOnly()
      Modify the transaction associated with the current thread such that the only possible outcome of the transaction is to roll back the transaction.
      void setTransactionTimeout​(int seconds)
      Modify the value of the timeout value that is associated with the transactions started by the current thread with the begin method.