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 final class DeleteManyModel<T> extends WriteModel<T>
Constructor | Description |
---|---|
DeleteManyModelβ(Bson filter) |
Construct a new instance.
|
DeleteManyModelβ(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 DeleteManyModelβ(Bson filter)
filter
- a document describing the query filter, which may not be null.public DeleteManyModelβ(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β()