public enum Decision extends Enum<Decision>
Enum Constant and Description |
---|
COMMIT
Transaction has been marked for commit.
|
IN_DOUBT
Transaction decision not yet made.
|
ROLLBACK
Transaction has been marked for rollback.
|
Modifier and Type | Method and Description |
---|---|
static Decision |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Decision[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Decision IN_DOUBT
public static final Decision COMMIT
public static final Decision ROLLBACK
public static Decision[] values()
for (Decision c : Decision.values()) System.out.println(c);
public static Decision 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 © 2003-2013 Terracotta, Inc.. All Rights Reserved.