public enum Propagation extends java.lang.Enum<Propagation>
| Enum Constant and Description |
|---|
MANDATORY
Support a current transaction, throw an exception if none exists.
|
NEVER
Execute non-transactionally, throw an exception if a transaction exists.
|
REQUIRED
Support a current transaction, create a new one if none exists.
|
REQUIRES_NEW
Create a new transaction.
|
SUPPORTS
Support a current transaction, execute non-transactionally if none exists.
|
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
value
Propagation value.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
value()
Returns propagation value.
|
static Propagation |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Propagation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
This is the default setting of a transaction annotation.
for (Propagation c : Propagation.values()) System.out.println(c);
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant
with the specified namejava.lang.NullPointerException - if the argument is null