Uses of Class
org.springframework.data.mongodb.core.FindAndReplaceOptions
Packages that use FindAndReplaceOptions
-
Uses of FindAndReplaceOptions in org.springframework.data.mongodb.core
Methods in org.springframework.data.mongodb.core that return FindAndReplaceOptionsModifier and TypeMethodDescriptionstatic FindAndReplaceOptions
FindAndReplaceOptions.empty()
Static factory method to create aFindAndReplaceOptions
instance with returnNew false upsert falsestatic FindAndReplaceOptions
FindAndReplaceOptions.none()
Static factory method returning an unmodifiableFindAndReplaceOptions
instance.static FindAndReplaceOptions
FindAndReplaceOptions.options()
Static factory method to create aFindAndReplaceOptions
instance.FindAndReplaceOptions.returnNew()
Return the replacement document.FindAndReplaceOptions.upsert()
Insert a new document if not exists.Methods in org.springframework.data.mongodb.core with parameters of type FindAndReplaceOptionsModifier and TypeMethodDescriptionprotected <T> T
MongoTemplate.doFindAndReplace
(CollectionPreparer collectionPreparer, 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, CollectionPreparer<com.mongodb.reactivestreams.client.MongoCollection<org.bson.Document>> collectionPreparer, 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> T MongoOperations.findAndReplace
(Query query, S replacement, FindAndReplaceOptions options, Class<S> entityType, Class<T> resultType) Triggers findOneAndReplace to replace a single document matchingCriteria
of givenQuery
with thereplacement
document takingFindAndReplaceOptions
into account.
NOTE: The replacement entity must not hold an id.<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 matchingCriteria
of givenQuery
with thereplacement
document takingFindAndReplaceOptions
into account.
NOTE: The replacement entity must not hold an id.default <T> T
MongoOperations.findAndReplace
(Query query, T replacement, FindAndReplaceOptions options) Triggers findOneAndReplace to replace a single document matchingCriteria
of givenQuery
with thereplacement
document takingFindAndReplaceOptions
into account.
NOTE: The replacement entity must not hold an id.default <T> T
MongoOperations.findAndReplace
(Query query, T replacement, FindAndReplaceOptions options, Class<T> entityType, String collectionName) Triggers findOneAndReplace to replace a single document matchingCriteria
of givenQuery
with thereplacement
document takingFindAndReplaceOptions
into account.
NOTE: The replacement entity must not hold an id.default <T> T
MongoOperations.findAndReplace
(Query query, T replacement, FindAndReplaceOptions options, String collectionName) Triggers findOneAndReplace to replace a single document matchingCriteria
of givenQuery
with thereplacement
document takingFindAndReplaceOptions
into account.
NOTE: The replacement entity must not hold an id.<S,
T> T MongoTemplate.findAndReplace
(Query query, S replacement, FindAndReplaceOptions options, Class<S> entityType, String collectionName, Class<T> resultType) 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 matchingCriteria
of givenQuery
with thereplacement
document takingFindAndReplaceOptions
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 matchingCriteria
of givenQuery
with thereplacement
document takingFindAndReplaceOptions
into account.default <T> reactor.core.publisher.Mono<T>
ReactiveMongoOperations.findAndReplace
(Query query, T replacement, FindAndReplaceOptions options) Triggers findOneAndReplace to replace a single document matchingCriteria
of givenQuery
with thereplacement
document takingFindAndReplaceOptions
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 matchingCriteria
of givenQuery
with thereplacement
document takingFindAndReplaceOptions
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 matchingCriteria
of givenQuery
with thereplacement
document takingFindAndReplaceOptions
into account.<S,
T> reactor.core.publisher.Mono<T> ReactiveMongoTemplate.findAndReplace
(Query query, S replacement, FindAndReplaceOptions options, Class<S> entityType, String collectionName, Class<T> resultType) BulkOperations.replaceOne
(Query query, Object replacement, FindAndReplaceOptions options) Add a single replace operation to the bulk operation.ReactiveBulkOperations.replaceOne
(Query query, Object replacement, FindAndReplaceOptions options) Add a single replace operation to the bulk operation.ExecutableUpdateOperation.FindAndReplaceWithOptions.withOptions
(FindAndReplaceOptions options) Explicitly defineFindAndReplaceOptions
for theUpdate
.ReactiveUpdateOperation.FindAndReplaceWithOptions.withOptions
(FindAndReplaceOptions options) Explicitly defineFindAndReplaceOptions
for theUpdate
.