net.sf.jsqlparser.statement.select.Limit Java Examples
The following examples show how to use
net.sf.jsqlparser.statement.select.Limit.
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 File: AbstractTablePartWorker.java From spanner-jdbc with MIT License | 4 votes |
@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 File: CTEToNestedQueryConverter.java From quetzal with Eclipse Public License 2.0 | 4 votes |
public Limit getLimit() { return setOp.getLimit(); }
Example #3
Source File: CTEToNestedQueryConverter.java From quetzal with Eclipse Public License 2.0 | 4 votes |
public void setLimit(Limit limit) { setOp.setLimit(limit); }