@@ -168,7 +168,7 @@ public interface ReactiveMongoOperations {
168
168
/**
169
169
* A set of collection names.
170
170
*
171
- * @return list of collection names
171
+ * @return Flux of collection names
172
172
*/
173
173
Flux <String > getCollectionNames ();
174
174
@@ -221,29 +221,29 @@ public interface ReactiveMongoOperations {
221
221
Mono <Void > dropCollection (String collectionName );
222
222
223
223
/**
224
- * Query for a list of objects of type T from the collection used by the entity class.
224
+ * Query for a {@link Flux} of objects of type T from the collection used by the entity class.
225
225
* <p/>
226
226
* The object is converted from the MongoDB native representation using an instance of {@see MongoConverter}. Unless
227
227
* configured otherwise, an instance of {@link MappingMongoConverter} will be used.
228
228
* <p/>
229
229
* If your collection does not contain a homogeneous collection of types, this operation will not be an efficient way
230
230
* to map objects since the test for class type is done in the client and not on the server.
231
+ * @param entityClass the parametrized type of the returned {@link Flux}.
231
232
*
232
- * @param entityClass the parametrized type of the returned list
233
233
* @return the converted collection
234
234
*/
235
235
<T > Flux <T > findAll (Class <T > entityClass );
236
236
237
237
/**
238
- * Query for a list of objects of type T from the specified collection.
238
+ * Query for a {@link Flux} of objects of type T from the specified collection.
239
239
* <p/>
240
240
* The object is converted from the MongoDB native representation using an instance of {@see MongoConverter}. Unless
241
241
* configured otherwise, an instance of {@link MappingMongoConverter} will be used.
242
242
* <p/>
243
243
* If your collection does not contain a homogeneous collection of types, this operation will not be an efficient way
244
244
* to map objects since the test for class type is done in the client and not on the server.
245
245
*
246
- * @param entityClass the parametrized type of the returned list .
246
+ * @param entityClass the parametrized type of the returned {@link Flux} .
247
247
* @param collectionName name of the collection to retrieve the objects from
248
248
* @return the converted collection
249
249
*/
@@ -261,7 +261,7 @@ public interface ReactiveMongoOperations {
261
261
*
262
262
* @param query the query class that specifies the criteria used to find a record and also an optional fields
263
263
* specification
264
- * @param entityClass the parametrized type of the returned list .
264
+ * @param entityClass the parametrized type of the returned {@link Mono} .
265
265
* @return the converted object
266
266
*/
267
267
<T > Mono <T > findOne (Query query , Class <T > entityClass );
@@ -278,7 +278,7 @@ public interface ReactiveMongoOperations {
278
278
*
279
279
* @param query the query class that specifies the criteria used to find a record and also an optional fields
280
280
* specification
281
- * @param entityClass the parametrized type of the returned list .
281
+ * @param entityClass the parametrized type of the returned {@link Mono} .
282
282
* @param collectionName name of the collection to retrieve the objects from
283
283
* @return the converted object
284
284
*/
@@ -313,7 +313,7 @@ public interface ReactiveMongoOperations {
313
313
Mono <Boolean > exists (Query query , Class <?> entityClass , String collectionName );
314
314
315
315
/**
316
- * Map the results of an ad-hoc query on the collection for the entity class to a List of the specified type.
316
+ * Map the results of an ad-hoc query on the collection for the entity class to a {@link Flux} of the specified type.
317
317
* <p/>
318
318
* The object is converted from the MongoDB native representation using an instance of {@see MongoConverter}. Unless
319
319
* configured otherwise, an instance of {@link MappingMongoConverter} will be used.
@@ -323,13 +323,13 @@ public interface ReactiveMongoOperations {
323
323
*
324
324
* @param query the query class that specifies the criteria used to find a record and also an optional fields
325
325
* specification
326
- * @param entityClass the parametrized type of the returned list .
327
- * @return the List of converted objects
326
+ * @param entityClass the parametrized type of the returned {@link Flux} .
327
+ * @return the {@link Flux} of converted objects
328
328
*/
329
329
<T > Flux <T > find (Query query , Class <T > entityClass );
330
330
331
331
/**
332
- * Map the results of an ad-hoc query on the specified collection to a List of the specified type.
332
+ * Map the results of an ad-hoc query on the specified collection to a {@link Flux} of the specified type.
333
333
* <p/>
334
334
* The object is converted from the MongoDB native representation using an instance of {@see MongoConverter}. Unless
335
335
* configured otherwise, an instance of {@link MappingMongoConverter} will be used.
@@ -339,9 +339,9 @@ public interface ReactiveMongoOperations {
339
339
*
340
340
* @param query the query class that specifies the criteria used to find a record and also an optional fields
341
341
* specification
342
- * @param entityClass the parametrized type of the returned list .
342
+ * @param entityClass the parametrized type of the returned {@link Flux} .
343
343
* @param collectionName name of the collection to retrieve the objects from
344
- * @return the List of converted objects
344
+ * @return the {@link Flux} of converted objects
345
345
*/
346
346
<T > Flux <T > find (Query query , Class <T > entityClass , String collectionName );
347
347
@@ -459,7 +459,7 @@ <T> Mono<T> findAndModify(Query query, Update update, FindAndModifyOptions optio
459
459
*
460
460
* @param query the query class that specifies the criteria used to find a record and also an optional fields
461
461
* specification
462
- * @param entityClass the parametrized type of the returned list .
462
+ * @param entityClass the parametrized type of the returned {@link Mono} .
463
463
* @return the converted object
464
464
*/
465
465
<T > Mono <T > findAndRemove (Query query , Class <T > entityClass );
@@ -476,8 +476,8 @@ <T> Mono<T> findAndModify(Query query, Update update, FindAndModifyOptions optio
476
476
*
477
477
* @param query the query class that specifies the criteria used to find a record and also an optional fields
478
478
* specification
479
- * @param entityClass the parametrized type of the returned list .
480
- * @param collectionName name of the collection to retrieve the objects from
479
+ * @param entityClass the parametrized type of the returned {@link Mono} .
480
+ * @param collectionName name of the collection to retrieve the objects from.
481
481
* @return the converted object
482
482
*/
483
483
<T > Mono <T > findAndRemove (Query query , Class <T > entityClass , String collectionName );
@@ -550,14 +550,14 @@ <T> Mono<T> findAndModify(Query query, Update update, FindAndModifyOptions optio
550
550
/**
551
551
* Insert a Collection of objects into a collection in a single batch write to the database.
552
552
*
553
- * @param batchToSave the list of objects to save.
553
+ * @param batchToSave the batch of objects to save.
554
554
* @param entityClass class that determines the collection to use
555
555
* @return
556
556
*/
557
557
<T > Flux <T > insert (Collection <? extends T > batchToSave , Class <?> entityClass );
558
558
559
559
/**
560
- * Insert a list of objects into the specified collection in a single batch write to the database.
560
+ * Insert a batch of objects into the specified collection in a single batch write to the database.
561
561
*
562
562
* @param batchToSave the list of objects to save.
563
563
* @param collectionName name of the collection to store the object in
@@ -600,16 +600,16 @@ <T> Mono<T> findAndModify(Query query, Update update, FindAndModifyOptions optio
600
600
* @param entityClass class that determines the collection to use
601
601
* @return
602
602
*/
603
- <T > Flux <T > insert ( Publisher < ? extends T > batchToSave , Class <?> entityClass );
603
+ <T > Flux <T > insertAll ( Mono < Collection < ? extends T > > batchToSave , Class <?> entityClass );
604
604
605
605
/**
606
- * Insert a list of objects into the specified collection in a single batch write to the database.
606
+ * Insert objects into the specified collection in a single batch write to the database.
607
607
*
608
608
* @param batchToSave the publisher which provides objects to save.
609
609
* @param collectionName name of the collection to store the object in
610
610
* @return
611
611
*/
612
- <T > Flux <T > insert ( Publisher < ? extends T > batchToSave , String collectionName );
612
+ <T > Flux <T > insertAll ( Mono < Collection < ? extends T > > batchToSave , String collectionName );
613
613
614
614
/**
615
615
* Insert a mixed Collection of objects into a database collection determining the collection name to use based on the
@@ -618,7 +618,7 @@ <T> Mono<T> findAndModify(Query query, Update update, FindAndModifyOptions optio
618
618
* @param objectsToSave the publisher which provides objects to save.
619
619
* @return
620
620
*/
621
- <T > Flux <T > insertAll (Publisher < ? extends T > objectsToSave );
621
+ <T > Flux <T > insertAll (Mono < Collection < ? extends T > > objectsToSave );
622
622
623
623
/**
624
624
* Save the object to the collection for the entity type of the object to save. This will perform an insert if the
@@ -910,8 +910,8 @@ <T> Mono<T> findAndModify(Query query, Update update, FindAndModifyOptions optio
910
910
*
911
911
* @param query the query class that specifies the criteria used to find a record and also an optional fields
912
912
* specification
913
- * @param entityClass the parametrized type of the returned list .
914
- * @return the List of converted objects
913
+ * @param entityClass the parametrized type of the returned {@link Flux} .
914
+ * @return the {@link Flux} of converted objects
915
915
*/
916
916
<T > Flux <T > tail (Query query , Class <T > entityClass );
917
917
@@ -929,9 +929,9 @@ <T> Mono<T> findAndModify(Query query, Update update, FindAndModifyOptions optio
929
929
*
930
930
* @param query the query class that specifies the criteria used to find a record and also an optional fields
931
931
* specification
932
- * @param entityClass the parametrized type of the returned list .
932
+ * @param entityClass the parametrized type of the returned {@link Flux} .
933
933
* @param collectionName name of the collection to retrieve the objects from
934
- * @return the List of converted objects
934
+ * @return the {@link Flux} of converted objects
935
935
*/
936
936
<T > Flux <T > tail (Query query , Class <T > entityClass , String collectionName );
937
937
0 commit comments