@Deprecated public abstract class BaseWriteOperation extends java.lang.Object implements AsyncWriteOperation<WriteConcernResult>, WriteOperation<WriteConcernResult>
| Constructor and Description |
|---|
BaseWriteOperation(MongoNamespace namespace,
boolean ordered,
WriteConcern writeConcern)
Deprecated.
|
BaseWriteOperation(MongoNamespace namespace,
boolean ordered,
WriteConcern writeConcern,
boolean retryWrites)
Deprecated.
Construct an instance
|
| Modifier and Type | Method and Description |
|---|---|
BaseWriteOperation |
bypassDocumentValidation(java.lang.Boolean bypassDocumentValidation)
Deprecated.
Sets the bypass document level validation flag.
|
WriteConcernResult |
execute(WriteBinding binding)
Deprecated.
General execute which can return anything of type T
|
void |
executeAsync(AsyncWriteBinding binding,
SingleResultCallback<WriteConcernResult> callback)
Deprecated.
General execute which can return anything of type T
|
java.lang.Boolean |
getBypassDocumentValidation()
Deprecated.
Gets the the bypass document level validation flag
|
MongoNamespace |
getNamespace()
Deprecated.
Gets the namespace of the collection to write to.
|
WriteConcern |
getWriteConcern()
Deprecated.
Gets the write concern to apply
|
boolean |
isOrdered()
Deprecated.
Gets whether the writes are ordered.
|
@Deprecated public BaseWriteOperation(MongoNamespace namespace, boolean ordered, WriteConcern writeConcern)
BaseWriteOperation(MongoNamespace, boolean, WriteConcern, boolean) insteadnamespace - the database and collection namespace for the operation.ordered - whether the writes are ordered.writeConcern - the write concern for the operation.public BaseWriteOperation(MongoNamespace namespace, boolean ordered, WriteConcern writeConcern, boolean retryWrites)
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.public MongoNamespace getNamespace()
public WriteConcern getWriteConcern()
public boolean isOrdered()
public java.lang.Boolean getBypassDocumentValidation()
public BaseWriteOperation bypassDocumentValidation(java.lang.Boolean bypassDocumentValidation)
bypassDocumentValidation - If true, allows the write to opt-out of document level validation.public WriteConcernResult execute(WriteBinding binding)
WriteOperationexecute in interface WriteOperation<WriteConcernResult>binding - the binding to execute in the context ofpublic void executeAsync(AsyncWriteBinding binding, SingleResultCallback<WriteConcernResult> callback)
AsyncWriteOperationexecuteAsync in interface AsyncWriteOperation<WriteConcernResult>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