@@ -470,38 +470,6 @@ MongoCollection<Document> createView(String name, String source, AggregationPipe
470
470
*/
471
471
<T > List <T > findAll (Class <T > entityClass , String collectionName );
472
472
473
- /**
474
- * Query for a cursor window of objects of type T from the specified collection. <br />
475
- * The object is converted from the MongoDB native representation using an instance of {@see MongoConverter}. Unless
476
- * configured otherwise, an instance of {@link MappingMongoConverter} will be used. <br />
477
- * If your collection does not contain a homogeneous collection of types, this operation will not be an efficient way
478
- * to map objects since the test for class type is done in the client and not on the server.
479
- *
480
- * @param cursorRequest the cursor request.
481
- * @param entityType the parametrized type of the returned list.
482
- * @param collectionName name of the collection to retrieve the objects from.
483
- * @return the converted cursor window.
484
- * @see org.springframework.data.domain.OffsetCursorRequest
485
- * @see org.springframework.data.domain.KeysetCursorRequest
486
- */
487
- <T > CursorWindow <T > findWindow (CursorRequest cursorRequest , Query query , Class <T > entityTypee );
488
-
489
- /**
490
- * Query for a cursor window of objects of type T from the specified collection. <br />
491
- * The object is converted from the MongoDB native representation using an instance of {@see MongoConverter}. Unless
492
- * configured otherwise, an instance of {@link MappingMongoConverter} will be used. <br />
493
- * If your collection does not contain a homogeneous collection of types, this operation will not be an efficient way
494
- * to map objects since the test for class type is done in the client and not on the server.
495
- *
496
- * @param cursorRequest the cursor request.
497
- * @param entityType the parametrized type of the returned list.
498
- * @param collectionName name of the collection to retrieve the objects from.
499
- * @return the converted cursor window.
500
- * @see org.springframework.data.domain.OffsetCursorRequest
501
- * @see org.springframework.data.domain.KeysetCursorRequest
502
- */
503
- <T > CursorWindow <T > findWindow (CursorRequest cursorRequest , Query query , Class <T > entityType , String collectionName );
504
-
505
473
/**
506
474
* Execute an aggregation operation. The raw results will be mapped to the given entity class. The name of the
507
475
* inputCollection is derived from the inputType of the aggregation.
@@ -838,6 +806,43 @@ <T> MapReduceResults<T> mapReduce(Query query, String inputCollectionName, Strin
838
806
*/
839
807
<T > List <T > find (Query query , Class <T > entityClass , String collectionName );
840
808
809
+ /**
810
+ * Query for a cursor window of objects of type T from the specified collection. <br />
811
+ * The object is converted from the MongoDB native representation using an instance of {@see MongoConverter}. Unless
812
+ * configured otherwise, an instance of {@link MappingMongoConverter} will be used. <br />
813
+ * If your collection does not contain a homogeneous collection of types, this operation will not be an efficient way
814
+ * to map objects since the test for class type is done in the client and not on the server.
815
+ *
816
+ * @param cursorRequest the cursor request.
817
+ * @param query the query class that specifies the criteria used to find a record and also an optional fields
818
+ * specification. Must not be {@literal null}.
819
+ * @param entityType the parametrized type of the returned list.
820
+ * @return the converted cursor window.
821
+ * @since 4.1
822
+ * @see org.springframework.data.domain.OffsetCursorRequest
823
+ * @see org.springframework.data.domain.KeysetCursorRequest
824
+ */
825
+ <T > CursorWindow <T > findWindow (CursorRequest cursorRequest , Query query , Class <T > entityType );
826
+
827
+ /**
828
+ * Query for a cursor window of objects of type T from the specified collection. <br />
829
+ * The object is converted from the MongoDB native representation using an instance of {@see MongoConverter}. Unless
830
+ * configured otherwise, an instance of {@link MappingMongoConverter} will be used. <br />
831
+ * If your collection does not contain a homogeneous collection of types, this operation will not be an efficient way
832
+ * to map objects since the test for class type is done in the client and not on the server.
833
+ *
834
+ * @param cursorRequest the cursor request.
835
+ * @param query the query class that specifies the criteria used to find a record and also an optional fields
836
+ * specification. Must not be {@literal null}.
837
+ * @param entityType the parametrized type of the returned list.
838
+ * @param collectionName name of the collection to retrieve the objects from.
839
+ * @return the converted cursor window.
840
+ * @since 4.1
841
+ * @see org.springframework.data.domain.OffsetCursorRequest
842
+ * @see org.springframework.data.domain.KeysetCursorRequest
843
+ */
844
+ <T > CursorWindow <T > findWindow (CursorRequest cursorRequest , Query query , Class <T > entityType , String collectionName );
845
+
841
846
/**
842
847
* Returns a document with the given id mapped onto the given class. The collection the query is ran against will be
843
848
* derived from the given target class as well.
0 commit comments