Package | Description |
---|---|
com.mongodb |
Modifier and Type | Method and Description |
---|---|
InsertOptions |
InsertOptions.bypassDocumentValidation(Boolean bypassDocumentValidation)
Sets whether to bypass document validation.
|
InsertOptions |
InsertOptions.continueOnError(boolean continueOnError)
Set whether documents will continue to be inserted after a failure to insert one.
|
InsertOptions |
InsertOptions.dbEncoder(DBEncoder dbEncoder)
Set the encoder to use for the documents.
|
InsertOptions |
InsertOptions.writeConcern(com.mongodb.WriteConcern writeConcern)
Set the write concern to use for the insert.
|
Modifier and Type | Method and Description |
---|---|
WriteResult |
DBCollection.insert(List<? extends DBObject> documents,
InsertOptions insertOptions)
Insert documents into a collection.
|
Copyright © 2017. All rights reserved.