Package | Description |
---|---|
com.mongodb.operation |
The core of the MongoDB driver works via operations, using the command pattern.
|
Modifier and Type | Method and Description |
---|---|
FindAndUpdateOperation<T> |
FindAndUpdateOperation.bypassDocumentValidation(Boolean bypassDocumentValidation)
Sets the bypass document level validation flag.
|
FindAndUpdateOperation<T> |
FindAndUpdateOperation.filter(BsonDocument filter)
Sets the filter to apply to the query.
|
FindAndUpdateOperation<T> |
FindAndUpdateOperation.maxTime(long maxTime,
TimeUnit timeUnit)
Sets the maximum execution time on the server for this operation.
|
FindAndUpdateOperation<T> |
FindAndUpdateOperation.projection(BsonDocument projection)
Sets a document describing the fields to return for all matching documents.
|
FindAndUpdateOperation<T> |
FindAndUpdateOperation.returnOriginal(boolean returnOriginal)
Set to false if the updated document rather than the original should be returned.
|
FindAndUpdateOperation<T> |
FindAndUpdateOperation.sort(BsonDocument sort)
Sets the sort criteria to apply to the query.
|
FindAndUpdateOperation<T> |
FindAndUpdateOperation.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.