public class BulkUpdateRequestBuilder extends Object
Modifier and Type | Method | Description |
---|---|---|
BulkUpdateRequestBuilder |
collationβ(Collation collation) |
Sets the collation
|
List<? extends DBObject> |
getArrayFiltersβ() |
Gets the array filters to apply to the update operation
|
Collation |
getCollationβ() |
Returns the collation
|
void |
replaceOneβ(DBObject document) |
Adds a request to replace one document in the collection that matches the query with which this builder was created.
|
void |
updateβ(DBObject update) |
Adds a request to update all documents in the collection that match the query with which this builder was created.
|
void |
updateOneβ(DBObject update) |
Adds a request to update one document in the collection that matches the query with which this builder was created.
|
@Nullable public Collation getCollationβ()
@Nullable public BulkUpdateRequestBuilder collationβ(Collation collation)
collation
- the collation@Nullable public List<? extends DBObject> getArrayFiltersβ()
public void replaceOneβ(DBObject document)
document
- the replacement document, which must be structured just as a document you would insert. It can not contain any
update operators.public void updateβ(DBObject update)
update
- the update criteriapublic void updateOneβ(DBObject update)
update
- the update criteria