use of org.apache.cayenne.dba.firebird.sqltree.FirebirdLimitNode in project cayenne by apache.
the class FirebirdSQLTreeProcessor method onLimitOffsetNode.
@Override
protected void onLimitOffsetNode(Node parent, LimitOffsetNode child, int index) {
if (child.getLimit() == 0 && child.getOffset() == 0) {
return;
}
int from = child.getOffset() + 1;
int to = child.getLimit() == 0 ? Integer.MAX_VALUE : from + child.getLimit();
replaceChild(parent, index, new FirebirdLimitNode(from, to));
}
Aggregations