Top Description Interfaces Classes
module spring.tx

Package org.springframework.transaction.interceptor

Annotations
@NonNullApi
@NonNullFields
Imports
org.springframework.lang.NonNullApi, .NonNullFields

AOP-based solution for declarative transaction demarcation. Builds on the AOP infrastructure in org.springframework.aop.framework. Any POJO can be transactionally advised with Spring.

The TransactionFactoryProxyBean can be used to create transactional AOP proxies transparently to code that uses them.

The TransactionInterceptor is the AOP Alliance MethodInterceptor that delivers transactional advice, based on the Spring transaction abstraction. This allows declarative transaction management in any environment, even without JTA if an application uses only a single database.

Interface Summary

Modifier and TypeInterface and Description
public interface
TransactionalProxy

A marker interface for manually created transactional proxies.

public interface
TransactionAttribute

This interface adds a rollbackOn specification to TransactionDefinition.

public interface
TransactionAttributeSource

Strategy interface used by TransactionInterceptor for metadata retrieval.

Class Summary

Modifier and TypeClass and Description
public abstract class
AbstractFallbackTransactionAttributeSource

Abstract implementation of TransactionAttributeSource that caches attributes for methods and implements a fallback policy: 1.

public class
BeanFactoryTransactionAttributeSourceAdvisor

Advisor driven by a TransactionAttributeSource, used to include a transaction advice bean for methods that are transactional.

public class
CompositeTransactionAttributeSource

Composite TransactionAttributeSource implementation that iterates over a given array of TransactionAttributeSource instances.

public class
DefaultTransactionAttribute

Spring's common transaction attribute implementation.

public abstract class
DelegatingTransactionAttribute

TransactionAttribute implementation that delegates all calls to a given target TransactionAttribute instance.

public class
MatchAlwaysTransactionAttributeSource

Very simple implementation of TransactionAttributeSource which will always return the same TransactionAttribute for all methods fed to it.

public class
MethodMapTransactionAttributeSource

Simple TransactionAttributeSource implementation that allows attributes to be stored per method in a Map.

public class
NameMatchTransactionAttributeSource

Simple TransactionAttributeSource implementation that allows attributes to be matched by registered name.

public class
NoRollbackRuleAttribute

Tag subclass of RollbackRuleAttribute that has the opposite behavior to the RollbackRuleAttribute superclass.

public class
RollbackRuleAttribute

Rule determining whether a given exception should cause a rollback.

public class
RuleBasedTransactionAttribute

TransactionAttribute implementation that works out whether a given exception should cause transaction rollback by applying a number of rollback rules, both positive and negative.

public abstract class
TransactionAspectSupport

Base class for transactional aspects, such as the TransactionInterceptor or an AspectJ aspect.

public class
public class
TransactionAttributeSourceAdvisor

Advisor driven by a TransactionAttributeSource, used to include a TransactionInterceptor only for methods that are transactional.

public class
TransactionAttributeSourceEditor

Property editor that converts a String into a TransactionAttributeSource.

pack-priv class
TransactionAttributeSourcePointcut

Internal class that implements a Pointcut that matches if the underlying TransactionAttributeSource has an attribute for a given method.

public class
TransactionInterceptor

AOP Alliance MethodInterceptor for declarative transaction management using the common Spring transaction infrastructure (org.springframework.transaction.PlatformTransactionManager/ org.springframework.transaction.ReactiveTransactionManager).

public class
TransactionProxyFactoryBean

Proxy factory bean for simplified declarative transaction handling.