Package com.mongodb.client.model
Class DeleteOneModel<T>
- java.lang.Object
-
- com.mongodb.client.model.WriteModel<T>
-
- com.mongodb.client.model.DeleteOneModel<T>
-
- Type Parameters:
T
- the type of document to update. In practice this doesn't actually apply to updates but is here for consistency with the other write models
@Deprecated(since="2021-05-27") public class DeleteOneModel<T> extends WriteModel<T>
Deprecated.Usage of this API is not supported in AEM as a Cloud Service.A model describing the removal of at most one document matching the query filter.- Since:
- 3.0
-
-
Constructor Summary
Constructors Constructor Description DeleteOneModel(Bson filter)
Deprecated.Construct a new instance.DeleteOneModel(Bson filter, DeleteOptions options)
Deprecated.Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Bson
getFilter()
Deprecated.Gets the query filter.DeleteOptions
getOptions()
Deprecated.Gets the options to apply.String
toString()
Deprecated.
-
-
-
Constructor Detail
-
DeleteOneModel
public DeleteOneModel(Bson filter)
Deprecated.Construct a new instance.- Parameters:
filter
- a document describing the query filter, which may not be null.
-
DeleteOneModel
public DeleteOneModel(Bson filter, DeleteOptions options)
Deprecated.Construct a new instance.- Parameters:
filter
- a document describing the query filter, which may not be null.options
- the options to apply- Since:
- 3.4
-
-
Method Detail
-
getFilter
public Bson getFilter()
Deprecated.Gets the query filter.- Returns:
- the query filter
-
getOptions
public DeleteOptions getOptions()
Deprecated.Gets the options to apply.- Returns:
- the options
- Since:
- 3.4
-
-