Package | Description |
---|---|
com.mongodb.client.model |
This package contains models and options that help describe MongoCollection operations
|
Modifier and Type | Method and Description |
---|---|
ReturnDocument |
FindOneAndReplaceOptions.getReturnDocument()
Gets the
ReturnDocument value indicating whether to return the document before it was replaced or after |
ReturnDocument |
FindOneAndUpdateOptions.getReturnDocument()
Gets the
ReturnDocument value indicating whether to return the document before it was updated / inserted or after |
static ReturnDocument |
ReturnDocument.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ReturnDocument[] |
ReturnDocument.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
FindOneAndReplaceOptions |
FindOneAndReplaceOptions.returnDocument(ReturnDocument returnDocument)
Set whether to return the document before it was replaced or after
|
FindOneAndUpdateOptions |
FindOneAndUpdateOptions.returnDocument(ReturnDocument returnDocument)
Set whether to return the document before it was updated / inserted or after
|
Copyright © 2016. All Rights Reserved.