Package com.mongodb.operation
Class DeleteOperation
- java.lang.Object
-
- com.mongodb.operation.BaseWriteOperation
-
- com.mongodb.operation.DeleteOperation
-
- All Implemented Interfaces:
AsyncWriteOperation<WriteConcernResult>
,WriteOperation<WriteConcernResult>
Deprecated.
@Deprecated public class DeleteOperation extends BaseWriteOperation
An operation that deletes one or more documents from a collection.- Since:
- 3.0
-
-
Constructor Summary
Constructors Constructor Description DeleteOperation(MongoNamespace namespace, boolean ordered, WriteConcern writeConcern, boolean retryWrites, List<DeleteRequest> deleteRequests)
Deprecated.Construct an instance.DeleteOperation(MongoNamespace namespace, boolean ordered, WriteConcern writeConcern, List<DeleteRequest> deleteRequests)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description List<DeleteRequest>
getDeleteRequests()
Deprecated.Gets the list of remove requests.protected WriteRequest.Type
getType()
Deprecated.protected List<? extends WriteRequest>
getWriteRequests()
Deprecated.-
Methods inherited from class com.mongodb.operation.BaseWriteOperation
bypassDocumentValidation, execute, executeAsync, getBypassDocumentValidation, getNamespace, getWriteConcern, isOrdered
-
-
-
-
Constructor Detail
-
DeleteOperation
@Deprecated public DeleteOperation(MongoNamespace namespace, boolean ordered, WriteConcern writeConcern, List<DeleteRequest> deleteRequests)
Deprecated. useDeleteOperation(MongoNamespace, boolean, WriteConcern, boolean, List)
insteadConstruct an instance.- Parameters:
namespace
- 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.
-
DeleteOperation
public DeleteOperation(MongoNamespace namespace, boolean ordered, WriteConcern writeConcern, boolean retryWrites, List<DeleteRequest> deleteRequests)
Deprecated.Construct an instance.- Parameters:
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.- Since:
- 3.6
-
-
Method Detail
-
getDeleteRequests
public List<DeleteRequest> getDeleteRequests()
Deprecated.Gets the list of remove requests.- Returns:
- the remove requests
-
getWriteRequests
protected List<? extends WriteRequest> getWriteRequests()
Deprecated.- Specified by:
getWriteRequests
in classBaseWriteOperation
-
getType
protected WriteRequest.Type getType()
Deprecated.- Specified by:
getType
in classBaseWriteOperation
-
-