Package | Description |
---|---|
org.springframework.data.mongodb.core |
MongoDB core support.
|
Modifier and Type | Method and Description |
---|---|
static FindAndReplaceOptions |
FindAndReplaceOptions.empty()
Static factory method to create a
FindAndReplaceOptions instance with
returnNew
false
upsert
false
|
static FindAndReplaceOptions |
FindAndReplaceOptions.options()
Static factory method to create a
FindAndReplaceOptions instance. |
FindAndReplaceOptions |
FindAndReplaceOptions.returnNew()
Return the replacement document.
|
FindAndReplaceOptions |
FindAndReplaceOptions.upsert()
Insert a new document if not exists.
|
Modifier and Type | Method and Description |
---|---|
protected <T> T |
MongoTemplate.doFindAndReplace(String collectionName,
org.bson.Document mappedQuery,
org.bson.Document mappedFields,
org.bson.Document mappedSort,
com.mongodb.client.model.Collation collation,
Class<?> entityType,
org.bson.Document replacement,
FindAndReplaceOptions options,
Class<T> resultType)
Customize this part for findAndReplace.
|
protected <T> reactor.core.publisher.Mono<T> |
ReactiveMongoTemplate.doFindAndReplace(String collectionName,
org.bson.Document mappedQuery,
org.bson.Document mappedFields,
org.bson.Document mappedSort,
com.mongodb.client.model.Collation collation,
Class<?> entityType,
org.bson.Document replacement,
FindAndReplaceOptions options,
Class<T> resultType)
Customize this part for findAndReplace.
|
default <S,T> reactor.core.publisher.Mono<T> |
ReactiveMongoOperations.findAndReplace(Query query,
S replacement,
FindAndReplaceOptions options,
Class<S> entityType,
Class<T> resultType)
Triggers
findOneAndReplace
to replace a single document matching
Criteria of given Query with the replacement document
taking FindAndReplaceOptions into account. |
default <S,T> T |
MongoOperations.findAndReplace(Query query,
S replacement,
FindAndReplaceOptions options,
Class<S> entityType,
Class<T> resultType)
Triggers
findOneAndReplace
to replace a single document matching
Criteria of given Query with the replacement document
taking FindAndReplaceOptions into account. |
<S,T> reactor.core.publisher.Mono<T> |
ReactiveMongoOperations.findAndReplace(Query query,
S replacement,
FindAndReplaceOptions options,
Class<S> entityType,
String collectionName,
Class<T> resultType)
Triggers
findOneAndReplace
to replace a single document matching
Criteria of given Query with the replacement document
taking FindAndReplaceOptions into account. |
<S,T> T |
MongoOperations.findAndReplace(Query query,
S replacement,
FindAndReplaceOptions options,
Class<S> entityType,
String collectionName,
Class<T> resultType)
Triggers
findOneAndReplace
to replace a single document matching
Criteria of given Query with the replacement document
taking FindAndReplaceOptions into account. |
<S,T> T |
MongoTemplate.findAndReplace(Query query,
S replacement,
FindAndReplaceOptions options,
Class<S> entityType,
String collectionName,
Class<T> resultType) |
<S,T> reactor.core.publisher.Mono<T> |
ReactiveMongoTemplate.findAndReplace(Query query,
S replacement,
FindAndReplaceOptions options,
Class<S> entityType,
String collectionName,
Class<T> resultType) |
default <T> reactor.core.publisher.Mono<T> |
ReactiveMongoOperations.findAndReplace(Query query,
T replacement,
FindAndReplaceOptions options)
Triggers
findOneAndReplace
to replace a single document matching
Criteria of given Query with the replacement document
taking FindAndReplaceOptions into account. |
default <T> T |
MongoOperations.findAndReplace(Query query,
T replacement,
FindAndReplaceOptions options)
Triggers
findOneAndReplace
to replace a single document matching
Criteria of given Query with the replacement document
taking FindAndReplaceOptions into account. |
default <T> reactor.core.publisher.Mono<T> |
ReactiveMongoOperations.findAndReplace(Query query,
T replacement,
FindAndReplaceOptions options,
Class<T> entityType,
String collectionName)
Triggers
findOneAndReplace
to replace a single document matching
Criteria of given Query with the replacement document
taking FindAndReplaceOptions into account. |
default <T> T |
MongoOperations.findAndReplace(Query query,
T replacement,
FindAndReplaceOptions options,
Class<T> entityType,
String collectionName)
Triggers
findOneAndReplace
to replace a single document matching
Criteria of given Query with the replacement document
taking FindAndReplaceOptions into account. |
default <T> reactor.core.publisher.Mono<T> |
ReactiveMongoOperations.findAndReplace(Query query,
T replacement,
FindAndReplaceOptions options,
String collectionName)
Triggers
findOneAndReplace
to replace a single document matching
Criteria of given Query with the replacement document
taking FindAndReplaceOptions into account. |
default <T> T |
MongoOperations.findAndReplace(Query query,
T replacement,
FindAndReplaceOptions options,
String collectionName)
Triggers
findOneAndReplace
to replace a single document matching
Criteria of given Query with the replacement document
taking FindAndReplaceOptions into account. |
ExecutableUpdateOperation.FindAndReplaceWithProjection<T> |
ExecutableUpdateOperation.FindAndReplaceWithOptions.withOptions(FindAndReplaceOptions options)
Explicitly define
FindAndReplaceOptions for the Update . |
ReactiveUpdateOperation.FindAndReplaceWithProjection<T> |
ReactiveUpdateOperation.FindAndReplaceWithOptions.withOptions(FindAndReplaceOptions options)
Explicitly define
FindAndReplaceOptions for the Update . |
Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.