Package | Description |
---|---|
com.mongodb.async.client |
This packages contains classes for the new async client
|
com.mongodb.client |
This package contains client interfaces
|
com.mongodb.client.model |
This package contains models and options that help describe MongoCollection operations
|
Modifier and Type | Method and Description |
---|---|
void |
MongoCollection.replaceOne(Bson filter,
TDocument replacement,
UpdateOptions options,
SingleResultCallback<UpdateResult> callback)
Replace a document in the collection according to the specified arguments.
|
void |
MongoCollection.updateMany(Bson filter,
Bson update,
UpdateOptions options,
SingleResultCallback<UpdateResult> callback)
Update all documents in the collection according to the specified arguments.
|
void |
MongoCollection.updateOne(Bson filter,
Bson update,
UpdateOptions options,
SingleResultCallback<UpdateResult> callback)
Update a single document in the collection according to the specified arguments.
|
Modifier and Type | Method and Description |
---|---|
UpdateResult |
MongoCollection.replaceOne(Bson filter,
TDocument replacement,
UpdateOptions updateOptions)
Replace a document in the collection according to the specified arguments.
|
UpdateResult |
MongoCollection.updateMany(Bson filter,
Bson update,
UpdateOptions updateOptions)
Update all documents in the collection according to the specified arguments.
|
UpdateResult |
MongoCollection.updateOne(Bson filter,
Bson update,
UpdateOptions updateOptions)
Update a single document in the collection according to the specified arguments.
|
Modifier and Type | Method and Description |
---|---|
UpdateOptions |
UpdateOptions.bypassDocumentValidation(Boolean bypassDocumentValidation)
Sets the bypass document level validation flag.
|
UpdateOptions |
UpdateManyModel.getOptions()
Gets the options to apply.
|
UpdateOptions |
UpdateOneModel.getOptions()
Gets the options to apply.
|
UpdateOptions |
ReplaceOneModel.getOptions()
Gets the options to apply.
|
UpdateOptions |
UpdateOptions.upsert(boolean upsert)
Set to true if a new document should be inserted if there are no matches to the query filter.
|
Constructor and Description |
---|
ReplaceOneModel(Bson filter,
T replacement,
UpdateOptions options)
Construct a new instance.
|
UpdateManyModel(Bson filter,
Bson update,
UpdateOptions options)
Construct a new instance.
|
UpdateOneModel(Bson filter,
Bson update,
UpdateOptions options)
Construct a new instance.
|
Copyright © 2016. All Rights Reserved.