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