AsyncWriteOperation<WriteConcernResult>
, WriteOperation<WriteConcernResult>
public class UpdateOperation extends BaseWriteOperation
Constructor | 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.
|
Modifier and Type | Method | Description |
---|---|---|
protected WriteRequest.Type |
getTypeβ() |
|
List<UpdateRequest> |
getUpdateRequestsβ() |
Gets the list of update requests.
|
protected List<? extends WriteRequest> |
getWriteRequestsβ() |
bypassDocumentValidation, execute, executeAsync, getBypassDocumentValidation, getNamespace, getWriteConcern, isOrdered
@Deprecated public UpdateOperationβ(MongoNamespace namespace, boolean ordered, WriteConcern writeConcern, List<UpdateRequest> updates)
UpdateOperation(MongoNamespace, boolean, WriteConcern, boolean, List)
insteadnamespace
- the database and collection namespace for the operation.ordered
- whether the updates are ordered.writeConcern
- the write concern for the operation.updates
- the update requests.public UpdateOperationβ(MongoNamespace namespace, boolean ordered, WriteConcern writeConcern, boolean retryWrites, List<UpdateRequest> updates)
namespace
- the database and collection namespace for the operation.ordered
- whether the updates are ordered.writeConcern
- the write concern for the operation.retryWrites
- if writes should be retried if they fail due to a network error.updates
- the update requests.public List<UpdateRequest> getUpdateRequestsβ()
protected List<? extends WriteRequest> getWriteRequestsβ()
getWriteRequests
in class BaseWriteOperation
protected WriteRequest.Type getTypeβ()
getType
in class BaseWriteOperation