Here you can find the source of createLimitSql(StringBuilder sql, Integer startNum, Integer rowNum, List params)HOMEJavaLList CreatecreateLimitSql(StringBuilder sql, Integer startNum, Integer rowNum, List params)Description create Limit Sql License Open Source License Declaration private static final void createLimitSql(StringBuilder sql, Integer startNum, Integer rowNum, List<Object> params) Method Source Code //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); } } } RelatedCreateIntegerSequenceList(int startNumber, int endNumber)createIntegerSetFromIntegerList(List integerList)createInterfaceContent(String typeName, @SuppressWarnings("rawtypes") List superInterfaces, String indentation, String lineSeparator)createIntListToN(int n)createKeyValPair(List lst)createList( Iterator iterator )createList()createList(Class elementClass)createList(Class itemClazz, T... items)
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); } } }