Merge pull request #1944 from ebean-orm/feature/1943

#1943 - Use limit & offset via setFirstRow() and setMaxRows() on filterMany()
This commit is contained in:
Rob Bygrave
2020-02-22 09:26:03 +13:00
committed by GitHub
9 changed files with 139 additions and 26 deletions
@@ -36,4 +36,11 @@ public interface SpiExpressionList<T> extends ExpressionList<T>, SpiExpression {
* Write the top level where expressions taking into account possible extra idEquals expression.
*/
void writeDocQuery(DocQueryContext context, SpiExpression idEquals) throws IOException;
/**
* Apply firstRow maxRows limits on the filterMany query.
*/
default void applyRowLimits(SpiQuery<?> query) {
// do nothing by default
}
}