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 <S,T> @Nullable T MongoTemplate.doFindAndReplace(CollectionPreparer<com.mongodb.client.MongoCollection<org.bson.Document>> collectionPreparer, String collectionName, org.bson.Document mappedQuery, org.bson.Document mappedFields, org.bson.Document mappedSort, @Nullable com.mongodb.client.model.Collation collation, Class<S> entityType, org.bson.Document replacement, FindAndReplaceOptions options, Class<T> resultType) Customize this part for findAndReplace.protected <T> 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> @Nullable 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> @Nullable 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> @Nullable 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> @Nullable 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> @Nullable 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> @Nullable T MongoTemplate.findAndReplace(Query query, S replacement, FindAndReplaceOptions options, Class<S> entityType, String collectionName, Class<T> resultType) default <S,T> 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> 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> Mono<T> ReactiveMongoOperations.findAndReplace(Query query, T replacement, FindAndReplaceOptions options) Triggers findOneAndReplace to replace a single document matchingCriteriaof givenQuerywith thereplacementdocument takingFindAndReplaceOptionsinto account.default <T> 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> 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> Mono <T> ReactiveMongoTemplate.findAndReplace(Query query, S replacement, FindAndReplaceOptions options, Class<S> entityType, String collectionName, Class<T> resultType) <S,T, R> Mono <R> ReactiveMongoTemplate.findAndReplace(Query query, S replacement, FindAndReplaceOptions options, Class<S> entityType, String collectionName, Class<T> resultType, QueryResultConverter<? super T, ? extends R> resultConverter) 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.