Modifier and Type | Method and Description |
---|---|
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 |
---|---|
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.
|
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.
|
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
|
MongoClient |
MongoClient.replaceWithOptions(String collection,
io.vertx.core.json.JsonObject query,
io.vertx.core.json.JsonObject replace,
UpdateOptions options,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> resultHandler)
Deprecated.
|
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
|
MongoClient |
MongoClient.updateWithOptions(String collection,
io.vertx.core.json.JsonObject query,
io.vertx.core.json.JsonObject update,
UpdateOptions options,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> resultHandler)
Deprecated.
|
Constructor and Description |
---|
UpdateOptions(UpdateOptions other)
Copy constructor
|
Copyright © 2018 Eclipse. All rights reserved.