Interface TransactionExecution

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and TypeMethodDescription
      booleanisCompleted()
      Return whether this transaction is completed, that is, whether it has already been committed or rolled back.
      booleanisNewTransaction()
      Return whether the present transaction is new; otherwise participating in an existing transaction, or potentially not running in an actual transaction in the first place.
      booleanisRollbackOnly()
      Return whether the transaction has been marked as rollback-only (either by the application or by the transaction infrastructure).
      voidsetRollbackOnly()
      Set the transaction rollback-only.
    • Method Detail

      • isNewTransaction

        boolean isNewTransaction()
        Return whether the present transaction is new; otherwise participating in an existing transaction, or potentially not running in an actual transaction in the first place.
      • setRollbackOnly

        void setRollbackOnly()
        Set the transaction rollback-only. This instructs the transaction manager that the only possible outcome of the transaction may be a rollback, as alternative to throwing an exception which would in turn trigger a rollback.
      • isRollbackOnly

        boolean isRollbackOnly()
        Return whether the transaction has been marked as rollback-only (either by the application or by the transaction infrastructure).
      • isCompleted

        boolean isCompleted()
        Return whether this transaction is completed, that is, whether it has already been committed or rolled back.