public class BulkUpdateRequestBuilder
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
BulkUpdateRequestBuilder |
collation(Collation collation)
Sets the collation
|
java.util.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 java.util.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 criteriaCopyright © 2010 - 2020 Adobe. All Rights Reserved