public enum TransactionState extends java.lang.Enum<TransactionState>
| Enum Constant and Description |
|---|
ACTIVE |
COMMITTED |
COMMITTING |
PREPARED |
PREPARING |
ROLLED_BACK |
ROLLING_BACK |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isValidTransition(TransactionState toState)
Is the transition to
toState valid from this state. |
java.util.Set<TransactionState> |
validTransitionSet() |
static TransactionState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TransactionState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TransactionState ACTIVE
public static final TransactionState PREPARING
public static final TransactionState PREPARED
public static final TransactionState COMMITTING
public static final TransactionState COMMITTED
public static final TransactionState ROLLING_BACK
public static final TransactionState ROLLED_BACK
public static TransactionState[] values()
for (TransactionState c : TransactionState.values()) System.out.println(c);
public static TransactionState valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic final boolean isValidTransition(TransactionState toState)
toState valid from this state.toState - The next statetrue transition is validpublic final java.util.Set<TransactionState> validTransitionSet()
Copyright © 2001-2022 Jaybird (Firebird JDBC/JCA) team. All rights reserved.