jakarta.ejb.TransactionAttribute
annotation.
| Modifier and Type | Class and Description |
|---|---|
| private static class | Ejb3TransactionAnnotationParser.
EJB3-specific TransactionAttribute, implementing EJB3's rollback rules which are based on annotated exceptions. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. other)Overrides java. Indicates whether some other object is "equal to" this one. |
| public int | |
| public boolean | isCandidateClass(Class<?>
the class to introspect targetClass)Overrides default org. Determine whether the given class is a candidate for transaction attributes
in the annotation format of this |
| public TransactionAttribute | parseTransactionAnnotation(AnnotatedElement
the annotated method or class element)Implements org. Parse the transaction attribute for the given method or class, based on an annotation type understood by this parser. |
| public TransactionAttribute |
| Ejb3TransactionAnnotationParser | back to summary |
|---|---|
| public Ejb3TransactionAnnotationParser() | |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isCandidateClass | back to summary |
|---|---|
| public boolean isCandidateClass(Class<?> targetClass) Overrides default org. Doc from org. Determine whether the given class is a candidate for transaction attributes
in the annotation format of this If this method returns | |
| parseTransactionAnnotation | back to summary |
|---|---|
| public TransactionAttribute parseTransactionAnnotation(AnnotatedElement element) Implements org. Doc from org. Parse the transaction attribute for the given method or class, based on an annotation type understood by this parser. This essentially parses a known transaction annotation into Spring's metadata
attribute class. Returns
| |
| parseTransactionAnnotation | back to summary |
|---|---|
| public TransactionAttribute parseTransactionAnnotation(TransactionAttribute ann) | |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | rollbackOn(Throwable
the exception to evaluate ex)Overrides org. Implements org. The default behavior is as with EJB: rollback on unchecked exception
( |
| Ejb3TransactionAttribute | back to summary |
|---|---|
| public Ejb3TransactionAttribute(TransactionAttributeType type) | |
| rollbackOn | back to summary |
|---|---|
| public boolean rollbackOn(Throwable ex) Overrides org. Implements org. Doc from org. The default behavior is as with EJB: rollback on unchecked exception
( This is largely consistent with TransactionTemplate's default behavior, except that TransactionTemplate also rolls back on undeclared checked exceptions (a corner case). For declarative transactions, we expect checked exceptions to be intentionally declared as business exceptions, leading to a commit by default.
| |