01: package org.drools.reteoo;
02:
03: import java.util.Iterator;
04:
05: import org.drools.ObjectFilter;
06: import org.drools.QueryResults;
07: import org.drools.StatelessSessionResult;
08: import org.drools.WorkingMemory;
09:
10: public class ReteStatelessSessionResult implements
11: StatelessSessionResult {
12: private WorkingMemory workingMemory;
13:
14: public ReteStatelessSessionResult(WorkingMemory workingMemory) {
15: this .workingMemory = workingMemory;
16: }
17:
18: public QueryResults getQueryResults(String query) {
19: return this .workingMemory.getQueryResults(query);
20: }
21:
22: public Iterator iterateObjects() {
23: return this .workingMemory.iterateObjects();
24: }
25:
26: public Iterator iterateObjects(ObjectFilter filter) {
27: return this.workingMemory.iterateObjects(filter);
28: }
29:
30: }
|