public class DeleteOperation extends BaseWriteOperation
Constructor and Description |
---|
DeleteOperation(MongoNamespace namespace,
boolean ordered,
WriteConcern writeConcern,
boolean retryWrites,
java.util.List<DeleteRequest> deleteRequests)
Construct an instance.
|
DeleteOperation(MongoNamespace namespace,
boolean ordered,
WriteConcern writeConcern,
java.util.List<DeleteRequest> deleteRequests)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<DeleteRequest> |
getDeleteRequests()
Gets the list of remove requests.
|
protected WriteRequest.Type |
getType() |
protected java.util.List<? extends WriteRequest> |
getWriteRequests() |
bypassDocumentValidation, execute, executeAsync, getBypassDocumentValidation, getNamespace, getWriteConcern, isOrdered
@Deprecated public DeleteOperation(MongoNamespace namespace, boolean ordered, WriteConcern writeConcern, java.util.List<DeleteRequest> deleteRequests)
DeleteOperation(MongoNamespace, boolean, WriteConcern, boolean, List)
insteadnamespace
- the database and collection namespace for the operation.ordered
- whether the writes are ordered.writeConcern
- the write concern for the operation.deleteRequests
- the remove requests.public DeleteOperation(MongoNamespace namespace, boolean ordered, WriteConcern writeConcern, boolean retryWrites, java.util.List<DeleteRequest> deleteRequests)
namespace
- the database and collection namespace for the operation.ordered
- whether the writes are ordered.writeConcern
- the write concern for the operation.retryWrites
- if writes should be retried if they fail due to a network error.deleteRequests
- the remove requests.public java.util.List<DeleteRequest> getDeleteRequests()
protected java.util.List<? extends WriteRequest> getWriteRequests()
getWriteRequests
in class BaseWriteOperation
protected WriteRequest.Type getType()
getType
in class BaseWriteOperation