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.findOneAndReplace(Bson filter,
TDocument replacement,
FindOneAndReplaceOptions options,
SingleResultCallback<TDocument> callback)
Atomically find a document and replace it.
|
Modifier and Type | Method and Description |
---|---|
TDocument |
MongoCollection.findOneAndReplace(Bson filter,
TDocument replacement,
FindOneAndReplaceOptions options)
Atomically find a document and replace it.
|
Modifier and Type | Method and Description |
---|---|
FindOneAndReplaceOptions |
FindOneAndReplaceOptions.bypassDocumentValidation(Boolean bypassDocumentValidation)
Sets the bypass document level validation flag.
|
FindOneAndReplaceOptions |
FindOneAndReplaceOptions.maxTime(long maxTime,
TimeUnit timeUnit)
Sets the maximum execution time on the server for this operation.
|
FindOneAndReplaceOptions |
FindOneAndReplaceOptions.projection(Bson projection)
Sets a document describing the fields to return for all matching documents.
|
FindOneAndReplaceOptions |
FindOneAndReplaceOptions.returnDocument(ReturnDocument returnDocument)
Set whether to return the document before it was replaced or after
|
FindOneAndReplaceOptions |
FindOneAndReplaceOptions.sort(Bson sort)
Sets the sort criteria to apply to the query.
|
FindOneAndReplaceOptions |
FindOneAndReplaceOptions.upsert(boolean upsert)
Set to true if a new document should be inserted if there are no matches to the query filter.
|
Copyright © 2016. All Rights Reserved.