public static enum UnitOfWorkPropagation.Propagation extends Enum<UnitOfWorkPropagation.Propagation>
| Enum Constant and Description |
|---|
MANDATORY
Behavior:
If no current UnitOfWork: throw an exception If there is a current UnitOfWork: use the current UnitOfWork. |
REQUIRED
Default propagation behavior.
|
REQUIRES_NEW
Behavior:
If no current UnitOfWork: creates a new UnitOfWork If there is a current UnitOfWork: suspend the current UnitOfWork and create a new UnitOfWork. |
| Modifier and Type | Method and Description |
|---|---|
static UnitOfWorkPropagation.Propagation |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static UnitOfWorkPropagation.Propagation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UnitOfWorkPropagation.Propagation REQUIRED
public static final UnitOfWorkPropagation.Propagation MANDATORY
public static final UnitOfWorkPropagation.Propagation REQUIRES_NEW
public static UnitOfWorkPropagation.Propagation[] values()
for (UnitOfWorkPropagation.Propagation c : UnitOfWorkPropagation.Propagation.values()) System.out.println(c);
public static UnitOfWorkPropagation.Propagation valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is null