public enum StoreSemantics extends Enum<StoreSemantics>
Enum Constant and Description |
---|
INSERT
Create the document, fail if it exists.
|
REPLACE
Replace the document, fail if it does not exist.
|
UPSERT
Replace the document or create it if it does not exist.
|
Modifier and Type | Method and Description |
---|---|
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
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 nullCopyright © 2021 Couchbase, Inc.. All rights reserved.