Uses of Class
org.springframework.transaction.TransactionException
Packages that use TransactionException
Package
Description
Provides a utility class for easy DataSource access,
a PlatformTransactionManager for a single DataSource,
and various simple DataSource implementations.
Package providing integration of JPA (Java Persistence API) with Spring concepts.
Support classes for adapting to specific JPA vendors.
Spring's core transaction management APIs (independent of any specific transaction
management system); an exception hierarchy for Spring's transaction infrastructure;
and transaction manager, definition, and status interfaces.
Support classes for reactive transaction management.
Support classes for the org.springframework.transaction package.
-
Uses of TransactionException in org.springframework.jdbc.datasource
Methods in org.springframework.jdbc.datasource that throw TransactionExceptionModifier and TypeMethodDescriptionJdbcTransactionObjectSupport.createSavepoint()This implementation creates a JDBC Savepoint and returns it.protected ConnectionHolderJdbcTransactionObjectSupport.getConnectionHolderForSavepoint()voidJdbcTransactionObjectSupport.releaseSavepoint(Object savepoint) This implementation releases the given JDBC Savepoint.voidJdbcTransactionObjectSupport.rollbackToSavepoint(Object savepoint) This implementation rolls back to the given JDBC Savepoint. -
Uses of TransactionException in org.springframework.orm.jpa
Methods in org.springframework.orm.jpa that throw TransactionExceptionModifier and TypeMethodDescriptionDefaultJpaDialect.beginTransaction(jakarta.persistence.EntityManager entityManager, TransactionDefinition definition) This implementation invokes the standard JPATransaction.beginmethod.JpaDialect.beginTransaction(jakarta.persistence.EntityManager entityManager, TransactionDefinition definition) Begin the given JPA transaction, applying the semantics specified by the given Spring transaction definition (in particular, an isolation level and a timeout). -
Uses of TransactionException in org.springframework.orm.jpa.vendor
Methods in org.springframework.orm.jpa.vendor that throw TransactionExceptionModifier and TypeMethodDescriptionEclipseLinkJpaDialect.beginTransaction(jakarta.persistence.EntityManager entityManager, TransactionDefinition definition) HibernateJpaDialect.beginTransaction(jakarta.persistence.EntityManager entityManager, TransactionDefinition definition) -
Uses of TransactionException in org.springframework.transaction
Subclasses of TransactionException in org.springframework.transactionModifier and TypeClassDescriptionclassException thrown when a transaction can't be created using an underlying transaction API such as JTA.classException that represents a transaction failure caused by a heuristic decision on the side of the transaction coordinator.classException thrown when the existence or non-existence of a transaction amounts to an illegal state according to the transaction propagation behavior that applies.classException that gets thrown when an invalid isolation level is specified, i.e.classException that gets thrown when an invalid timeout is specified, that is, the specified timeout valid is out of range or the transaction manager implementation doesn't support timeouts.classException thrown when attempting to work with a nested transaction but nested transactions are not supported by the underlying backend.classException thrown when an operation is attempted that relies on an existing transaction (such as setting rollback status) and there is no existing transaction.classException thrown when attempting to suspend an existing transaction but transaction suspension is not supported by the underlying backend.classException thrown when a general transaction system error is encountered, like on commit or rollback.classException to be thrown when a transaction has timed out.classSuperclass for exceptions caused by inappropriate usage of a Spring transaction API.classThrown when an attempt to commit a transaction resulted in an unexpected rollback.Methods in org.springframework.transaction that throw TransactionExceptionModifier and TypeMethodDescriptionvoidPlatformTransactionManager.commit(TransactionStatus status) Commit the given transaction, with regard to its status.SavepointManager.createSavepoint()Create a new savepoint.PlatformTransactionManager.getTransaction(@Nullable TransactionDefinition definition) Return a currently active transaction or create a new one, according to the specified propagation behavior.voidSavepointManager.releaseSavepoint(Object savepoint) Explicitly release the given savepoint.voidPlatformTransactionManager.rollback(TransactionStatus status) Perform a rollback of the given transaction.voidSavepointManager.rollbackToSavepoint(Object savepoint) Roll back to the given savepoint. -
Uses of TransactionException in org.springframework.transaction.reactive
Methods in org.springframework.transaction.reactive that throw TransactionExceptionModifier and TypeMethodDescription<T> reactor.core.publisher.Flux<T> TransactionalOperator.execute(TransactionCallback<T> action) Execute the action specified by the given callback object within a transaction. -
Uses of TransactionException in org.springframework.transaction.support
Methods in org.springframework.transaction.support that throw TransactionExceptionModifier and TypeMethodDescriptionfinal voidAbstractPlatformTransactionManager.commit(TransactionStatus status) This implementation of commit handles participating in existing transactions and programmatic rollback requests.voidAbstractTransactionStatus.createAndHoldSavepoint()Create a savepoint and hold it for the transaction.AbstractTransactionStatus.createSavepoint()This implementation delegates to a SavepointManager for the underlying transaction, if possible.protected abstract voidAbstractPlatformTransactionManager.doBegin(Object transaction, TransactionDefinition definition) Begin a new transaction with semantics according to the given transaction definition.protected abstract voidAbstractPlatformTransactionManager.doCommit(DefaultTransactionStatus status) Perform an actual commit of the given transaction.protected abstract ObjectAbstractPlatformTransactionManager.doGetTransaction()Return a transaction object for the current transaction state.protected voidAbstractPlatformTransactionManager.doResume(@Nullable Object transaction, Object suspendedResources) Resume the resources of the current transaction.protected abstract voidAbstractPlatformTransactionManager.doRollback(DefaultTransactionStatus status) Perform an actual rollback of the given transaction.protected voidAbstractPlatformTransactionManager.doSetRollbackOnly(DefaultTransactionStatus status) Set the given transaction rollback-only.protected ObjectSuspend the resources of the current transaction.CallbackPreferringPlatformTransactionManager.execute(@Nullable TransactionDefinition definition, TransactionCallback<T> callback) Execute the action specified by the given callback object within a transaction.TransactionOperations.execute(TransactionCallback<T> action) Execute the action specified by the given callback object within a transaction.TransactionTemplate.execute(TransactionCallback<T> action) default voidTransactionOperations.executeWithoutResult(Consumer<TransactionStatus> action) Execute the action specified by the givenRunnablewithin a transaction.final TransactionStatusAbstractPlatformTransactionManager.getTransaction(@Nullable TransactionDefinition definition) This implementation handles propagation behavior.protected booleanAbstractPlatformTransactionManager.isExistingTransaction(Object transaction) Check if the given transaction object indicates an existing transaction (that is, a transaction which has already started).protected voidAbstractPlatformTransactionManager.registerAfterCompletionWithExistingTransaction(Object transaction, List<TransactionSynchronization> synchronizations) Register the given list of transaction synchronizations with the existing transaction.voidAbstractTransactionStatus.releaseHeldSavepoint()Release the savepoint that is held for the transaction.voidAbstractTransactionStatus.releaseSavepoint(Object savepoint) This implementation delegates to a SavepointManager for the underlying transaction, if possible.protected final voidAbstractPlatformTransactionManager.resume(@Nullable Object transaction, @Nullable AbstractPlatformTransactionManager.SuspendedResourcesHolder resourcesHolder) Resume the given transaction.final voidAbstractPlatformTransactionManager.rollback(TransactionStatus status) This implementation of rollback handles participating in existing transactions.voidAbstractTransactionStatus.rollbackToHeldSavepoint()Roll back to the savepoint that is held for the transaction and release the savepoint right afterwards.voidAbstractTransactionStatus.rollbackToSavepoint(Object savepoint) This implementation delegates to a SavepointManager for the underlying transaction, if possible.protected final @Nullable AbstractPlatformTransactionManager.SuspendedResourcesHolderSuspend the given transaction.