public enum TransactionState extends java.lang.Enum<TransactionState>
| Enum Constant and Description |
|---|
ABORTED_UNKNOWN
State used when a transaction was aborted with an unknown result.
|
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 final TransactionState ABORTED_UNKNOWN
In most cases, the transaction is probably rolled back, but we're not sure. For example, the commit could have been received and processed by the server, but a subsequent connection failure occurred before the response was received. Similar for a transaction prepare (first step of two-phase commit).
There are no valid transitions to and from this state; it can only be forcibly set.
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-2026 Jaybird (Firebird JDBC) team. All rights reserved.