@Deprecated public class DropCollectionOperation extends java.lang.Object implements AsyncWriteOperation<java.lang.Void>, WriteOperation<java.lang.Void>
execute method throws MongoCommandFailureException if something goes wrong, but
it will not throw an Exception if the collection does not exist before trying to drop it.| Constructor and Description |
|---|
DropCollectionOperation(MongoNamespace namespace)
Deprecated.
|
DropCollectionOperation(MongoNamespace namespace,
WriteConcern writeConcern)
Deprecated.
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Void |
execute(WriteBinding binding)
Deprecated.
General execute which can return anything of type T
|
void |
executeAsync(AsyncWriteBinding binding,
SingleResultCallback<java.lang.Void> callback)
Deprecated.
General execute which can return anything of type T
|
WriteConcern |
getWriteConcern()
Deprecated.
Gets the write concern.
|
@Deprecated public DropCollectionOperation(MongoNamespace namespace)
DropCollectionOperation(MongoNamespace, WriteConcern)namespace - the database and collection namespace for the operation.public DropCollectionOperation(MongoNamespace namespace, WriteConcern writeConcern)
namespace - the database and collection namespace for the operation.writeConcern - the write concernpublic WriteConcern getWriteConcern()
public java.lang.Void execute(WriteBinding binding)
WriteOperationexecute in interface WriteOperation<java.lang.Void>binding - the binding to execute in the context ofpublic void executeAsync(AsyncWriteBinding binding, SingleResultCallback<java.lang.Void> callback)
AsyncWriteOperationexecuteAsync in interface AsyncWriteOperation<java.lang.Void>binding - the binding to execute in the context ofcallback - the callback to be called when the operation has been executedCopyright © 2010 - 2023 Adobe. All Rights Reserved