@Target(value={METHOD,TYPE,ANNOTATION_TYPE}) @Retention(value=RUNTIME) @Inherited public @interface Transactional
Modifier and Type | Optional Element and Description |
---|---|
Class<? extends Exception>[] |
noRollbackFor
A list of exceptions to not rollback on.
|
Propagation[] |
propagation
Specify the transaction propagation type needed for the marked element.
|
boolean[] |
readOnly
Define the transaction as having a read-only behavior.
|
Class<? extends Exception>[] |
rollbackOn
A list of exceptions to rollback on, if thrown by the transactional
method.
|
boolean[] |
rollbackOnParticipationFailure
Define if a failure by a participating transaction should mark the surrounding transaction as rollback only.
|
public abstract Propagation[] propagation
public abstract boolean[] readOnly
public abstract boolean[] rollbackOnParticipationFailure
public abstract Class<? extends Exception>[] noRollbackFor
Copyright © 2013-2018–2019 SeedStack. All rights reserved.