public enum TransactionPropagation extends Enum<TransactionPropagation>
Enum Constant and Description |
---|
MANDATORY
Support a current transaction, throw an exception if none exists.
|
NESTED
Execute within a nested transaction if a current transaction exists,
create a new one if none exists.
|
REQUIRES_NEW
Create a new transaction, and suspend the current transaction if one exists.
|
Modifier and Type | Method and Description |
---|---|
static TransactionPropagation |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TransactionPropagation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TransactionPropagation MANDATORY
public static final TransactionPropagation NESTED
public static final TransactionPropagation REQUIRES_NEW
public static TransactionPropagation[] values()
for (TransactionPropagation c : TransactionPropagation.values()) System.out.println(c);
public static TransactionPropagation 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 © 2001–2019 Apache Cayenne. All rights reserved.