BUG-544850: Allow to set limit on Query-API Signed-off-by: Fabian Dreier <fabian.dreier@karakun.com>
diff --git a/src/main/java/org/eclipse/mdm/api/base/query/Query.java b/src/main/java/org/eclipse/mdm/api/base/query/Query.java index 41e21af..104f297 100644 --- a/src/main/java/org/eclipse/mdm/api/base/query/Query.java +++ b/src/main/java/org/eclipse/mdm/api/base/query/Query.java
@@ -296,6 +296,14 @@ Query order(Attribute attribute, boolean ascending); /** + * Sets the maximum number of rows fetched by the query. 0 denotes no limit. + * + * @param limit number of maximum rows. + * @return This query is returned. + */ + Query limit(int limit); + + /** * Executes this query with an empty {@link Filter} and returns the * {@link Result}. *