Package com.mongodb.bulk
Class DeleteRequest
java.lang.Object
com.mongodb.bulk.WriteRequest
com.mongodb.bulk.DeleteRequest
Deprecated.
A representation of a delete.
- Since:
- 3.0
-
Nested Class Summary
Nested classes/interfaces inherited from class com.mongodb.bulk.WriteRequest
WriteRequest.Type
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Sets the collation optionsDeprecated.Returns the collation optionsDeprecated.Gets the query Object filter.getType()
Deprecated.Gets the type of the write.boolean
isMulti()
Deprecated.Gets whether all documents matching the query filter will be removed.multi
(boolean isMulti) Deprecated.Sets whether all documents matching the query filter will be removed.
-
Constructor Details
-
DeleteRequest
Deprecated.Construct a new instance.- Parameters:
filter
- the non-null query filter
-
-
Method Details
-
getFilter
Deprecated.Gets the query Object filter.- Returns:
- the Object filter
-
multi
Deprecated.Sets whether all documents matching the query filter will be removed.- Parameters:
isMulti
- true if all documents matching the query filter will be removed- Returns:
- this
-
isMulti
public boolean isMulti()Deprecated.Gets whether all documents matching the query filter will be removed. The default is true.- Returns:
- whether all documents matching the query filter will be removed
-
getCollation
Deprecated.Returns the collation options- Returns:
- the collation options
- Since:
- 3.4
-
collation
Deprecated.Sets the collation optionsA null value represents the server default.
- Parameters:
collation
- the collation options to use- Returns:
- this
- Since:
- 3.4
-
getType
Deprecated.Description copied from class:WriteRequest
Gets the type of the write.- Specified by:
getType
in classWriteRequest
- Returns:
- the type
-