public enum TransactionAttribute extends java.lang.Enum<TransactionAttribute>
| Enum Constant and Description |
|---|
NOT_SUPPORTED
Execute non-transactionally, and suspend the current transaction if one exists.
|
REQUIRED
Support a current transaction, 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 TransactionAttribute |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TransactionAttribute[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TransactionAttribute REQUIRED
public static final TransactionAttribute REQUIRES_NEW
public static final TransactionAttribute NOT_SUPPORTED
public static TransactionAttribute[] values()
for (TransactionAttribute c : TransactionAttribute.values()) System.out.println(c);
public static TransactionAttribute valueOf(java.lang.String name)
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