public interface TransactionStatus extends TransactionExecution, SavepointManager, Flushable
Transactional code can use this to retrieve status information, and to programmatically request a rollback (instead of throwing an exception that causes an implicit rollback).
SavepointManager interface to provide access
to savepoint management facilities. Note that savepoint management
is only available if supported by the underlying transaction manager.
|Modifier and Type||Method and Description|
Flush the underlying session to the datastore, if applicable: for example, all affected Hibernate/JPA sessions.
Return whether this transaction internally carries a savepoint, that is, has been created as nested transaction based on a savepoint.
isCompleted, isNewTransaction, isRollbackOnly, setRollbackOnly
createSavepoint, releaseSavepoint, rollbackToSavepoint
This method is mainly here for diagnostic purposes, alongside
TransactionExecution.isNewTransaction(). For programmatic handling of custom
savepoints, use the operations provided by
This is effectively just a hint and may be a no-op if the underlying transaction manager does not have a flush concept. A flush signal may get applied to the primary resource or to transaction synchronizations, depending on the underlying resource.