public enum TxnAction extends Enum<TxnAction>
| Modifier and Type | Field and Description |
|---|---|
static int |
ABORT_VALUE |
static int |
COMMIT_VALUE |
| Modifier and Type | Method and Description |
|---|---|
int |
getValue() |
static TxnAction |
valueOf(int n) |
static TxnAction |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TxnAction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TxnAction COMMIT
public static final TxnAction ABORT
public static final int COMMIT_VALUE
public static final int ABORT_VALUE
public static TxnAction[] values()
for (TxnAction c : TxnAction.values()) System.out.println(c);
public static TxnAction 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 int getValue()
public static TxnAction valueOf(int n)
Copyright © 2017–2022 Apache Software Foundation. All rights reserved.