Serializable
, Comparable<OperationType>
public enum OperationType extends Enum<OperationType>
$changeStream
operation type.Enum Constant | 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 | Description |
---|---|---|
static OperationType |
fromString(String operationTypeName) |
Returns the ChangeStreamOperationType from the string value.
|
String |
getValue() |
|
String |
toString() |
|
static OperationType |
valueOf(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(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()
public static OperationType fromString(String operationTypeName)
operationTypeName
- the string value.public String toString()
toString
in class Enum<OperationType>