
com.couchbase.transactions.TransactionJsonDocumentStatus Maven / Gradle / Ivy
Show all versions of couchbase-transactions Show documentation
/*
* Copyright 2021 Couchbase, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.couchbase.transactions;
/**
* 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.
*/
@Deprecated
public enum TransactionJsonDocumentStatus {
/**
* The fetched document was not involved in a transaction.
*/
NORMAL,
/**
* On fetch, the document was found to have staged data from a now-committed transaction, so the staged data has
* been returned.
*/
IN_TXN_COMMITTED,
/**
* 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.
*/
IN_TXN_OTHER,
/**
* The document has staged data from this transaction. To support 'read your own writes', the staged data is
* returned.
*/
OWN_WRITE,
/**
* @deprecated since 1.0.1, this is no longer returned.
*/
AMBIGUOUS
}