Enum Class OperationType
- All Implemented Interfaces:
Serializable
,Comparable<OperationType>
,java.lang.constant.Constable
The
$changeStream
operation type.- Since:
- 3.6
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe delete operation typeThe drop operation typeThe dropDatabase operation typeThe insert operation typeThe invalidate operation typeThe other operation type.The rename operation type for renaming collectionsThe replace operation typeThe update operation type -
Method Summary
Modifier and TypeMethodDescriptionstatic OperationType
fromString
(String operationTypeName) Returns the ChangeStreamOperationType from the string value.getValue()
toString()
static OperationType
Returns the enum constant of this class with the specified name.static OperationType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INSERT
The insert operation type -
UPDATE
The update operation type -
REPLACE
The replace operation type -
DELETE
The delete operation type -
INVALIDATE
The invalidate operation type -
DROP
The drop operation type- Since:
- 3.8.2
-
DROP_DATABASE
The dropDatabase operation type- Since:
- 3.8.2
-
RENAME
The rename operation type for renaming collections- Since:
- 3.8.2
-
OTHER
The other operation type.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.
- Since:
- 3.8.2
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
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.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getValue
- Returns:
- the String representation of the operation type
-
fromString
Returns the ChangeStreamOperationType from the string value.- Parameters:
operationTypeName
- the string value.- Returns:
- the read concern
-
toString
- Overrides:
toString
in classEnum<OperationType>
-