Modifier and Type | Method and Description |
---|---|
UpdateOptions |
UpdateOptions.setArrayFilters(io.vertx.core.json.JsonArray arrayFilters)
Set the arrayFilters option
|
UpdateOptions |
UpdateOptions.setMulti(boolean multi)
Set whether multi is enabled
|
UpdateOptions |
UpdateOptions.setReturningNewDocument(boolean returnNewDocument)
Set whether new document property is enabled.
|
UpdateOptions |
UpdateOptions.setUpsert(boolean upsert)
Set whether upsert is enabled
|
UpdateOptions |
UpdateOptions.setWriteOption(WriteOption writeOption)
Set the write option
|
Modifier and Type | Method and Description |
---|---|
io.vertx.core.Future<io.vertx.core.json.JsonObject> |
MongoClient.findOneAndReplaceWithOptions(String collection,
io.vertx.core.json.JsonObject query,
io.vertx.core.json.JsonObject replace,
FindOptions findOptions,
UpdateOptions updateOptions)
Like
MongoClient.findOneAndReplaceWithOptions(String, JsonObject, JsonObject, FindOptions, UpdateOptions, Handler) but returns a Future of the asynchronous result |
MongoClient |
MongoClient.findOneAndReplaceWithOptions(String collection,
io.vertx.core.json.JsonObject query,
io.vertx.core.json.JsonObject replace,
FindOptions findOptions,
UpdateOptions updateOptions,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.json.JsonObject>> resultHandler)
Find a single matching document in the specified collection and replace it.
|
io.vertx.core.Future<io.vertx.core.json.JsonObject> |
MongoClient.findOneAndUpdateWithOptions(String collection,
io.vertx.core.json.JsonObject query,
io.vertx.core.json.JsonObject update,
FindOptions findOptions,
UpdateOptions updateOptions)
Like
MongoClient.findOneAndUpdateWithOptions(String, JsonObject, JsonObject, FindOptions, UpdateOptions, Handler) but returns a Future of the asynchronous result |
MongoClient |
MongoClient.findOneAndUpdateWithOptions(String collection,
io.vertx.core.json.JsonObject query,
io.vertx.core.json.JsonObject update,
FindOptions findOptions,
UpdateOptions updateOptions,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.json.JsonObject>> resultHandler)
Find a single matching document in the specified collection and update it.
|
io.vertx.core.Future<MongoClientUpdateResult> |
MongoClient.replaceDocumentsWithOptions(String collection,
io.vertx.core.json.JsonObject query,
io.vertx.core.json.JsonObject replace,
UpdateOptions options)
Like
MongoClient.replaceDocumentsWithOptions(String, JsonObject, JsonObject, UpdateOptions, Handler) but returns a Future of the asynchronous result |
MongoClient |
MongoClient.replaceDocumentsWithOptions(String collection,
io.vertx.core.json.JsonObject query,
io.vertx.core.json.JsonObject replace,
UpdateOptions options,
io.vertx.core.Handler<io.vertx.core.AsyncResult<MongoClientUpdateResult>> resultHandler)
Replace matching documents in the specified collection, specifying options and return the handler with
MongoClientUpdateResult result |
io.vertx.core.Future<MongoClientUpdateResult> |
MongoClient.updateCollectionWithOptions(String collection,
io.vertx.core.json.JsonObject query,
io.vertx.core.json.JsonArray update,
UpdateOptions options)
Like
MongoClient.updateCollectionWithOptions(String, JsonObject, JsonArray, UpdateOptions, Handler) but returns a Future of the asynchronous result |
MongoClient |
MongoClient.updateCollectionWithOptions(String collection,
io.vertx.core.json.JsonObject query,
io.vertx.core.json.JsonArray update,
UpdateOptions options,
io.vertx.core.Handler<io.vertx.core.AsyncResult<MongoClientUpdateResult>> resultHandler)
Use an aggregation pipeline to update documents in the specified collection, specifying options and return the handler with
MongoClientUpdateResult result |
io.vertx.core.Future<MongoClientUpdateResult> |
MongoClient.updateCollectionWithOptions(String collection,
io.vertx.core.json.JsonObject query,
io.vertx.core.json.JsonObject update,
UpdateOptions options)
Like
MongoClient.updateCollectionWithOptions(String, JsonObject, JsonObject, UpdateOptions, Handler) but returns a Future of the asynchronous result |
MongoClient |
MongoClient.updateCollectionWithOptions(String collection,
io.vertx.core.json.JsonObject query,
io.vertx.core.json.JsonObject update,
UpdateOptions options,
io.vertx.core.Handler<io.vertx.core.AsyncResult<MongoClientUpdateResult>> resultHandler)
Update matching documents in the specified collection, specifying options and return the handler with
MongoClientUpdateResult result |
Constructor and Description |
---|
UpdateOptions(UpdateOptions other)
Copy constructor
|
Copyright © 2022 Eclipse. All rights reserved.