Here you can find the source of createLimitSql(StringBuilder sql, Integer startNum, Integer rowNum, List
private static final void createLimitSql(StringBuilder sql, Integer startNum, Integer rowNum, List<Object> params)
//package com.java2s; //License from project: Open Source License import java.util.List; public class Main { /**@author hcqt@qq.com*/ private static final void createLimitSql(StringBuilder sql, Integer startNum, Integer rowNum, List<Object> params) { if (null != startNum && null != rowNum) { sql.append(" LIMIT ?,?"); params.add(startNum);//from ww w . j av a2s . c o m params.add(rowNum); } else if (null != rowNum) { sql.append(" LIMIT ?"); params.add(rowNum); } } }