@@ -486,6 +486,14 @@ public <R> TypedExecuteSpec<R> as(Class<R> resultType) {
486
486
return createTypedExecuteSpec (this .byIndex , this .byName , this .sqlSupplier , resultType );
487
487
}
488
488
489
+ @ Override
490
+ public <R > FetchSpec <R > map (Function <Row , R > mappingFunction ) {
491
+
492
+ Assert .notNull (mappingFunction , "Mapping function must not be null!" );
493
+
494
+ return exchange (this .sqlSupplier , (row , rowMetadata ) -> mappingFunction .apply (row ));
495
+ }
496
+
489
497
@ Override
490
498
public <R > FetchSpec <R > map (BiFunction <Row , RowMetadata , R > mappingFunction ) {
491
499
@@ -571,6 +579,14 @@ public <R> TypedExecuteSpec<R> as(Class<R> resultType) {
571
579
return createTypedExecuteSpec (this .byIndex , this .byName , this .sqlSupplier , resultType );
572
580
}
573
581
582
+ @ Override
583
+ public <R > FetchSpec <R > map (Function <Row , R > mappingFunction ) {
584
+
585
+ Assert .notNull (mappingFunction , "Mapping function must not be null!" );
586
+
587
+ return exchange (this .sqlSupplier , (row , rowMetadata ) -> mappingFunction .apply (row ));
588
+ }
589
+
574
590
@ Override
575
591
public <R > FetchSpec <R > map (BiFunction <Row , RowMetadata , R > mappingFunction ) {
576
592
@@ -727,6 +743,14 @@ public <R> TypedSelectSpec<R> as(Class<R> resultType) {
727
743
resultType , dataAccessStrategy .getRowMapper (resultType ));
728
744
}
729
745
746
+ @ Override
747
+ public <R > FetchSpec <R > map (Function <Row , R > mappingFunction ) {
748
+
749
+ Assert .notNull (mappingFunction , "Mapping function must not be null!" );
750
+
751
+ return exchange ((row , rowMetadata ) -> mappingFunction .apply (row ));
752
+ }
753
+
730
754
@ Override
731
755
public <R > FetchSpec <R > map (BiFunction <Row , RowMetadata , R > mappingFunction ) {
732
756
@@ -816,6 +840,14 @@ public <R> FetchSpec<R> as(Class<R> resultType) {
816
840
return exchange (dataAccessStrategy .getRowMapper (resultType ));
817
841
}
818
842
843
+ @ Override
844
+ public <R > FetchSpec <R > map (Function <Row , R > mappingFunction ) {
845
+
846
+ Assert .notNull (mappingFunction , "Mapping function must not be null!" );
847
+
848
+ return exchange ((row , rowMetadata ) -> mappingFunction .apply (row ));
849
+ }
850
+
819
851
@ Override
820
852
public <R > FetchSpec <R > map (BiFunction <Row , RowMetadata , R > mappingFunction ) {
821
853
@@ -935,6 +967,14 @@ public GenericInsertSpec<T> nullValue(String field) {
935
967
return new DefaultGenericInsertSpec <>(this .table , byName , this .mappingFunction );
936
968
}
937
969
970
+ @ Override
971
+ public <R > FetchSpec <R > map (Function <Row , R > mappingFunction ) {
972
+
973
+ Assert .notNull (mappingFunction , "Mapping function must not be null!" );
974
+
975
+ return exchange ((row , rowMetadata ) -> mappingFunction .apply (row ));
976
+ }
977
+
938
978
@ Override
939
979
public <R > FetchSpec <R > map (BiFunction <Row , RowMetadata , R > mappingFunction ) {
940
980
@@ -1017,6 +1057,14 @@ public InsertSpec using(Publisher<T> objectToInsert) {
1017
1057
return new DefaultTypedInsertSpec <>(this .typeToInsert , this .table , objectToInsert , this .mappingFunction );
1018
1058
}
1019
1059
1060
+ @ Override
1061
+ public <MR > FetchSpec <MR > map (Function <Row , MR > mappingFunction ) {
1062
+
1063
+ Assert .notNull (mappingFunction , "Mapping function must not be null!" );
1064
+
1065
+ return exchange ((row , rowMetadata ) -> mappingFunction .apply (row ));
1066
+ }
1067
+
1020
1068
@ Override
1021
1069
public <MR > FetchSpec <MR > map (BiFunction <Row , RowMetadata , MR > mappingFunction ) {
1022
1070
0 commit comments