Uses of Interface
org.springframework.transaction.TransactionDefinition
Package
Description
Provides a utility class for easy DataSource access,
a PlatformTransactionManager for a single DataSource,
and various simple DataSource implementations.
Provides a PlatformTransactionManager implementation for a single
JMS ConnectionFactory, and a SingleConnectionFactory adapter.
Package providing integration of
Hibernate 5.x
with Spring concepts.
Package providing integration of JPA (Java Persistence API) with Spring concepts.
Support classes for adapting to specific JPA vendors.
Provides a utility class for easy ConnectionFactory access,
a ReactiveTransactionManager for a single ConnectionFactory,
and various simple ConnectionFactory implementations.
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.
AOP-based solution for declarative transaction demarcation.
Transaction SPI implementation for JTA.
Support classes for reactive transaction management.
Support classes for the org.springframework.transaction package.
-
Uses of TransactionDefinition in org.springframework.jdbc.datasource
Modifier and TypeMethodDescriptionprotected void
DataSourceTransactionManager.doBegin
(Object transaction, TransactionDefinition definition) static Integer
DataSourceUtils.prepareConnectionForTransaction
(Connection con, TransactionDefinition definition) Prepare the given Connection with the given transaction semantics.protected void
DataSourceTransactionManager.prepareTransactionalConnection
(Connection con, TransactionDefinition definition) Prepare the transactionalConnection
right after transaction begin. -
Uses of TransactionDefinition in org.springframework.jms.connection
Modifier and TypeMethodDescriptionprotected void
JmsTransactionManager.doBegin
(Object transaction, TransactionDefinition definition) -
Uses of TransactionDefinition in org.springframework.orm.hibernate5
Modifier and TypeMethodDescriptionprotected void
HibernateTransactionManager.doBegin
(Object transaction, TransactionDefinition definition) -
Uses of TransactionDefinition in org.springframework.orm.jpa
Modifier and TypeMethodDescriptionDefaultJpaDialect.beginTransaction
(EntityManager entityManager, TransactionDefinition definition) This implementation invokes the standard JPATransaction.begin
method.JpaDialect.beginTransaction
(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).protected void
JpaTransactionManager.doBegin
(Object transaction, TransactionDefinition definition) -
Uses of TransactionDefinition in org.springframework.orm.jpa.vendor
Modifier and TypeMethodDescriptionEclipseLinkJpaDialect.beginTransaction
(EntityManager entityManager, TransactionDefinition definition) HibernateJpaDialect.beginTransaction
(EntityManager entityManager, TransactionDefinition definition) -
Uses of TransactionDefinition in org.springframework.r2dbc.connection
Modifier and TypeMethodDescriptionprotected TransactionDefinition
R2dbcTransactionManager.createTransactionDefinition
(TransactionDefinition definition) Determine the transaction definition from ourTransactionDefinition
.protected Duration
R2dbcTransactionManager.determineTimeout
(TransactionDefinition definition) Determine the actual timeout to use for the given definition.protected reactor.core.publisher.Mono<Void>
R2dbcTransactionManager.doBegin
(TransactionSynchronizationManager synchronizationManager, Object transaction, TransactionDefinition definition) protected reactor.core.publisher.Mono<Void>
R2dbcTransactionManager.prepareTransactionalConnection
(Connection con, TransactionDefinition definition) Prepare the transactionalConnection
right after transaction begin. -
Uses of TransactionDefinition in org.springframework.transaction
Modifier and TypeMethodDescriptionstatic TransactionDefinition
TransactionDefinition.withDefaults()
Return an unmodifiableTransactionDefinition
with defaults.Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<ReactiveTransaction>
ReactiveTransactionManager.getReactiveTransaction
(TransactionDefinition definition) Emit a currently active reactive transaction or create a new one, according to the specified propagation behavior.PlatformTransactionManager.getTransaction
(TransactionDefinition definition) Return a currently active transaction or create a new one, according to the specified propagation behavior. -
Uses of TransactionDefinition in org.springframework.transaction.interceptor
Modifier and TypeInterfaceDescriptioninterface
This interface adds arollbackOn
specification toTransactionDefinition
.Modifier and TypeClassDescriptionclass
Spring's common transaction attribute implementation.class
TransactionAttribute
implementation that delegates all calls to a given targetTransactionAttribute
instance.class
TransactionAttribute implementation that works out whether a given exception should cause transaction rollback by applying a number of rollback rules, both positive and negative. -
Uses of TransactionDefinition in org.springframework.transaction.jta
Modifier and TypeMethodDescriptionprotected void
JtaTransactionManager.doBegin
(Object transaction, TransactionDefinition definition) protected void
JtaTransactionManager.doJtaBegin
(JtaTransactionObject txObject, TransactionDefinition definition) Perform a JTA begin on the JTA UserTransaction or TransactionManager. -
Uses of TransactionDefinition in org.springframework.transaction.reactive
Modifier and TypeMethodDescriptionstatic TransactionalOperator
TransactionalOperator.create
(ReactiveTransactionManager transactionManager, TransactionDefinition transactionDefinition) protected abstract reactor.core.publisher.Mono<Void>
AbstractReactiveTransactionManager.doBegin
(TransactionSynchronizationManager synchronizationManager, Object transaction, TransactionDefinition definition) Begin a new transaction with semantics according to the given transaction definition.final reactor.core.publisher.Mono<ReactiveTransaction>
AbstractReactiveTransactionManager.getReactiveTransaction
(TransactionDefinition definition) This implementation handles propagation behavior. -
Uses of TransactionDefinition in org.springframework.transaction.support
Modifier and TypeInterfaceDescriptioninterface
Extended variant ofTransactionDefinition
, indicating a resource transaction and in particular whether the transactional resource is ready for local optimizations.Modifier and TypeClassDescriptionclass
Default implementation of theTransactionDefinition
interface, offering bean-style configuration and sensible default values (PROPAGATION_REQUIRED, ISOLATION_DEFAULT, TIMEOUT_DEFAULT, readOnly=false).class
TransactionDefinition
implementation that delegates all calls to a given targetTransactionDefinition
instance.class
Template class that simplifies programmatic transaction demarcation and transaction exception handling.Modifier and TypeMethodDescriptionprotected int
AbstractPlatformTransactionManager.determineTimeout
(TransactionDefinition definition) Determine the actual timeout to use for the given definition.protected abstract void
AbstractPlatformTransactionManager.doBegin
(Object transaction, TransactionDefinition definition) Begin a new transaction with semantics according to the given transaction definition.<T> T
CallbackPreferringPlatformTransactionManager.execute
(TransactionDefinition definition, TransactionCallback<T> callback) Execute the action specified by the given callback object within a transaction.final TransactionStatus
AbstractPlatformTransactionManager.getTransaction
(TransactionDefinition definition) This implementation handles propagation behavior.protected DefaultTransactionStatus
AbstractPlatformTransactionManager.newTransactionStatus
(TransactionDefinition definition, Object transaction, boolean newTransaction, boolean newSynchronization, boolean debug, Object suspendedResources) Create a TransactionStatus instance for the given arguments.protected void
AbstractPlatformTransactionManager.prepareSynchronization
(DefaultTransactionStatus status, TransactionDefinition definition) Initialize transaction synchronization as appropriate.protected final DefaultTransactionStatus
AbstractPlatformTransactionManager.prepareTransactionStatus
(TransactionDefinition definition, Object transaction, boolean newTransaction, boolean newSynchronization, boolean debug, Object suspendedResources) Create a new TransactionStatus for the given arguments, also initializing transaction synchronization as appropriate.ModifierConstructorDescriptionCopy constructor.DelegatingTransactionDefinition
(TransactionDefinition targetDefinition) Create a DelegatingTransactionAttribute for the given target attribute.TransactionTemplate
(PlatformTransactionManager transactionManager, TransactionDefinition transactionDefinition) Construct a new TransactionTemplate using the given transaction manager, taking its default settings from the given transaction definition.