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.result |
This package contains classes representing operation results
|
Modifier and Type | Method and Description |
---|---|
private UpdateResult |
MongoCollectionImpl.executeReplaceOne(ClientSession clientSession,
Bson filter,
TDocument replacement,
UpdateOptions updateOptions) |
private UpdateResult |
MongoCollectionImpl.executeUpdate(ClientSession clientSession,
Bson filter,
Bson update,
UpdateOptions updateOptions,
boolean multi) |
UpdateResult |
MongoCollectionImpl.replaceOne(Bson filter,
TDocument replacement) |
UpdateResult |
MongoCollectionImpl.replaceOne(Bson filter,
TDocument replacement,
UpdateOptions updateOptions) |
UpdateResult |
MongoCollectionImpl.replaceOne(ClientSession clientSession,
Bson filter,
TDocument replacement) |
UpdateResult |
MongoCollectionImpl.replaceOne(ClientSession clientSession,
Bson filter,
TDocument replacement,
UpdateOptions updateOptions) |
private UpdateResult |
MongoCollectionImpl.toUpdateResult(BulkWriteResult result) |
UpdateResult |
MongoCollectionImpl.updateMany(Bson filter,
Bson update) |
UpdateResult |
MongoCollectionImpl.updateMany(Bson filter,
Bson update,
UpdateOptions updateOptions) |
UpdateResult |
MongoCollectionImpl.updateMany(ClientSession clientSession,
Bson filter,
Bson update) |
UpdateResult |
MongoCollectionImpl.updateMany(ClientSession clientSession,
Bson filter,
Bson update,
UpdateOptions updateOptions) |
UpdateResult |
MongoCollectionImpl.updateOne(Bson filter,
Bson update) |
UpdateResult |
MongoCollectionImpl.updateOne(Bson filter,
Bson update,
UpdateOptions updateOptions) |
UpdateResult |
MongoCollectionImpl.updateOne(ClientSession clientSession,
Bson filter,
Bson update) |
UpdateResult |
MongoCollectionImpl.updateOne(ClientSession clientSession,
Bson filter,
Bson update,
UpdateOptions updateOptions) |
Modifier and Type | Method and Description |
---|---|
private UpdateResult |
MongoCollectionImpl.toUpdateResult(BulkWriteResult result) |
Modifier and Type | Method and Description |
---|---|
private void |
MongoCollectionImpl.executeReplaceOne(ClientSession clientSession,
Bson filter,
TDocument replacement,
UpdateOptions options,
SingleResultCallback<UpdateResult> callback) |
private void |
MongoCollectionImpl.executeUpdate(ClientSession clientSession,
Bson filter,
Bson update,
UpdateOptions options,
boolean multi,
SingleResultCallback<UpdateResult> callback) |
void |
MongoCollection.replaceOne(Bson filter,
TDocument replacement,
SingleResultCallback<UpdateResult> callback)
Replace a document in the collection according to the specified arguments.
|
void |
MongoCollectionImpl.replaceOne(Bson filter,
TDocument replacement,
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.
|
void |
MongoCollectionImpl.replaceOne(Bson filter,
TDocument replacement,
UpdateOptions options,
SingleResultCallback<UpdateResult> callback) |
void |
MongoCollection.replaceOne(ClientSession clientSession,
Bson filter,
TDocument replacement,
SingleResultCallback<UpdateResult> callback)
Replace a document in the collection according to the specified arguments.
|
void |
MongoCollectionImpl.replaceOne(ClientSession clientSession,
Bson filter,
TDocument replacement,
SingleResultCallback<UpdateResult> callback) |
void |
MongoCollection.replaceOne(ClientSession clientSession,
Bson filter,
TDocument replacement,
UpdateOptions options,
SingleResultCallback<UpdateResult> callback)
Replace a document in the collection according to the specified arguments.
|
void |
MongoCollectionImpl.replaceOne(ClientSession clientSession,
Bson filter,
TDocument replacement,
UpdateOptions options,
SingleResultCallback<UpdateResult> callback) |
void |
MongoCollection.updateMany(Bson filter,
Bson update,
SingleResultCallback<UpdateResult> callback)
Update all documents in the collection according to the specified arguments.
|
void |
MongoCollectionImpl.updateMany(Bson filter,
Bson update,
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.updateMany(Bson filter,
Bson update,
UpdateOptions options,
SingleResultCallback<UpdateResult> callback) |
void |
MongoCollection.updateMany(ClientSession clientSession,
Bson filter,
Bson update,
SingleResultCallback<UpdateResult> callback)
Update all documents in the collection according to the specified arguments.
|
void |
MongoCollectionImpl.updateMany(ClientSession clientSession,
Bson filter,
Bson update,
SingleResultCallback<UpdateResult> callback) |
void |
MongoCollection.updateMany(ClientSession clientSession,
Bson filter,
Bson update,
UpdateOptions options,
SingleResultCallback<UpdateResult> callback)
Update all documents in the collection according to the specified arguments.
|
void |
MongoCollectionImpl.updateMany(ClientSession clientSession,
Bson filter,
Bson update,
UpdateOptions options,
SingleResultCallback<UpdateResult> callback) |
void |
MongoCollection.updateOne(Bson filter,
Bson update,
SingleResultCallback<UpdateResult> callback)
Update a single document in the collection according to the specified arguments.
|
void |
MongoCollectionImpl.updateOne(Bson filter,
Bson update,
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.
|
void |
MongoCollectionImpl.updateOne(Bson filter,
Bson update,
UpdateOptions options,
SingleResultCallback<UpdateResult> callback) |
void |
MongoCollection.updateOne(ClientSession clientSession,
Bson filter,
Bson update,
SingleResultCallback<UpdateResult> callback)
Update a single document in the collection according to the specified arguments.
|
void |
MongoCollectionImpl.updateOne(ClientSession clientSession,
Bson filter,
Bson update,
SingleResultCallback<UpdateResult> callback) |
void |
MongoCollection.updateOne(ClientSession clientSession,
Bson filter,
Bson update,
UpdateOptions options,
SingleResultCallback<UpdateResult> callback)
Update a single document in the collection according to the specified arguments.
|
void |
MongoCollectionImpl.updateOne(ClientSession clientSession,
Bson filter,
Bson update,
UpdateOptions options,
SingleResultCallback<UpdateResult> callback) |
Modifier and Type | Method and Description |
---|---|
UpdateResult |
MongoCollection.replaceOne(Bson filter,
TDocument replacement)
Replace a document in the collection according to the specified arguments.
|
UpdateResult |
MongoCollection.replaceOne(Bson filter,
TDocument replacement,
UpdateOptions updateOptions)
Replace a document in the collection according to the specified arguments.
|
UpdateResult |
MongoCollection.replaceOne(ClientSession clientSession,
Bson filter,
TDocument replacement)
Replace a document in the collection according to the specified arguments.
|
UpdateResult |
MongoCollection.replaceOne(ClientSession clientSession,
Bson filter,
TDocument replacement,
UpdateOptions updateOptions)
Replace a document in the collection according to the specified arguments.
|
UpdateResult |
MongoCollection.updateMany(Bson filter,
Bson update)
Update all documents 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.updateMany(ClientSession clientSession,
Bson filter,
Bson update)
Update all documents in the collection according to the specified arguments.
|
UpdateResult |
MongoCollection.updateMany(ClientSession clientSession,
Bson filter,
Bson update,
UpdateOptions updateOptions)
Update all documents in the collection according to the specified arguments.
|
UpdateResult |
MongoCollection.updateOne(Bson filter,
Bson update)
Update a single document 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.
|
UpdateResult |
MongoCollection.updateOne(ClientSession clientSession,
Bson filter,
Bson update)
Update a single document in the collection according to the specified arguments.
|
UpdateResult |
MongoCollection.updateOne(ClientSession clientSession,
Bson filter,
Bson update,
UpdateOptions updateOptions)
Update a single document in the collection according to the specified arguments.
|
Modifier and Type | Class and Description |
---|---|
private static class |
UpdateResult.AcknowledgedUpdateResult |
private static class |
UpdateResult.UnacknowledgedUpdateResult |
Modifier and Type | Method and Description |
---|---|
static UpdateResult |
UpdateResult.acknowledged(long matchedCount,
java.lang.Long modifiedCount,
BsonValue upsertedId)
Create an acknowledged UpdateResult
|
static UpdateResult |
UpdateResult.unacknowledged()
Create an unacknowledged UpdateResult
|