@Target(value={METHOD,TYPE})
@Retention(value=RUNTIME)
@Documented
public @interface ReadOnly
javax.transaction.Transactional
Modifier and Type | Optional Element and 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 for
transactionManager() . |
@AliasFor(annotation=TransactionalAdvice.class, member="value") public abstract java.lang.String value
transactionManager()
.transactionManager()
@AliasFor(annotation=TransactionalAdvice.class, member="value") public abstract java.lang.String transactionManager
May be used to determine the target transaction manager,
matching the qualifier value (or the bean name) of a specific
SynchronousTransactionManager
bean definition.
value()
@AliasFor(annotation=TransactionalAdvice.class, member="propagation") public abstract TransactionDefinition.Propagation propagation
Defaults to TransactionDefinition.Propagation.REQUIRED
.
@AliasFor(annotation=TransactionalAdvice.class, member="isolation") public abstract TransactionDefinition.Isolation isolation
Defaults to TransactionDefinition.Isolation.DEFAULT
.
@AliasFor(annotation=TransactionalAdvice.class, member="timeout") public abstract int timeout
Defaults to the default timeout of the underlying transaction system.
@AliasFor(annotation=TransactionalAdvice.class, member="noRollbackFor") public abstract java.lang.Class<? extends java.lang.Throwable>[] noRollbackFor