Returns a composed CollectionPreparer
that first applies this preparer to the collection, and then applies
the after
preparer to the result.
protected long
MongoTemplate.doCount(CollectionPreparer collectionPreparer,
String collectionName,
org.bson.Document filter,
com.mongodb.client.model.CountOptions options)
protected long
MongoTemplate.doEstimatedCount(CollectionPreparer<com.mongodb.client.MongoCollection<org.bson.Document>> collectionPreparer,
String collectionName,
com.mongodb.client.model.EstimatedDocumentCountOptions options)
protected long
MongoTemplate.doExactCount(CollectionPreparer<com.mongodb.client.MongoCollection<org.bson.Document>> collectionPreparer,
String collectionName,
org.bson.Document filter,
com.mongodb.client.model.CountOptions options)
MongoTemplate.doFind(String collectionName,
CollectionPreparer<com.mongodb.client.MongoCollection<org.bson.Document>> collectionPreparer,
org.bson.Document query,
org.bson.Document fields,
Class<S> entityClass,
CursorPreparer preparer,
org.springframework.data.mongodb.core.MongoTemplate.DocumentCallback<T> objectCallback)
MongoTemplate.doFind(String collectionName,
CollectionPreparer<com.mongodb.client.MongoCollection<org.bson.Document>> collectionPreparer,
org.bson.Document query,
org.bson.Document fields,
Class<T> entityClass)
Map the results of an ad-hoc query on the default MongoDB collection to a List using the template's converter.
Map the results of an ad-hoc query on the default MongoDB collection to a List of the specified type.
protected <S,
T> reactor.core.publisher.Flux<T>
ReactiveMongoTemplate.doFind(String collectionName,
CollectionPreparer<com.mongodb.reactivestreams.client.MongoCollection<org.bson.Document>> collectionPreparer,
org.bson.Document query,
org.bson.Document fields,
Class<S> entityClass,
FindPublisherPreparer preparer,
org.springframework.data.mongodb.core.ReactiveMongoTemplate.DocumentCallback<T> objectCallback)
protected <T> reactor.core.publisher.Flux<T>
ReactiveMongoTemplate.doFind(String collectionName,
CollectionPreparer<com.mongodb.reactivestreams.client.MongoCollection<org.bson.Document>> collectionPreparer,
org.bson.Document query,
org.bson.Document fields,
Class<T> entityClass)
Map the results of an ad-hoc query on the default MongoDB collection to a List using the template's converter.
protected <T> reactor.core.publisher.Flux<T>
Map the results of an ad-hoc query on the default MongoDB collection to a List of the specified type.
protected <T> T
protected <T> reactor.core.publisher.Mono<T>
protected <T> T
Map the results of an ad-hoc query on the default MongoDB collection to an object using the template's converter.
protected <T> reactor.core.publisher.Mono<T>
ReactiveMongoTemplate.doFindAndRemove(String collectionName,
CollectionPreparer<com.mongodb.reactivestreams.client.MongoCollection<org.bson.Document>> collectionPreparer,
org.bson.Document query,
org.bson.Document fields,
org.bson.Document sort,
Collation collation,
Class<T> entityClass)
Map the results of an ad-hoc query on the default MongoDB collection to an object using the template's converter.
protected <T> T
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.
protected <T> T
MongoTemplate.doFindOne(String collectionName,
CollectionPreparer<com.mongodb.client.MongoCollection<org.bson.Document>> collectionPreparer,
org.bson.Document query,
org.bson.Document fields,
Class<T> entityClass)
Map the results of an ad-hoc query on the default MongoDB collection to an object using the template's converter.
protected <T> T
Map the results of an ad-hoc query on the default MongoDB collection to an object using the template's converter.
protected <T> reactor.core.publisher.Mono<T>
Map the results of an ad-hoc query on the default MongoDB collection to an object using the template's converter.
protected <T> reactor.core.publisher.Mono<T>
ReactiveMongoTemplate.doFindOne(String collectionName,
CollectionPreparer<com.mongodb.reactivestreams.client.MongoCollection<org.bson.Document>> collectionPreparer,
org.bson.Document query,
org.bson.Document fields,
Class<T> entityClass,
Collation collation)
Map the results of an ad-hoc query on the default MongoDB collection to an object using the template's converter.