Uses of Interface
org.springframework.data.mongodb.core.CursorPreparer
Packages that use CursorPreparer
-
Uses of CursorPreparer in org.springframework.data.mongodb.core
Fields in org.springframework.data.mongodb.core declared as CursorPreparerModifier and TypeFieldDescriptionstatic final CursorPreparer
CursorPreparer.NO_OP_PREPARER
DefaultCursorPreparer
just passing on the givenFindIterable
.Methods in org.springframework.data.mongodb.core with parameters of type CursorPreparerModifier and TypeMethodDescriptionprotected <S,
T> List<T> 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) protected <T> List<T>
MongoTemplate.doFind
(String collectionName, CollectionPreparer<com.mongodb.client.MongoCollection<org.bson.Document>> collectionPreparer, org.bson.Document query, org.bson.Document fields, Class<T> entityClass, CursorPreparer preparer) Map the results of an ad-hoc query on the default MongoDB collection to a List of the specified type.protected <T> T
MongoTemplate.doFindOne
(String collectionName, CollectionPreparer<com.mongodb.client.MongoCollection<org.bson.Document>> collectionPreparer, org.bson.Document query, org.bson.Document fields, CursorPreparer preparer, 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 void
MongoTemplate.executeQuery
(Query query, String collectionName, DocumentCallbackHandler documentCallbackHandler, CursorPreparer preparer) Execute a MongoDB query and iterate over the query results on a per-document basis with aDocumentCallbackHandler
using the provided CursorPreparer.