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.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 java.util.List<UpdateRequest> |
UpdateMessage.updates |
private java.util.List<UpdateRequest> |
UpdateCommandMessage.updates |
private java.util.List<UpdateRequest> |
UpdateProtocol.updates |
private java.util.List<UpdateRequest> |
UpdateCommandProtocol.updates |
Modifier and Type | Method and Description |
---|---|
java.util.List<UpdateRequest> |
UpdateCommandMessage.getRequests()
Gets the update requests.
|
java.util.List<UpdateRequest> |
UpdateMessage.getUpdateRequests() |
Modifier and Type | Method and Description |
---|---|
WriteConcernResult |
Connection.update(MongoNamespace namespace,
boolean ordered,
WriteConcern writeConcern,
java.util.List<UpdateRequest> updates)
Update the documents using the update wire protocol and apply the write concern.
|
WriteConcernResult |
DefaultServerConnection.update(MongoNamespace namespace,
boolean ordered,
WriteConcern writeConcern,
java.util.List<UpdateRequest> updates) |
void |
AsyncConnection.updateAsync(MongoNamespace namespace,
boolean ordered,
WriteConcern writeConcern,
java.util.List<UpdateRequest> updates,
SingleResultCallback<WriteConcernResult> callback)
Update the documents using the update wire protocol and apply the write concern asynchronously.
|
void |
DefaultServerConnection.updateAsync(MongoNamespace namespace,
boolean ordered,
WriteConcern writeConcern,
java.util.List<UpdateRequest> updates,
SingleResultCallback<WriteConcernResult> callback) |
BulkWriteResult |
Connection.updateCommand(MongoNamespace namespace,
boolean ordered,
WriteConcern writeConcern,
java.lang.Boolean bypassDocumentValidation,
java.util.List<UpdateRequest> updates)
Update the documents using the update command.
|
BulkWriteResult |
DefaultServerConnection.updateCommand(MongoNamespace namespace,
boolean ordered,
WriteConcern writeConcern,
java.lang.Boolean bypassDocumentValidation,
java.util.List<UpdateRequest> updates) |
BulkWriteResult |
Connection.updateCommand(MongoNamespace namespace,
boolean ordered,
WriteConcern writeConcern,
java.util.List<UpdateRequest> updates)
Deprecated.
|
BulkWriteResult |
DefaultServerConnection.updateCommand(MongoNamespace namespace,
boolean ordered,
WriteConcern writeConcern,
java.util.List<UpdateRequest> updates) |
void |
AsyncConnection.updateCommandAsync(MongoNamespace namespace,
boolean ordered,
WriteConcern writeConcern,
java.lang.Boolean bypassDocumentValidation,
java.util.List<UpdateRequest> updates,
SingleResultCallback<BulkWriteResult> callback)
Update the documents using the update command asynchronously.
|
void |
DefaultServerConnection.updateCommandAsync(MongoNamespace namespace,
boolean ordered,
WriteConcern writeConcern,
java.lang.Boolean bypassDocumentValidation,
java.util.List<UpdateRequest> updates,
SingleResultCallback<BulkWriteResult> callback) |
void |
AsyncConnection.updateCommandAsync(MongoNamespace namespace,
boolean ordered,
WriteConcern writeConcern,
java.util.List<UpdateRequest> updates,
SingleResultCallback<BulkWriteResult> callback)
|
void |
DefaultServerConnection.updateCommandAsync(MongoNamespace namespace,
boolean ordered,
WriteConcern writeConcern,
java.util.List<UpdateRequest> updates,
SingleResultCallback<BulkWriteResult> callback) |
Constructor and Description |
---|
UpdateCommandMessage(MongoNamespace namespace,
boolean ordered,
WriteConcern writeConcern,
java.lang.Boolean bypassDocumentValidation,
MessageSettings settings,
java.util.List<UpdateRequest> updates)
Construct an instance.
|
UpdateCommandProtocol(MongoNamespace namespace,
boolean ordered,
WriteConcern writeConcern,
java.lang.Boolean bypassDocumentValidation,
java.util.List<UpdateRequest> updates)
Construct an instance.
|
UpdateMessage(java.lang.String collectionName,
java.util.List<UpdateRequest> updates,
MessageSettings settings)
Construct an instance.
|
UpdateProtocol(MongoNamespace namespace,
boolean ordered,
WriteConcern writeConcern,
java.util.List<UpdateRequest> updates)
Construct an instance.
|
Modifier and Type | Field and Description |
---|---|
private java.util.List<UpdateRequest> |
UpdateOperation.updates |
Modifier and Type | Method and Description |
---|---|
private UpdateRequest |
UpdateUserOperation.getUpdateRequest() |
Modifier and Type | Method and Description |
---|---|
java.util.List<UpdateRequest> |
UpdateOperation.getUpdateRequests()
Gets the list of update requests.
|
Modifier and Type | Method and Description |
---|---|
(package private) BulkWriteResult |
MixedBulkWriteOperation.Run.BaseRunExecutor.getResult(WriteConcernResult writeConcernResult,
UpdateRequest updateRequest) |
(package private) java.util.List<BulkWriteUpsert> |
MixedBulkWriteOperation.Run.BaseRunExecutor.getUpsertedItems(WriteConcernResult writeConcernResult,
UpdateRequest updateRequest) |
Modifier and Type | Method and Description |
---|---|
(package private) MixedBulkWriteOperation.Run.AsyncRunExecutor |
MixedBulkWriteOperation.Run.getUpdatesRunExecutor(java.util.List<UpdateRequest> updates,
java.lang.Boolean bypassDocumentValidation,
AsyncConnection connection) |
(package private) MixedBulkWriteOperation.Run.RunExecutor |
MixedBulkWriteOperation.Run.getUpdatesRunExecutor(java.util.List<UpdateRequest> updates,
java.lang.Boolean bypassDocumentValidation,
Connection connection) |
Constructor and Description |
---|
UpdateOperation(MongoNamespace namespace,
boolean ordered,
WriteConcern writeConcern,
java.util.List<UpdateRequest> updates)
Construct an instance.
|