Interface JtaTransactionAdapter

All Known Implementing Classes:
JtaTransactionAdapterTransactionManagerImpl, JtaTransactionAdapterUserTransactionImpl

public interface JtaTransactionAdapter
Adapter for abstracting the physical means of interacting with JTA transactions.

JTA transactions can concretely be interacted with through UserTransaction or Transaction depending on environment and situation. This adapter hides this difference.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Call begin on the underlying transaction object
    void
    Call commit on the underlying transaction object
     
    void
     
    void
    Call rollback on the underlying transaction object
    void
    setTimeOut(int seconds)
     
  • Method Details

    • begin

      void begin()
      Call begin on the underlying transaction object
    • commit

      void commit()
      Call commit on the underlying transaction object
    • rollback

      void rollback()
      Call rollback on the underlying transaction object
    • getStatus

      TransactionStatus getStatus()
    • markRollbackOnly

      void markRollbackOnly()
    • setTimeOut

      void setTimeOut(int seconds)