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 FindAndReplaceOptionsFindAndReplaceOptions.empty()Static factory method to create aFindAndReplaceOptionsinstance with returnNew false upsert falsestatic FindAndReplaceOptionsFindAndReplaceOptions.none()Static factory method returning an unmodifiableFindAndReplaceOptionsinstance.static FindAndReplaceOptionsFindAndReplaceOptions.options()Static factory method to create aFindAndReplaceOptionsinstance.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> TMongoTemplate.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 matchingCriteriaof givenQuerywith thereplacementdocument takingFindAndReplaceOptionsinto 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 matchingCriteriaof givenQuerywith thereplacementdocument takingFindAndReplaceOptionsinto account.
NOTE: The replacement entity must not hold an id.default <T> TMongoOperations.findAndReplace(Query query, T replacement, FindAndReplaceOptions options) Triggers findOneAndReplace to replace a single document matchingCriteriaof givenQuerywith thereplacementdocument takingFindAndReplaceOptionsinto account.
NOTE: The replacement entity must not hold an id.default <T> TMongoOperations.findAndReplace(Query query, T replacement, FindAndReplaceOptions options, Class<T> entityType, String collectionName) Triggers findOneAndReplace to replace a single document matchingCriteriaof givenQuerywith thereplacementdocument takingFindAndReplaceOptionsinto account.
NOTE: The replacement entity must not hold an id.default <T> TMongoOperations.findAndReplace(Query query, T replacement, FindAndReplaceOptions options, String collectionName) Triggers findOneAndReplace to replace a single document matchingCriteriaof givenQuerywith thereplacementdocument takingFindAndReplaceOptionsinto 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 matchingCriteriaof givenQuerywith thereplacementdocument takingFindAndReplaceOptionsinto 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 matchingCriteriaof givenQuerywith thereplacementdocument takingFindAndReplaceOptionsinto account.default <T> reactor.core.publisher.Mono<T>ReactiveMongoOperations.findAndReplace(Query query, T replacement, FindAndReplaceOptions options) Triggers findOneAndReplace to replace a single document matchingCriteriaof givenQuerywith thereplacementdocument takingFindAndReplaceOptionsinto 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 matchingCriteriaof givenQuerywith thereplacementdocument takingFindAndReplaceOptionsinto 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 matchingCriteriaof givenQuerywith thereplacementdocument takingFindAndReplaceOptionsinto 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 defineFindAndReplaceOptionsfor theUpdate.ReactiveUpdateOperation.FindAndReplaceWithOptions.withOptions(FindAndReplaceOptions options) Explicitly defineFindAndReplaceOptionsfor theUpdate.