Package com.mongodb.client.model
Class DBCollectionRemoveOptions
- java.lang.Object
-
- com.mongodb.client.model.DBCollectionRemoveOptions
-
@Deprecated(since="2021-05-27") public final class DBCollectionRemoveOptions extends Object
Deprecated.Usage of this API is not supported in AEM as a Cloud Service.The options to apply when removing documents from the DBCollection- Since:
- 3.4
-
-
Constructor Summary
Constructors Constructor Description DBCollectionRemoveOptions()
Deprecated.Construct a new instance
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description DBCollectionRemoveOptions
collation(Collation collation)
Deprecated.Sets the collationDBCollectionRemoveOptions
encoder(DBEncoder encoder)
Deprecated.Sets the encoderCollation
getCollation()
Deprecated.Returns the collation optionsDBEncoder
getEncoder()
Deprecated.Returns the encoderWriteConcern
getWriteConcern()
Deprecated.The write concern to use for the insertion.DBCollectionRemoveOptions
writeConcern(WriteConcern writeConcern)
Deprecated.Sets the write concern
-
-
-
Method Detail
-
getCollation
@Nullable public Collation getCollation()
Deprecated.Returns the collation options- Returns:
- the collation options
-
collation
public DBCollectionRemoveOptions collation(@Nullable Collation collation)
Deprecated.Sets the collation- Parameters:
collation
- the collation- Returns:
- this
-
getWriteConcern
@Nullable public WriteConcern getWriteConcern()
Deprecated.The 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.
-
writeConcern
public DBCollectionRemoveOptions writeConcern(@Nullable WriteConcern writeConcern)
Deprecated.Sets the write concern- Parameters:
writeConcern
- the write concern- Returns:
- this
-
getEncoder
@Nullable public DBEncoder getEncoder()
Deprecated.Returns the encoder- Returns:
- the encoder
-
encoder
public DBCollectionRemoveOptions encoder(@Nullable DBEncoder encoder)
Deprecated.Sets the encoder- Parameters:
encoder
- the encoder- Returns:
- this
-
-