Package io.vertx.mongo.client.model
Class DeleteOneModel<T>
- java.lang.Object
-
- io.vertx.mongo.client.model.WriteModel<T>
-
- io.vertx.mongo.client.model.DeleteOneModel<T>
-
public class DeleteOneModel<T> extends WriteModel<T>
-
-
Constructor Summary
Constructors Constructor Description DeleteOneModel(JsonObject filter)
Construct a new instance.DeleteOneModel(JsonObject filter, DeleteOptions options)
Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JsonObject
getFilter()
Gets the query filter.DeleteOptions
getOptions()
Gets the options to apply.
-
-
-
Constructor Detail
-
DeleteOneModel
public DeleteOneModel(JsonObject filter)
Construct a new instance.- Parameters:
filter
- a document describing the query filter, which may not be null.
-
DeleteOneModel
public DeleteOneModel(JsonObject filter, DeleteOptions options)
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
- Since server release
- 3.4
-
-
Method Detail
-
getFilter
public JsonObject getFilter()
Gets the query filter.- Returns:
- the query filter
-
getOptions
public DeleteOptions getOptions()
Gets the options to apply.- Returns:
- the options
- Since:
- 3.4
-
-