Package | Description |
---|---|
com.mongodb |
The core mongodb package
|
com.mongodb.client.model |
This package contains models and options that help describe MongoCollection operations
|
Modifier and Type | Method and Description |
---|---|
WriteResult |
DBCollection.update(DBObject query,
DBObject update,
DBCollectionUpdateOptions options)
Modify an existing document or documents in collection.
|
Modifier and Type | Method and Description |
---|---|
DBCollectionUpdateOptions |
DBCollectionUpdateOptions.arrayFilters(List<? extends DBObject> arrayFilters)
Sets the array filters option
|
DBCollectionUpdateOptions |
DBCollectionUpdateOptions.bypassDocumentValidation(Boolean bypassDocumentValidation)
Sets the bypass document level validation flag.
|
DBCollectionUpdateOptions |
DBCollectionUpdateOptions.collation(Collation collation)
Sets the collation
|
DBCollectionUpdateOptions |
DBCollectionUpdateOptions.encoder(DBEncoder encoder)
Sets the encoder
|
DBCollectionUpdateOptions |
DBCollectionUpdateOptions.multi(boolean multi)
Sets whether all documents matching the query filter will be removed.
|
DBCollectionUpdateOptions |
DBCollectionUpdateOptions.upsert(boolean isUpsert)
Set to true if a new document should be inserted if there are no matches to the query filter.
|
DBCollectionUpdateOptions |
DBCollectionUpdateOptions.writeConcern(WriteConcern writeConcern)
Sets the write concern
|
Copyright © 2018. All rights reserved.