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.arrayFilters(List<BsonDocument> arrayFilters)
Sets the array filters option
|
UpdateRequest |
UpdateRequest.collation(Collation collation)
Sets the collation options
|
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,
UpdateRequest updateRequest)
Update the documents using the update wire protocol and apply the write concern.
|
void |
AsyncConnection.updateAsync(MongoNamespace namespace,
boolean ordered,
UpdateRequest updateRequest,
SingleResultCallback<WriteConcernResult> callback)
Update the documents using the update wire protocol and apply the write concern asynchronously.
|
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,
boolean retryWrites,
List<UpdateRequest> updates)
Construct an instance.
|
UpdateOperation(MongoNamespace namespace,
boolean ordered,
WriteConcern writeConcern,
List<UpdateRequest> updates)
Deprecated.
|
Copyright © 2018. All rights reserved.