public enum ReturnDocument extends java.lang.Enum<ReturnDocument>
Enum Constant and Description |
---|
AFTER
Indicates to return the document after the update, replacement, or insert occurred.
|
BEFORE
Indicates to return the document before the update, replacement, or insert occurred.
|
Modifier and Type | Method and Description |
---|---|
static ReturnDocument |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ReturnDocument[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ReturnDocument BEFORE
public static final ReturnDocument AFTER
public static ReturnDocument[] values()
for (ReturnDocument c : ReturnDocument.values()) System.out.println(c);
public static ReturnDocument 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 null