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 modelspublic class DeleteOneModel<T> extends WriteModel<T>
| Constructor | Description |
|---|---|
DeleteOneModel(Bson filter) |
Construct a new instance.
|
DeleteOneModel(Bson filter,
DeleteOptions options) |
Construct a new instance.
|
| Modifier and Type | Method | Description |
|---|---|---|
Bson |
getFilter() |
Gets the query filter.
|
DeleteOptions |
getOptions() |
Gets the options to apply.
|
String |
toString() |
public DeleteOneModel(Bson filter)
filter - a document describing the query filter, which may not be null.public DeleteOneModel(Bson filter, DeleteOptions options)
filter - a document describing the query filter, which may not be null.options - the options to applypublic Bson getFilter()
public DeleteOptions getOptions()