public static enum TransactionStatistics.Status extends Enum<TransactionStatistics.Status>
Enum Constant and Description |
---|
ACTIVE |
COMMITTED |
COMMITTING |
MARKED_ROLLLEDBACK |
NO_TRANSACTION |
PREPARED |
PREPARING |
ROLLEDBACK |
ROLLING_BACK |
UNKNOWN |
Modifier and Type | Field and Description |
---|---|
int |
code |
Modifier and Type | Method and Description |
---|---|
static TransactionStatistics.Status |
fromCode(int code) |
static TransactionStatistics.Status |
fromTx(Transaction tx) |
static TransactionStatistics.Status |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TransactionStatistics.Status[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TransactionStatistics.Status ACTIVE
public static final TransactionStatistics.Status COMMITTED
public static final TransactionStatistics.Status COMMITTING
public static final TransactionStatistics.Status MARKED_ROLLLEDBACK
public static final TransactionStatistics.Status NO_TRANSACTION
public static final TransactionStatistics.Status PREPARED
public static final TransactionStatistics.Status PREPARING
public static final TransactionStatistics.Status ROLLEDBACK
public static final TransactionStatistics.Status ROLLING_BACK
public static final TransactionStatistics.Status UNKNOWN
public final int code
public static TransactionStatistics.Status[] values()
for (TransactionStatistics.Status c : TransactionStatistics.Status.values()) System.out.println(c);
public static TransactionStatistics.Status 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 static TransactionStatistics.Status fromCode(int code)
public static TransactionStatistics.Status fromTx(Transaction tx)
Copyright © 2015 Nuxeo SA. All rights reserved.