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.
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. This update policy requires optimistic locking.
A document can be updated or deleted if its
version number is not supplied or if the version number matches.
This update policy provides for optional optimistic locking.
If a document exists, the supplied metadata is
merged with the persisted document metadata. This update policy is
the default (equivalent to content versions of Policy.NONE).
The document is written without testing whether
it exists. Only the supplied metadata is persisted. This update
policy is slightly faster than other update policies.
Returns the enum constant of this class with the
specified name. The string must match exactly an identifier
used to declare an enum constant in this class. (Extraneous
whitespace characters are not permitted.)
Parameters:
name - the name of the enum constant to be
returned.