Enum TransactionStatistics.Status
- java.lang.Object
-
- java.lang.Enum<TransactionStatistics.Status>
-
- org.nuxeo.ecm.core.management.jtajca.TransactionStatistics.Status
-
- All Implemented Interfaces:
Serializable
,Comparable<TransactionStatistics.Status>
- Enclosing interface:
- TransactionStatistics
public static enum TransactionStatistics.Status extends Enum<TransactionStatistics.Status>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACTIVE
COMMITTED
COMMITTING
MARKED_ROLLLEDBACK
NO_TRANSACTION
PREPARED
PREPARING
ROLLEDBACK
ROLLING_BACK
UNKNOWN
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TransactionStatistics.Status
fromCode(int code)
static TransactionStatistics.Status
fromTx(javax.transaction.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.
-
-
-
Enum Constant Detail
-
ACTIVE
public static final TransactionStatistics.Status ACTIVE
-
COMMITTED
public static final TransactionStatistics.Status COMMITTED
-
COMMITTING
public static final TransactionStatistics.Status COMMITTING
-
MARKED_ROLLLEDBACK
public static final TransactionStatistics.Status MARKED_ROLLLEDBACK
-
NO_TRANSACTION
public static final TransactionStatistics.Status NO_TRANSACTION
-
PREPARED
public static final TransactionStatistics.Status PREPARED
-
PREPARING
public static final TransactionStatistics.Status PREPARING
-
ROLLEDBACK
public static final TransactionStatistics.Status ROLLEDBACK
-
ROLLING_BACK
public static final TransactionStatistics.Status ROLLING_BACK
-
UNKNOWN
public static final TransactionStatistics.Status UNKNOWN
-
-
Method Detail
-
values
public static TransactionStatistics.Status[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TransactionStatistics.Status c : TransactionStatistics.Status.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TransactionStatistics.Status valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
fromCode
public static TransactionStatistics.Status fromCode(int code)
-
fromTx
public static TransactionStatistics.Status fromTx(javax.transaction.Transaction tx)
-
-