Package | Description |
---|---|
com.mongodb | |
com.mongodb.client.model |
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.bypassDocumentValidation(Boolean bypassDocumentValidation)
Sets the bypass document level validation flag.
|
DBCollectionUpdateOptions |
DBCollectionUpdateOptions.collation(com.mongodb.client.model.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(com.mongodb.WriteConcern writeConcern)
Sets the write concern
|
Copyright © 2017. All rights reserved.