Package com.mongodb.bulk
Class DeleteRequest
- java.lang.Object
-
- com.mongodb.bulk.WriteRequest
-
- com.mongodb.bulk.DeleteRequest
-
Deprecated.
@Deprecated public final class DeleteRequest extends WriteRequest
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 Constructor Description DeleteRequest(BsonDocument filter)Deprecated.Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description DeleteRequestcollation(Collation collation)Deprecated.Sets the collation optionsCollationgetCollation()Deprecated.Returns the collation optionsBsonDocumentgetFilter()Deprecated.Gets the query Object filter.WriteRequest.TypegetType()Deprecated.Gets the type of the write.booleanisMulti()Deprecated.Gets whether all documents matching the query filter will be removed.DeleteRequestmulti(boolean isMulti)Deprecated.Sets whether all documents matching the query filter will be removed.
-
-
-
Constructor Detail
-
DeleteRequest
public DeleteRequest(BsonDocument filter)
Deprecated.Construct a new instance.- Parameters:
filter- the non-null query filter
-
-
Method Detail
-
getFilter
public BsonDocument getFilter()
Deprecated.Gets the query Object filter.- Returns:
- the Object filter
-
multi
public DeleteRequest multi(boolean isMulti)
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
public Collation getCollation()
Deprecated.Returns the collation options- Returns:
- the collation options
- Since:
- 3.4
- Since server release
- 3.4
-
collation
public DeleteRequest collation(Collation collation)
Deprecated.Sets the collation optionsA null value represents the server default.
- Parameters:
collation- the collation options to use- Returns:
- this
- Since:
- 3.4
- Since server release
- 3.4
-
getType
public WriteRequest.Type getType()
Deprecated.Description copied from class:WriteRequestGets the type of the write.- Specified by:
getTypein classWriteRequest- Returns:
- the type
-
-