org.springframework.transaction.support

Class AbstractTransactionStatus

  • java.lang.Object
    • org.springframework.transaction.support.AbstractTransactionStatus
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void createAndHoldSavepoint()
      Create a savepoint and hold it for the transaction.
      java.lang.Object createSavepoint()
      This implementation delegates to a SavepointManager for the underlying transaction, if possible.
      void flush()
      This implementations is empty, considering flush as a no-op.
      protected java.lang.Object getSavepoint()
      Get the savepoint for this transaction, if any.
      protected SavepointManager getSavepointManager()
      Return a SavepointManager for the underlying transaction, if possible.
      boolean hasSavepoint()
      Return whether this transaction internally carries a savepoint, that is, has been created as nested transaction based on a savepoint.
      boolean isCompleted()
      Return whether this transaction is completed, that is, whether it has already been committed or rolled back.
      boolean isGlobalRollbackOnly()
      Template method for determining the global rollback-only flag of the underlying transaction, if any.
      boolean isLocalRollbackOnly()
      Determine the rollback-only flag via checking this TransactionStatus.
      boolean isRollbackOnly()
      Determine the rollback-only flag via checking both the local rollback-only flag of this TransactionStatus and the global rollback-only flag of the underlying transaction, if any.
      void releaseHeldSavepoint()
      Release the savepoint that is held for the transaction.
      void releaseSavepoint(java.lang.Object savepoint)
      This implementation delegates to a SavepointManager for the underlying transaction, if possible.
      void rollbackToHeldSavepoint()
      Roll back to the savepoint that is held for the transaction and release the savepoint right afterwards.
      void rollbackToSavepoint(java.lang.Object savepoint)
      This implementation delegates to a SavepointManager for the underlying transaction, if possible.
      void setCompleted()
      Mark this transaction as completed, that is, committed or rolled back.
      void setRollbackOnly()
      Set the transaction rollback-only.
      protected void setSavepoint(java.lang.Object savepoint)
      Set a savepoint for this transaction.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait