01: package org.drools;
02:
03: import java.util.Iterator;
04:
05: public interface StatelessSessionResult {
06:
07: Iterator iterateObjects();
08:
09: Iterator iterateObjects(ObjectFilter filter);
10:
11: /**
12: * Retrieve the QueryResults of the specified query.
13: *
14: * @param query
15: * The name of the query.
16: *
17: * @return The QueryResults of the specified query.
18: * If no results match the query it is empty.
19: *
20: * @throws IllegalArgumentException
21: * if no query named "query" is found in the rulebase
22: */
23: public QueryResults getQueryResults(String query);
24:
25: }
|