@@ -31,6 +31,9 @@ private SpringBatchUtility() {}
3131 * This value will not be used in the query at runtime because MyBatis Spring integration
3232 * will supply a value for _skiprows.
3333 *
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+ *
3437 * <p>See <a href="https://mybatis.org/spring/batch.html">https://mybatis.org/spring/batch.html</a> for details.
3538 */
3639 public static final long MYBATIS_SPRING_BATCH_SKIPROWS = -437L ;
@@ -40,6 +43,9 @@ private SpringBatchUtility() {}
4043 * This value will not be used in the query at runtime because MyBatis Spring integration
4144 * will supply a value for _pagesize.
4245 *
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+ *
4349 * <p>See <a href="https://mybatis.org/spring/batch.html">https://mybatis.org/spring/batch.html</a> for details.
4450 */
4551 public static final long MYBATIS_SPRING_BATCH_PAGESIZE = -439L ;
@@ -48,9 +54,9 @@ private SpringBatchUtility() {}
4854 new SpringBatchPagingItemReaderRenderingStrategy ();
4955
5056 public static Map <String , Object > toParameterValues (SelectStatementProvider selectStatement ) {
51- Map < String , Object > parameterValues = new HashMap <>();
57+ var parameterValues = new HashMap <String , Object >();
5258 parameterValues .put (PARAMETER_KEY , selectStatement .getSelectStatement ());
53- parameterValues .put ("parameters" , selectStatement .getParameters ()); //$NON-NLS-1$
59+ parameterValues .put (RenderingStrategy . DEFAULT_PARAMETER_PREFIX , selectStatement .getParameters ());
5460 return parameterValues ;
5561 }
5662}
0 commit comments