Package com.mongodb.client.model
Class DBCollectionRemoveOptions
java.lang.Object
com.mongodb.client.model.DBCollectionRemoveOptions
The options to apply when removing documents from the DBCollection
- Since:
- 3.4
- MongoDB documentation
- Remove Documents
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionSets the collationSets the encoderReturns the collation optionsReturns the encoderThe write concern to use for the insertion.writeConcern(WriteConcern writeConcern) Sets the write concern
- 
Constructor Details- 
DBCollectionRemoveOptionspublic DBCollectionRemoveOptions()Construct a new instance
 
- 
- 
Method Details- 
getCollationReturns the collation options- Returns:
- the collation options
- Since server release
- 3.4
 
- 
collationSets the collation- Parameters:
- collation- the collation
- Returns:
- this
- Since server release
- 3.4
 
- 
getWriteConcernThe write concern to use for the insertion. By default the write concern configured for the DBCollection instance will be used.- Returns:
- the write concern, or null if the default will be used.
 
- 
writeConcernSets the write concern- Parameters:
- writeConcern- the write concern
- Returns:
- this
 
- 
getEncoderReturns the encoder- Returns:
- the encoder
 
- 
encoderSets the encoder- Parameters:
- encoder- the encoder
- Returns:
- this
 
 
-