接口 TransactionStatus

    • 方法概要

      所有方法 实例方法 抽象方法 
      修饰符和类型方法说明
      voidflush()
      Flush the underlying session to the datastore, if applicable: for example, all affected Hibernate/JPA sessions.
      booleanhasSavepoint()
      Return whether this transaction internally carries a savepoint, that is, has been created as nested transaction based on a savepoint.
      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.