Java Code Examples for net.sf.jsqlparser.statement.select.Limit

The following examples show how to use net.sf.jsqlparser.statement.select.Limit. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: spanner-jdbc   Source File: AbstractTablePartWorker.java    License: MIT License 4 votes vote down vote up
@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);
}
 
Example 2
Source Project: quetzal   Source File: CTEToNestedQueryConverter.java    License: Eclipse Public License 2.0 4 votes vote down vote up
public Limit getLimit() {
	return setOp.getLimit();
}
 
Example 3
Source Project: quetzal   Source File: CTEToNestedQueryConverter.java    License: Eclipse Public License 2.0 4 votes vote down vote up
public void setLimit(Limit limit) {
	setOp.setLimit(limit);
}