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