public enum TxnStatus extends Enum<TxnStatus>
| Modifier and Type | Method and Description |
|---|---|
static TxnStatus |
fromString(String sqlConst) |
String |
getSqlConst() |
String |
toString() |
TxnState |
toTxnState() |
static TxnStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TxnStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TxnStatus OPEN
public static final TxnStatus ABORTED
public static final TxnStatus COMMITTED
public static final TxnStatus UNKNOWN
public static TxnStatus[] values()
for (TxnStatus c : TxnStatus.values()) System.out.println(c);
public static TxnStatus 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 String getSqlConst()
public TxnState toTxnState()
Copyright © 2024 The Apache Software Foundation. All rights reserved.