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 and Description |
---|
DeleteOneModel(Bson filter)
Construct a new instance.
|
DeleteOneModel(Bson filter,
DeleteOptions options)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
Bson |
getFilter()
Gets the query filter.
|
DeleteOptions |
getOptions()
Gets the options to apply.
|
java.lang.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()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2010 - 2020 Adobe. All Rights Reserved