public enum TxState extends Enum<TxState>
| Enum Constant and Description |
|---|
ABANDONED |
ABORTED |
ABORTING |
ACTIVE |
COMMITTED |
COMMITTING |
HEUR_ABORTED |
HEUR_COMMITTED |
HEUR_HAZARD |
HEUR_MIXED |
IN_DOUBT |
LOCALLY_DONE |
MARKED_ABORT |
PREPARING |
TERMINATED |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isFinalState() |
boolean |
isFinalStateForOltp() |
boolean |
isHeuristic() |
boolean |
isOneOf(TxState... state) |
boolean |
isRecoverableState() |
boolean |
transitionAllowedTo(TxState nextState) |
static TxState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TxState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TxState MARKED_ABORT
public static final TxState LOCALLY_DONE
public static final TxState COMMITTED
public static final TxState ABORTED
public static final TxState ABANDONED
public static final TxState TERMINATED
public static final TxState HEUR_HAZARD
public static final TxState HEUR_COMMITTED
public static final TxState HEUR_ABORTED
public static final TxState HEUR_MIXED
public static final TxState COMMITTING
public static final TxState ABORTING
public static final TxState IN_DOUBT
public static final TxState PREPARING
public static final TxState ACTIVE
public static TxState[] values()
for (TxState c : TxState.values()) System.out.println(c);
public static TxState 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 boolean isFinalState()
public boolean isFinalStateForOltp()
public boolean isRecoverableState()
public boolean transitionAllowedTo(TxState nextState)
public boolean isOneOf(TxState... state)
public boolean isHeuristic()
Copyright © 2022. All rights reserved.