public enum OverwriteMode extends Enum<OverwriteMode>
Enum Constant and Description |
---|
conflict
if a document with the specified _key value exists already, return a unique constraint violation error so that
the insert operation fails.
|
ignore
if a document with the specified _key value exists already, nothing will be done and no write operation will be
carried out.
|
replace
if a document with the specified _key value exists already, it will be overwritten with the specified document
value.
|
update
if a document with the specified _key value exists already, it will be patched (partially updated) with the
specified document value.
|
Modifier and Type | Method and Description |
---|---|
String |
getValue() |
static OverwriteMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OverwriteMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OverwriteMode ignore
public static final OverwriteMode replace
public static final OverwriteMode update
public static final OverwriteMode conflict
public static OverwriteMode[] values()
for (OverwriteMode c : OverwriteMode.values()) System.out.println(c);
public static OverwriteMode 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 nullpublic String getValue()
Copyright © 2016–2021 ArangoDB GmbH. All rights reserved.