Package | Description |
---|---|
com.mongodb.bulk |
Contains classes for representing the result of a bulk write operation.
|
com.mongodb.connection |
Contains classes that manage connecting to MongoDB servers.
|
com.mongodb.operation |
The core of the MongoDB driver works via operations, using the command pattern.
|
Modifier and Type | Method and Description |
---|---|
UpdateRequest |
UpdateRequest.multi(boolean isMulti)
Sets whether this will update all documents matching the query filter.
|
UpdateRequest |
UpdateRequest.upsert(boolean isUpsert)
Sets whether this update will insert a new document if no documents match the filter.
|
Modifier and Type | Method and Description |
---|---|
WriteConcernResult |
Connection.update(MongoNamespace namespace,
boolean ordered,
WriteConcern writeConcern,
List<UpdateRequest> updates)
Update the documents using the update wire protocol and apply the write concern.
|
void |
AsyncConnection.updateAsync(MongoNamespace namespace,
boolean ordered,
WriteConcern writeConcern,
List<UpdateRequest> updates,
SingleResultCallback<WriteConcernResult> callback)
Update the documents using the update wire protocol and apply the write concern asynchronously.
|
BulkWriteResult |
Connection.updateCommand(MongoNamespace namespace,
boolean ordered,
WriteConcern writeConcern,
Boolean bypassDocumentValidation,
List<UpdateRequest> updates)
Update the documents using the update command.
|
BulkWriteResult |
Connection.updateCommand(MongoNamespace namespace,
boolean ordered,
WriteConcern writeConcern,
List<UpdateRequest> updates)
Deprecated.
|
void |
AsyncConnection.updateCommandAsync(MongoNamespace namespace,
boolean ordered,
WriteConcern writeConcern,
Boolean bypassDocumentValidation,
List<UpdateRequest> updates,
SingleResultCallback<BulkWriteResult> callback)
Update the documents using the update command asynchronously.
|
void |
AsyncConnection.updateCommandAsync(MongoNamespace namespace,
boolean ordered,
WriteConcern writeConcern,
List<UpdateRequest> updates,
SingleResultCallback<BulkWriteResult> callback)
|
Modifier and Type | Method and Description |
---|---|
List<UpdateRequest> |
UpdateOperation.getUpdateRequests()
Gets the list of update requests.
|
Constructor and Description |
---|
UpdateOperation(MongoNamespace namespace,
boolean ordered,
WriteConcern writeConcern,
List<UpdateRequest> updates)
Construct an instance.
|
Copyright © 2016. All Rights Reserved.