public enum TransactionStatus extends java.lang.Enum<TransactionStatus>
Enum Constant and Description |
---|
ACTIVE
A transaction is currently in progress
|
COMMITTED
The transaction has committed
|
COMMITTING
The transaction is in the process of being committed
|
MARKED_ROLLBACK
A transaction is currently in progress and has been marked for rollback
|
NO_TRANSACTION
No transaction is currently active
|
PREPARED
A two phase commit is occurring and the transaction has been prepared
|
PREPARING
A two phase commit is occurring and the transaction is being prepared
|
ROLLED_BACK
The transaction has been rolled back
|
ROLLING_BACK
The transaction is in the process of rolling back
|
Modifier and Type | Method and Description |
---|---|
static TransactionStatus |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TransactionStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TransactionStatus NO_TRANSACTION
public static final TransactionStatus ACTIVE
public static final TransactionStatus MARKED_ROLLBACK
public static final TransactionStatus PREPARING
public static final TransactionStatus PREPARED
public static final TransactionStatus COMMITTING
public static final TransactionStatus COMMITTED
public static final TransactionStatus ROLLING_BACK
public static final TransactionStatus ROLLED_BACK
public static TransactionStatus[] values()
for (TransactionStatus c : TransactionStatus.values()) System.out.println(c);
public static TransactionStatus 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 nullCopyright © OSGi Alliance (2000, 2018). All Rights Reserved. Licensed under the OSGi Specification License, Version 2.0