@@ -31,6 +31,9 @@ private SpringBatchUtility() {}
31
31
* This value will not be used in the query at runtime because MyBatis Spring integration
32
32
* will supply a value for _skiprows.
33
33
*
34
+ * <p>This value can be used as a parameter for the "offset" method in a query to make the intention
35
+ * clear that the actual runtime value will be supplied by MyBatis Spring integration.
36
+ *
34
37
* <p>See <a href="https://mybatis.org/spring/batch.html">https://mybatis.org/spring/batch.html</a> for details.
35
38
*/
36
39
public static final long MYBATIS_SPRING_BATCH_SKIPROWS = -437L ;
@@ -40,6 +43,9 @@ private SpringBatchUtility() {}
40
43
* This value will not be used in the query at runtime because MyBatis Spring integration
41
44
* will supply a value for _pagesize.
42
45
*
46
+ * <p>This value can be used as a parameter for the "limit" or "fetchFirst" method in a query to make the intention
47
+ * clear that the actual runtime value will be supplied by MyBatis Spring integration.
48
+ *
43
49
* <p>See <a href="https://mybatis.org/spring/batch.html">https://mybatis.org/spring/batch.html</a> for details.
44
50
*/
45
51
public static final long MYBATIS_SPRING_BATCH_PAGESIZE = -439L ;
@@ -48,9 +54,9 @@ private SpringBatchUtility() {}
48
54
new SpringBatchPagingItemReaderRenderingStrategy ();
49
55
50
56
public static Map <String , Object > toParameterValues (SelectStatementProvider selectStatement ) {
51
- Map < String , Object > parameterValues = new HashMap <>();
57
+ var parameterValues = new HashMap <String , Object >();
52
58
parameterValues .put (PARAMETER_KEY , selectStatement .getSelectStatement ());
53
- parameterValues .put ("parameters" , selectStatement .getParameters ()); //$NON-NLS-1$
59
+ parameterValues .put (RenderingStrategy . DEFAULT_PARAMETER_PREFIX , selectStatement .getParameters ());
54
60
return parameterValues ;
55
61
}
56
62
}
0 commit comments