Annotation Interface ReadOnly
Stereotype annotation for demarcating a read-only transaction. Since the
jakarta.transaction.Transactional
- Since:
- 1.0.0
- Author:
- graemerocher
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionThe transaction isolation level.Defines the exceptions that will not result in a rollback.The transaction propagation type.int
The timeout for this transaction.A qualifier value for the specified transaction.Alias fortransactionManager()
.
-
Element Details
-
value
Alias fortransactionManager()
.- Returns:
- The transaction manager
- See Also:
- Default:
- ""
-
transactionManager
A qualifier value for the specified transaction.May be used to determine the target transaction manager, matching the qualifier value (or the bean name) of a specific
SynchronousTransactionManager
bean definition.- Returns:
- The transaction manager
- See Also:
- Default:
- ""
-
propagation
@AliasFor(annotation=Transactional.class, member="propagation") TransactionDefinition.Propagation propagationThe transaction propagation type.Defaults to
TransactionDefinition.Propagation.REQUIRED
.- Returns:
- The propagation
- Default:
- REQUIRED
-
isolation
@AliasFor(annotation=Transactional.class, member="isolation") TransactionDefinition.Isolation isolationThe transaction isolation level.Defaults to
TransactionDefinition.Isolation.DEFAULT
.- Returns:
- The isolation level
- Default:
- DEFAULT
-
timeout
The timeout for this transaction.Defaults to the default timeout of the underlying transaction system.
- Returns:
- The timeout
- Default:
- -1
-
noRollbackFor
@AliasFor(annotation=Transactional.class, member="noRollbackFor") Class<? extends Throwable>[] noRollbackForDefines the exceptions that will not result in a rollback.- Returns:
- The exception types that will not result in a rollback.
- Default:
- {}
-