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(java.util.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 | Field and Description |
---|---|
private UpdateRequest |
UpdateProtocol.updateRequest |
private UpdateRequest |
UpdateMessage.updateRequest |
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.
|
WriteConcernResult |
DefaultServerConnection.update(MongoNamespace namespace,
boolean ordered,
UpdateRequest updateRequest) |
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.
|
void |
DefaultServerConnection.updateAsync(MongoNamespace namespace,
boolean ordered,
UpdateRequest updateRequest,
SingleResultCallback<WriteConcernResult> callback) |
Constructor and Description |
---|
UpdateMessage(java.lang.String collectionName,
UpdateRequest updateRequest,
MessageSettings settings) |
UpdateProtocol(MongoNamespace namespace,
boolean ordered,
UpdateRequest updateRequest) |
Modifier and Type | Field and Description |
---|---|
private java.util.List<UpdateRequest> |
UpdateOperation.updates |
Modifier and Type | Method and Description |
---|---|
java.util.List<UpdateRequest> |
UpdateOperation.getUpdateRequests()
Gets the list of update requests.
|
Constructor and Description |
---|
UpdateOperation(MongoNamespace namespace,
boolean ordered,
WriteConcern writeConcern,
boolean retryWrites,
java.util.List<UpdateRequest> updates)
Construct an instance.
|
UpdateOperation(MongoNamespace namespace,
boolean ordered,
WriteConcern writeConcern,
java.util.List<UpdateRequest> updates)
Deprecated.
|