public enum OperationType extends java.lang.Enum<OperationType>
$changeStream
operation type.Enum Constant and Description |
---|
DELETE
The delete operation type
|
DROP
The drop operation type
|
DROP_DATABASE
The dropDatabase operation type
|
INSERT
The insert operation type
|
INVALIDATE
The invalidate operation type
|
OTHER
The other operation type.
|
RENAME
The rename operation type for renaming collections
|
REPLACE
The replace operation type
|
UPDATE
The update operation type
|
Modifier and Type | Method and Description |
---|---|
static OperationType |
fromString(java.lang.String operationTypeName)
Returns the ChangeStreamOperationType from the string value.
|
java.lang.String |
getValue() |
java.lang.String |
toString() |
static OperationType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static OperationType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OperationType INSERT
public static final OperationType UPDATE
public static final OperationType REPLACE
public static final OperationType DELETE
public static final OperationType INVALIDATE
public static final OperationType DROP
public static final OperationType DROP_DATABASE
public static final OperationType RENAME
public static final OperationType OTHER
A placeholder for newer operation types issued by the server. Users encountering OTHER operation types are advised to update the driver to get the actual operation type.
public static OperationType[] values()
for (OperationType c : OperationType.values()) System.out.println(c);
public static OperationType 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 nullpublic java.lang.String getValue()
public static OperationType fromString(java.lang.String operationTypeName)
operationTypeName
- the string value.public java.lang.String toString()
toString
in class java.lang.Enum<OperationType>
Copyright © 2010 - 2020 Adobe. All Rights Reserved