public enum CommitStatus extends Enum<CommitStatus>
Enum Constant and Description |
---|
FAILURE
Indicates a aborted transaction i.e.
|
SUCCESS
Indicates a successfully completed transaction with all the updates committed.
|
Modifier and Type | Method and Description |
---|---|
static CommitStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CommitStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CommitStatus SUCCESS
public static final CommitStatus FAILURE
public static CommitStatus[] values()
for (CommitStatus c : CommitStatus.values()) System.out.println(c);
public static CommitStatus 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 null