You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Extract Single Query Loading branching to SingleQueryFallbackDataAccessStrategy. Inline AggregateReaderFactory into SingleQueryDataAccessStrategy. Move CachingSqlGenerator to AggregateReader as caching root.
Introduce DataAccessStrategyFactory to encapsulate configuration.
Fix Javadoc tag ordering. Remove superfluous MappingContext parameters when Converter is available. Simplify code. Reformat code.
Reorder Functions methods. Tweak Javadoc, move composite function into SingleQuerySqlGenerator.
See #1446
See #1450
See #1445
Original pull request: #1572
Copy file name to clipboardExpand all lines: spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/convert/AggregateResultSetExtractor.java
+14-16
Original file line number
Diff line number
Diff line change
@@ -48,10 +48,10 @@
48
48
* which looks somewhat how one would represent an aggregate in a single excel table. The first row contains data of the
49
49
* aggregate root, any single valued reference and the first element of any collection. Following rows do NOT repeat the
50
50
* aggregate root data but contain data of second elements of any collections. For details see accompanying unit tests.
* A {@link Reader} is responsible for reading a single entity or collection of entities from a set of columns
134
-
*
131
+
*
135
132
* @since 3.2
136
133
* @author Jens Schauder
137
134
*/
@@ -145,14 +142,14 @@ private interface Reader {
145
142
/**
146
143
* Checks if this {@literal Reader} has all the data needed for a complete result, or if it needs to read further
147
144
* rows.
148
-
*
145
+
*
149
146
* @return the result of the check.
150
147
*/
151
148
booleanhasResult();
152
149
153
150
/**
154
151
* Constructs the result, returns it and resets the state of the reader to read the next instance.
155
-
*
152
+
*
156
153
* @return an instance of whatever this {@literal Reader} is supposed to read.
157
154
*/
158
155
@Nullable
@@ -161,7 +158,7 @@ private interface Reader {
161
158
162
159
/**
163
160
* Adapts a {@link Map} to the interface of a {@literal Collection<Map.Entry<Object, Object>>}.
164
-
*
161
+
*
165
162
* @since 3.2
166
163
* @author Jens Schauder
167
164
*/
@@ -221,7 +218,7 @@ public boolean add(Map.Entry<Object, Object> entry) {
221
218
222
219
/**
223
220
* A {@link Reader} for reading entities.
224
-
*
221
+
*
225
222
* @since 3.2
226
223
* @author Jens Schauder
227
224
*/
@@ -315,7 +312,7 @@ public String toString() {
315
312
316
313
/**
317
314
* A {@link Reader} for reading collections of entities.
318
-
*
315
+
*
319
316
* @since 3.2
320
317
* @author Jens Schauder
321
318
*/
@@ -413,7 +410,7 @@ public String toString() {
413
410
/**
414
411
* A {@link Reader} for reading collection entries. Most of the work is done by an {@link EntityReader}, but a
415
412
* additional key column might get read. The result is
416
-
*
413
+
*
417
414
* @since 3.2
418
415
* @author Jens Schauder
419
416
*/
@@ -459,8 +456,9 @@ public Object getResultAndReset() {
459
456
}
460
457
461
458
/**
462
-
* A {@link ParameterValueProvider} that provided the values for an entity from a continues set of rows in a {@link ResultSet}. These might be referenced entities or collections of such entities. {@link ResultSet}.
463
-
*
459
+
* A {@link ParameterValueProvider} that provided the values for an entity from a continues set of rows in a
460
+
* {@link ResultSet}. These might be referenced entities or collections of such entities. {@link ResultSet}.
0 commit comments