Annotation Type ReadOnly
-
@Target({METHOD,TYPE}) @Retention(RUNTIME) @Documented public @interface ReadOnly
Stereotype 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.Isolation
isolation
The transaction isolation level.java.lang.Class<? extends java.lang.Throwable>[]
noRollbackFor
Defines the exceptions that will not result in a rollback.TransactionDefinition.Propagation
propagation
The transaction propagation type.int
timeout
The timeout for this transaction.java.lang.String
transactionManager
A qualifier value for the specified transaction.java.lang.String
value
Alias 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
SynchronousTransactionManager
bean 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:
- {}
-
-