public enum TransactionStatus extends Enum<TransactionStatus>
Enum Constant and Description |
---|
ACTIVE
Active TX
|
COMMITTED
TX Committed
|
COMMITTED_DELETING
Pending deleted are being committed to for the delta.
|
COMMITTING
TX is committing
|
DELETABLE
An entry that may be deleted
|
MARKED_ROLLBACK
TX marked for rollback
|
MERGE
This entry is the source for an active merge.
|
MERGE_TARGET
A new index element that is being made by a merge.
|
NO_TRANSACTION
No transaction
|
PREPARED
TX prepared
|
PREPARING
TX is preparing
|
ROLLEDBACK
TX rolled back
|
ROLLINGBACK
TX rolling back
|
UNKNOWN
TX state is unknown
|
Modifier and Type | Method and Description |
---|---|
abstract boolean |
canBeReordered()
Can this be reordered with respect to other TXs
|
abstract boolean |
follows(TransactionStatus previous)
Can this state follow the one given?
|
abstract int |
getStatus()
Get the javax.transaction.Status best matching this state
|
abstract boolean |
isCommitted()
Is this a commited inex entry?
|
abstract boolean |
isTransient()
Is this transient
|
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 ROLLINGBACK
public static final TransactionStatus MERGE
public static final TransactionStatus MERGE_TARGET
public static final TransactionStatus COMMITTED_DELETING
public static final TransactionStatus DELETABLE
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 boolean isCommitted()
public abstract boolean isTransient()
public abstract boolean canBeReordered()
public abstract boolean follows(TransactionStatus previous)
previous
- statepublic abstract int getStatus()
Copyright © 2005–2017 Alfresco Software. All rights reserved.