Uses of Interface
org.springframework.transaction.interceptor.TransactionAttribute
Packages that use TransactionAttribute
Package
Description
Transactional support classes for the Spring TestContext Framework.
Spring's support for annotation-based transaction demarcation.
AOP-based solution for declarative transaction demarcation.
-
Uses of TransactionAttribute in org.springframework.test.context.transaction
Methods in org.springframework.test.context.transaction that return TransactionAttributeModifier and TypeMethodDescriptionstatic TransactionAttributeTestContextTransactionUtils.createDelegatingTransactionAttribute(TestContext testContext, TransactionAttribute targetAttribute) Create a delegatingTransactionAttributefor the supplied targetTransactionAttributeandTestContext, using the names of the test class and test method to build the name of the transaction.static TransactionAttributeTestContextTransactionUtils.createDelegatingTransactionAttribute(TestContext testContext, TransactionAttribute targetAttribute, boolean includeMethodName) Create a delegatingTransactionAttributefor the supplied targetTransactionAttributeandTestContext, using the names of the test class and test method (if requested) to build the name of the transaction.Methods in org.springframework.test.context.transaction with parameters of type TransactionAttributeModifier and TypeMethodDescriptionstatic TransactionAttributeTestContextTransactionUtils.createDelegatingTransactionAttribute(TestContext testContext, TransactionAttribute targetAttribute) Create a delegatingTransactionAttributefor the supplied targetTransactionAttributeandTestContext, using the names of the test class and test method to build the name of the transaction.static TransactionAttributeTestContextTransactionUtils.createDelegatingTransactionAttribute(TestContext testContext, TransactionAttribute targetAttribute, boolean includeMethodName) Create a delegatingTransactionAttributefor the supplied targetTransactionAttributeandTestContext, using the names of the test class and test method (if requested) to build the name of the transaction. -
Uses of TransactionAttribute in org.springframework.transaction.annotation
Methods in org.springframework.transaction.annotation that return TransactionAttributeModifier and TypeMethodDescriptionprotected @Nullable TransactionAttributeAnnotationTransactionAttributeSource.determineTransactionAttribute(AnnotatedElement element) Determine the transaction attribute for the given method or class.protected @Nullable TransactionAttributeAnnotationTransactionAttributeSource.findTransactionAttribute(Class<?> clazz) protected @Nullable TransactionAttributeAnnotationTransactionAttributeSource.findTransactionAttribute(Method method) Ejb3TransactionAnnotationParser.parseTransactionAnnotation(jakarta.ejb.TransactionAttribute ann) Ejb3TransactionAnnotationParser.parseTransactionAnnotation(AnnotatedElement element) JtaTransactionAnnotationParser.parseTransactionAnnotation(jakarta.transaction.Transactional ann) JtaTransactionAnnotationParser.parseTransactionAnnotation(AnnotatedElement element) protected TransactionAttributeJtaTransactionAnnotationParser.parseTransactionAnnotation(AnnotationAttributes attributes) SpringTransactionAnnotationParser.parseTransactionAnnotation(AnnotatedElement element) protected TransactionAttributeSpringTransactionAnnotationParser.parseTransactionAnnotation(AnnotationAttributes attributes) SpringTransactionAnnotationParser.parseTransactionAnnotation(Transactional ann) TransactionAnnotationParser.parseTransactionAnnotation(AnnotatedElement element) Parse the transaction attribute for the given method or class, based on an annotation type understood by this parser. -
Uses of TransactionAttribute in org.springframework.transaction.interceptor
Classes in org.springframework.transaction.interceptor that implement TransactionAttributeModifier and TypeClassDescriptionclassSpring's common transaction attribute implementation.classTransactionAttributeimplementation that delegates all calls to a given targetTransactionAttributeinstance.classTransactionAttribute implementation that works out whether a given exception should cause transaction rollback by applying a number of rollback rules, both positive and negative.Methods in org.springframework.transaction.interceptor that return TransactionAttributeModifier and TypeMethodDescriptionprotected @Nullable TransactionAttributeAbstractFallbackTransactionAttributeSource.computeTransactionAttribute(Method method, @Nullable Class<?> targetClass) Same signature asAbstractFallbackTransactionAttributeSource.getTransactionAttribute(Method, Class), but doesn't cache the result.protected abstract @Nullable TransactionAttributeAbstractFallbackTransactionAttributeSource.findTransactionAttribute(Class<?> clazz) Subclasses need to implement this to return the transaction attribute for the given class, if any.protected abstract @Nullable TransactionAttributeAbstractFallbackTransactionAttributeSource.findTransactionAttribute(Method method) Subclasses need to implement this to return the transaction attribute for the given method, if any.AbstractFallbackTransactionAttributeSource.getTransactionAttribute(Method method, @Nullable Class<?> targetClass) CompositeTransactionAttributeSource.getTransactionAttribute(Method method, @Nullable Class<?> targetClass) MatchAlwaysTransactionAttributeSource.getTransactionAttribute(Method method, @Nullable Class<?> targetClass) MethodMapTransactionAttributeSource.getTransactionAttribute(Method method, @Nullable Class<?> targetClass) NameMatchTransactionAttributeSource.getTransactionAttribute(Method method, @Nullable Class<?> targetClass) TransactionAspectSupport.TransactionInfo.getTransactionAttribute()TransactionAttributeSource.getTransactionAttribute(Method method, @Nullable Class<?> targetClass) Return the transaction attribute for the given method, ornullif the method is non-transactional.Methods in org.springframework.transaction.interceptor with parameters of type TransactionAttributeModifier and TypeMethodDescriptionvoidMethodMapTransactionAttributeSource.addTransactionalMethod(Class<?> clazz, String mappedName, TransactionAttribute attr) Add an attribute for a transactional method.voidMethodMapTransactionAttributeSource.addTransactionalMethod(Method method, TransactionAttribute attr) Add an attribute for a transactional method.voidMethodMapTransactionAttributeSource.addTransactionalMethod(String name, TransactionAttribute attr) Add an attribute for a transactional method.voidNameMatchTransactionAttributeSource.addTransactionalMethod(String methodName, TransactionAttribute attr) Add an attribute for a transactional method.protected TransactionAspectSupport.TransactionInfoTransactionAspectSupport.createTransactionIfNecessary(@Nullable PlatformTransactionManager tm, @Nullable TransactionAttribute txAttr, String joinpointIdentification) Create a transaction if necessary based on the given TransactionAttribute.protected @Nullable TransactionManagerTransactionAspectSupport.determineTransactionManager(@Nullable TransactionAttribute txAttr) Deprecated.protected @Nullable TransactionManagerTransactionAspectSupport.determineTransactionManager(@Nullable TransactionAttribute txAttr, @Nullable Class<?> targetClass) Determine the specific transaction manager to use for the given transaction.protected TransactionAspectSupport.TransactionInfoTransactionAspectSupport.prepareTransactionInfo(@Nullable PlatformTransactionManager tm, @Nullable TransactionAttribute txAttr, String joinpointIdentification, @Nullable TransactionStatus status) Prepare a TransactionInfo for the given attribute and status object.voidMatchAlwaysTransactionAttributeSource.setTransactionAttribute(TransactionAttribute transactionAttribute) Allows a transaction attribute to be specified, using the String form, for example, "PROPAGATION_REQUIRED".Method parameters in org.springframework.transaction.interceptor with type arguments of type TransactionAttributeModifier and TypeMethodDescriptionprotected voidMethodMapTransactionAttributeSource.initMethodMap(@Nullable Map<String, TransactionAttribute> methodMap) Initialize the specified"methodMap", if any.voidMethodMapTransactionAttributeSource.setMethodMap(Map<String, TransactionAttribute> methodMap) Set a name/attribute map, consisting of "<fully-qualified class name>.<method-name>" method names (for example, "com.mycompany.mycode.MyClass.myMethod") andTransactionAttributeinstances (or Strings to be converted toTransactionAttributeinstances).voidNameMatchTransactionAttributeSource.setNameMap(Map<String, TransactionAttribute> nameMap) Set a name/attribute map, consisting of method names (for example, "myMethod") andTransactionAttributeinstances.Constructors in org.springframework.transaction.interceptor with parameters of type TransactionAttributeModifierConstructorDescriptionCopy constructor.DelegatingTransactionAttribute(TransactionAttribute targetAttribute) Create a DelegatingTransactionAttribute for the given target attribute.TransactionInfo(@Nullable PlatformTransactionManager transactionManager, @Nullable TransactionAttribute transactionAttribute, String joinpointIdentification)
TransactionAspectSupport.determineTransactionManager(TransactionAttribute, Class)