| Package | Description |
|---|---|
| com.mongodb |
Main package with core files.
|
| 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(WriteConcern writeConcern)
Set the write concern to use for the insert.
|
| Modifier and Type | Method and Description |
|---|---|
WriteResult |
DBCollection.insert(List<DBObject> documents,
InsertOptions insertOptions)
Insert documents into a collection.
|