public class UpdateOperation extends BaseWriteOperation
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.
|
Modifier and Type | Method and Description |
---|---|
protected WriteRequest.Type |
getType() |
java.util.List<UpdateRequest> |
getUpdateRequests()
Gets the list of update requests.
|
protected java.util.List<? extends WriteRequest> |
getWriteRequests() |
bypassDocumentValidation, execute, executeAsync, getBypassDocumentValidation, getNamespace, getWriteConcern, isOrdered
@Deprecated public UpdateOperation(MongoNamespace namespace, boolean ordered, WriteConcern writeConcern, java.util.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, java.util.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 java.util.List<UpdateRequest> getUpdateRequests()
protected java.util.List<? extends WriteRequest> getWriteRequests()
getWriteRequests
in class BaseWriteOperation
protected WriteRequest.Type getType()
getType
in class BaseWriteOperation