public enum GlobalTransactionProtocol extends Enum<GlobalTransactionProtocol>
| Enum Constant and Description |
|---|
EMULATE_TWO_PHASE_COMMIT |
LOGGING_LAST_RESOURCE |
NONE |
ONE_PHASE_COMMIT |
TWO_PHASE_COMMIT |
| Modifier and Type | Method and Description |
|---|---|
static GlobalTransactionProtocol |
fromValue(String value) |
String |
toString() |
String |
value() |
static GlobalTransactionProtocol |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GlobalTransactionProtocol[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GlobalTransactionProtocol TWO_PHASE_COMMIT
public static final GlobalTransactionProtocol LOGGING_LAST_RESOURCE
public static final GlobalTransactionProtocol EMULATE_TWO_PHASE_COMMIT
public static final GlobalTransactionProtocol ONE_PHASE_COMMIT
public static final GlobalTransactionProtocol NONE
public static GlobalTransactionProtocol[] values()
for (GlobalTransactionProtocol c : GlobalTransactionProtocol.values()) System.out.println(c);
public static GlobalTransactionProtocol 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 nullpublic static GlobalTransactionProtocol fromValue(String value)
public String toString()
toString in class Enum<GlobalTransactionProtocol>public String value()