public enum TxnType extends Enum<TxnType>
Enum Constant and Description |
---|
MANDATORY
Require that there must already be a transaction running.
|
NEVER
Require that there must NOT be a transaction running.
|
NOT_SUPPORTED
Execute the work without a transaction, pausing an existing transaction if there is one.
|
REQUIRED
Use the existing transaction (if present), or start a new transaction if not.
|
REQUIRES_NEW
Start a new transaction, pausing the old one.
|
SUPPORTS
Inherits previous transaction state.
|
Modifier and Type | Method and Description |
---|---|
static TxnType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TxnType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TxnType MANDATORY
public static final TxnType NEVER
public static final TxnType NOT_SUPPORTED
public static final TxnType REQUIRED
public static final TxnType REQUIRES_NEW
public static final TxnType SUPPORTS
public static TxnType[] values()
for (TxnType c : TxnType.values()) System.out.println(c);
public static TxnType 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 © 2016. All rights reserved.