public enum TransactionStatus extends Enum<TransactionStatus>
Enum Constant and Description |
---|
ACTIVE
A transaction is associated with the target object and it is in the
active state.
|
COMMITTED
A transaction is associated with the target object and it has been
committed.
|
COMMITTING
A transaction is associated with the target object and it is in the
process of committing.
|
MARKED_ROLLBACK
A transaction is associated with the target object and it has been
marked for rollback, perhaps as a result of a setRollbackOnly operation.
|
NO_TRANSACTION
No transaction is currently associated with the target object.
|
PREPARED
A transaction is associated with the target object and it has been
prepared.
|
PREPARING
A transaction is associated with the target object and it is in the
process of preparing.
|
ROLLEDBACK
A transaction is associated with the target object and the outcome
has been determined to be rollback.
|
ROLLING_BACK
A transaction is associated with the target object and it is in the
process of rolling back.
|
UNKNOWN
A transaction is associated with the target object but its
current status cannot be determined.
|
Modifier and Type | Method and Description |
---|---|
abstract int |
value()
The javax.transaction.Status constant code.
|
static TransactionStatus |
valueOf(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 ACTIVE
public static final TransactionStatus MARKED_ROLLBACK
public static final TransactionStatus PREPARED
public static final TransactionStatus COMMITTED
public static final TransactionStatus ROLLEDBACK
public static final TransactionStatus UNKNOWN
public static final TransactionStatus NO_TRANSACTION
public static final TransactionStatus PREPARING
public static final TransactionStatus COMMITTING
public static final TransactionStatus ROLLING_BACK
public static TransactionStatus[] values()
for (TransactionStatus c : TransactionStatus.values()) System.out.println(c);
public static TransactionStatus 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 abstract int value()
Copyright © 2012–2020 jkniv, copyleft code. All rights reserved.