Serializable
, Comparable<OperationType>
public enum OperationType extends Enum<OperationType>
$changeStream
operation type.Enum Constant | Description |
---|---|
DELETE |
The delete operation type
|
INSERT |
The insert operation type
|
INVALIDATE |
The invalidate operation type
|
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 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>