if (countUpTo == 0 && limit > 0 && dialect.supportsPaging()) { } else if (countUpTo > 0 && dialect.supportsPaging()) {
if (!dialect.supportsPaging()) { throw new QueryParseException("Cannot use limit/offset, not supported by database");
offset = 0; if (dialect.supportsPaging()) { query = dialect.addPagingClause(query, limit, offset); manualLimitOffset = false;
if (!dialect.supportsPaging()) { throw new QueryParseException("Cannot use limit/offset, not supported by database");