Package | Description |
---|---|
com.mongodb |
The core mongodb package
|
com.mongodb.async.client |
This packages contains classes for the new async client
|
com.mongodb.client |
This package contains classes for the new client api for MongoDatabase and MongoCollection
|
com.mongodb.client.model |
This package contains models and options that help describe MongoCollection operations
|
Modifier and Type | Method and Description |
---|---|
UpdateResult |
MongoCollectionImpl.replaceOne(Bson filter,
TDocument replacement,
UpdateOptions updateOptions) |
private UpdateResult |
MongoCollectionImpl.update(Bson filter,
Bson update,
UpdateOptions updateOptions,
boolean multi) |
UpdateResult |
MongoCollectionImpl.updateMany(Bson filter,
Bson update,
UpdateOptions updateOptions) |
UpdateResult |
MongoCollectionImpl.updateOne(Bson filter,
Bson update,
UpdateOptions updateOptions) |
Modifier and Type | Method and Description |
---|---|
void |
MongoCollectionImpl.replaceOne(Bson filter,
TDocument replacement,
UpdateOptions options,
SingleResultCallback<UpdateResult> callback) |
void |
MongoCollection.replaceOne(Bson filter,
TDocument replacement,
UpdateOptions options,
SingleResultCallback<UpdateResult> callback)
Replace a document in the collection according to the specified arguments.
|
private void |
MongoCollectionImpl.update(Bson filter,
Bson update,
UpdateOptions options,
boolean multi,
SingleResultCallback<UpdateResult> callback) |
void |
MongoCollectionImpl.updateMany(Bson filter,
Bson update,
UpdateOptions options,
SingleResultCallback<UpdateResult> callback) |
void |
MongoCollection.updateMany(Bson filter,
Bson update,
UpdateOptions options,
SingleResultCallback<UpdateResult> callback)
Update all documents in the collection according to the specified arguments.
|
void |
MongoCollectionImpl.updateOne(Bson filter,
Bson update,
UpdateOptions options,
SingleResultCallback<UpdateResult> callback) |
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 | Field and Description |
---|---|
private UpdateOptions |
ReplaceOneModel.options |
private UpdateOptions |
UpdateManyModel.options |
private UpdateOptions |
UpdateOneModel.options |
Modifier and Type | Method and Description |
---|---|
UpdateOptions |
UpdateOptions.bypassDocumentValidation(java.lang.Boolean bypassDocumentValidation)
Sets the bypass document level validation flag.
|
UpdateOptions |
UpdateOptions.collation(Collation collation)
Sets the collation options
|
UpdateOptions |
ReplaceOneModel.getOptions()
Gets the options to apply.
|
UpdateOptions |
UpdateManyModel.getOptions()
Gets the options to apply.
|
UpdateOptions |
UpdateOneModel.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.
|