public static enum ServerConfigurationManager.UpdatePolicy extends java.lang.Enum<ServerConfigurationManager.UpdatePolicy>
Enum Constant and Description |
---|
MERGE_METADATA
If a document exists, the supplied metadata is merged with the
persisted document metadata.
|
OVERWRITE_METADATA
The document is written without testing whether it exists.
|
VERSION_OPTIONAL
A document can be updated or deleted if its version number is
not supplied or if the version number matches.
|
VERSION_REQUIRED
A document can be updated or deleted only if its version number
is supplied and matches; a document can be created only if no
version number is supplied and the document doesn't exist.
|
Modifier and Type | Method and Description |
---|---|
static ServerConfigurationManager.UpdatePolicy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ServerConfigurationManager.UpdatePolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ServerConfigurationManager.UpdatePolicy VERSION_REQUIRED
public static final ServerConfigurationManager.UpdatePolicy VERSION_OPTIONAL
public static final ServerConfigurationManager.UpdatePolicy MERGE_METADATA
public static final ServerConfigurationManager.UpdatePolicy OVERWRITE_METADATA
public static ServerConfigurationManager.UpdatePolicy[] values()
for (ServerConfigurationManager.UpdatePolicy c : ServerConfigurationManager.UpdatePolicy.values()) System.out.println(c);
public static ServerConfigurationManager.UpdatePolicy valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullCopyright © 2013-2021 MarkLogic Corporation.