public class JtaTransactionAnnotationParser extends Object implements TransactionAnnotationParser, Serializable
Transactional
annotation.Constructor and Description |
---|
JtaTransactionAnnotationParser() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
int |
hashCode() |
TransactionAttribute |
parseTransactionAnnotation(AnnotatedElement ae)
Parse the transaction attribute for the given method or class,
based on a known annotation type.
|
protected TransactionAttribute |
parseTransactionAnnotation(AnnotationAttributes attributes) |
TransactionAttribute |
parseTransactionAnnotation(Transactional ann) |
@Nullable public TransactionAttribute parseTransactionAnnotation(AnnotatedElement ae)
TransactionAnnotationParser
This essentially parses a known transaction annotation into Spring's
metadata attribute class. Returns null
if the method/class
is not transactional.
parseTransactionAnnotation
in interface TransactionAnnotationParser
ae
- the annotated method or classnull
if none was foundAnnotationTransactionAttributeSource.determineTransactionAttribute(java.lang.reflect.AnnotatedElement)
public TransactionAttribute parseTransactionAnnotation(Transactional ann)
protected TransactionAttribute parseTransactionAnnotation(AnnotationAttributes attributes)