Java源码示例:net.sf.jsqlparser.statement.select.Limit

示例1
@VisibleForTesting
String createCountQuery(Select select, long batchSize) {
  Limit limit = new Limit();
  limit.setRowCount(new LongValue(batchSize));
  return String.format("SELECT COUNT(*) AS C FROM ((%s)%s) Q", select, limit);
}
 
示例2
public Limit getLimit() {
	return setOp.getLimit();
}
 
示例3
public void setLimit(Limit limit) {
	setOp.setLimit(limit);
}