public enum TransactionResult extends Enum<TransactionResult>
Enum Constant and Description |
---|
COMMIT
Transaction was committed.
|
ROLLBACK
Tranasction was rolled back.
|
UNKNOWN
Nothing was done.
|
Modifier and Type | Method and Description |
---|---|
static TransactionResult |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TransactionResult[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TransactionResult UNKNOWN
public static final TransactionResult COMMIT
public static final TransactionResult ROLLBACK
public static TransactionResult[] values()
for (TransactionResult c : TransactionResult.values()) System.out.println(c);
public static TransactionResult 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 © 2022. All rights reserved.