Package com.couchbase.transactions
Enum TransactionJsonDocumentStatus
- java.lang.Object
-
- java.lang.Enum<TransactionJsonDocumentStatus>
-
- com.couchbase.transactions.TransactionJsonDocumentStatus
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<TransactionJsonDocumentStatus>
@Deprecated public enum TransactionJsonDocumentStatus extends java.lang.Enum<TransactionJsonDocumentStatus>
Deprecated.Gives additional information regarding a returned document's status.This field is now deprecated as of 1.1.3 and should no longer be used or checked by the application.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AMBIGUOUS
Deprecated.since 1.0.1, this is no longer returned.IN_TXN_COMMITTED
Deprecated.On fetch, the document was found to have staged data from a now-committed transaction, so the staged data has been returned.IN_TXN_OTHER
Deprecated.On fetch, the document was found to have staged data from a non-committed transaction, so the document's content has been returned rather than the staged content.NORMAL
Deprecated.The fetched document was not involved in a transaction.OWN_WRITE
Deprecated.The document has staged data from this transaction.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static TransactionJsonDocumentStatus
valueOf​(java.lang.String name)
Deprecated.Returns the enum constant of this type with the specified name.static TransactionJsonDocumentStatus[]
values()
Deprecated.Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NORMAL
public static final TransactionJsonDocumentStatus NORMAL
Deprecated.The fetched document was not involved in a transaction.
-
IN_TXN_COMMITTED
public static final TransactionJsonDocumentStatus IN_TXN_COMMITTED
Deprecated.On fetch, the document was found to have staged data from a now-committed transaction, so the staged data has been returned.
-
IN_TXN_OTHER
public static final TransactionJsonDocumentStatus IN_TXN_OTHER
Deprecated.On fetch, the document was found to have staged data from a non-committed transaction, so the document's content has been returned rather than the staged content.
-
OWN_WRITE
public static final TransactionJsonDocumentStatus OWN_WRITE
Deprecated.The document has staged data from this transaction. To support 'read your own writes', the staged data is returned.
-
AMBIGUOUS
public static final TransactionJsonDocumentStatus AMBIGUOUS
Deprecated.since 1.0.1, this is no longer returned.
-
-
Method Detail
-
values
public static TransactionJsonDocumentStatus[] values()
Deprecated.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 (TransactionJsonDocumentStatus c : TransactionJsonDocumentStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TransactionJsonDocumentStatus valueOf​(java.lang.String name)
Deprecated.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-