Specify the transaction propagation type needed for the marked element.
the propagation type.
public abstract boolean readOnly
Define the transaction as having a read-only behavior. It is used as an hint to the transaction
manager to optimize its behavior. Note that it is not required for the transaction manager to enforce
strict read-only behavior.
true if read-only false otherwise.
public abstract boolean rollbackOnParticipationFailure
Define if a failure by a participating transaction should mark the surrounding transaction as rollback only.
true if a failure as participation marks the whole transaction as rollback only, false otherwise.
A list of exceptions to not rollback on. A caveat to the rollbackOn
clause. The disjunction of rollbackOn and noRollbackFor represents the list of
exceptions that will trigger a rollback. The complement of rollbackOn and
the universal set plus any exceptions in the ignore set represents the
list of exceptions that will trigger a commit. Note that ignore
exceptions take precedence over rollbackOn, but with subtype granularity.
the list of exception classes to NOT rollback for.