public class BulkUpdateRequestBuilder extends Object
Modifier and Type | Method and Description |
---|---|
void |
replaceOne(DBObject document)
Adds an update request to replace one matching document to the bulk operation.
|
void |
update(DBObject update)
Adds an update request to update all matching documents to the bulk operation.
|
void |
updateOne(DBObject update)
Adds an update request to update one matching document to the bulk operation.
|
public void replaceOne(DBObject document)
document
- the replacement documentpublic void update(DBObject update)
update
- the update criteriapublic void updateOne(DBObject update)
update
- the update criteria