@Stability.Internal public enum CoreStoreSemantics extends Enum<CoreStoreSemantics>
| Enum Constant and Description |
|---|
INSERT
Create the document, or fail if it exists.
|
REPLACE
Replace the 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 |
|---|---|
static CoreStoreSemantics |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CoreStoreSemantics[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CoreStoreSemantics REPLACE
public static final CoreStoreSemantics UPSERT
public static final CoreStoreSemantics INSERT
public static final CoreStoreSemantics REVIVE
public static CoreStoreSemantics[] values()
for (CoreStoreSemantics c : CoreStoreSemantics.values()) System.out.println(c);
public static CoreStoreSemantics 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 nullCopyright © 2024 Couchbase, Inc.. All rights reserved.