public enum StoreSemantics extends Enum<StoreSemantics>
Enum Constant and Description |
---|
INSERT
Create the document, or fail if it exists.
|
REPLACE
Replace the existing document, or fail if it does not exist.
|
REVIVE
Convert a tombstone into a document.
|
UPSERT
Replace the document, or create it if it does not exist.
|
Modifier and Type | Method and Description |
---|---|
com.couchbase.client.core.api.kv.CoreStoreSemantics |
toCore() |
static StoreSemantics |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StoreSemantics[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StoreSemantics REPLACE
public static final StoreSemantics UPSERT
public static final StoreSemantics INSERT
@Stability.Internal public static final StoreSemantics REVIVE
public static StoreSemantics[] values()
for (StoreSemantics c : StoreSemantics.values()) System.out.println(c);
public static StoreSemantics 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 null@Stability.Internal public com.couchbase.client.core.api.kv.CoreStoreSemantics toCore()
Copyright © 2024 Couchbase, Inc.. All rights reserved.