Annotation Type ReadOnly
-
@Target({METHOD,TYPE}) @Retention(RUNTIME) @Documented public @interface ReadOnlyStereotype annotation for demarcating a read-only transaction. Since thejavax.transaction.Transactional- Since:
- 1.0.0
- Author:
- graemerocher
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description TransactionDefinition.IsolationisolationThe transaction isolation level.java.lang.Class<? extends java.lang.Throwable>[]noRollbackForDefines the exceptions that will not result in a rollback.TransactionDefinition.PropagationpropagationThe transaction propagation type.inttimeoutThe timeout for this transaction.java.lang.StringtransactionManagerA qualifier value for the specified transaction.java.lang.StringvalueAlias fortransactionManager().
-
-
-
Element Detail
-
value
@AliasFor(annotation=TransactionalAdvice.class, member="value") java.lang.String value
Alias fortransactionManager().- Returns:
- The transaction manager
- See Also:
transactionManager()
- Default:
- ""
-
-
-
transactionManager
@AliasFor(annotation=TransactionalAdvice.class, member="value") java.lang.String 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
SynchronousTransactionManagerbean definition.- Returns:
- The transaction manager
- See Also:
value()
- Default:
- ""
-
-
-
propagation
@AliasFor(annotation=TransactionalAdvice.class, member="propagation") TransactionDefinition.Propagation propagation
The transaction propagation type.Defaults to
TransactionDefinition.Propagation.REQUIRED.- Returns:
- The propagation
- Default:
- io.micronaut.transaction.TransactionDefinition.Propagation.REQUIRED
-
-
-
isolation
@AliasFor(annotation=TransactionalAdvice.class, member="isolation") TransactionDefinition.Isolation isolation
The transaction isolation level.Defaults to
TransactionDefinition.Isolation.DEFAULT.- Returns:
- The isolation level
- Default:
- io.micronaut.transaction.TransactionDefinition.Isolation.DEFAULT
-
-
-
timeout
@AliasFor(annotation=TransactionalAdvice.class, member="timeout") int timeout
The timeout for this transaction.Defaults to the default timeout of the underlying transaction system.
- Returns:
- The timeout
- Default:
- -1
-
-
-
noRollbackFor
@AliasFor(annotation=TransactionalAdvice.class, member="noRollbackFor") java.lang.Class<? extends java.lang.Throwable>[] noRollbackFor
Defines the exceptions that will not result in a rollback.- Returns:
- The exception types that will not result in a rollback.
- Default:
- {}
-
-