public static enum TransactionalHostContextAccessor.Propagation extends Enum<TransactionalHostContextAccessor.Propagation>
Enum Constant and Description |
---|
MANDATORY
Uses the current transaction, or throws
TransactionRequiredException if there is no such transaction. |
REQUIRED
Uses the current transaction, if any, otherwise creates a new transaction.
|
REQUIRES_NEW
Uses a new transaction, suspending any current transaction.
|
Modifier and Type | Method and Description |
---|---|
static TransactionalHostContextAccessor.Propagation |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TransactionalHostContextAccessor.Propagation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TransactionalHostContextAccessor.Propagation REQUIRED
public static final TransactionalHostContextAccessor.Propagation REQUIRES_NEW
public static final TransactionalHostContextAccessor.Propagation MANDATORY
TransactionRequiredException
if there is no such transaction.public static TransactionalHostContextAccessor.Propagation[] values()
for (TransactionalHostContextAccessor.Propagation c : TransactionalHostContextAccessor.Propagation.values()) System.out.println(c);
public static TransactionalHostContextAccessor.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 nullCopyright © 2003–2017 Atlassian. All rights reserved.