01: package jimm.datavision.test.mock.source;
02:
03: import jimm.datavision.Report;
04: import jimm.datavision.Selectable;
05: import jimm.datavision.source.DataCursor;
06:
07: public class MockAggregateDataSource extends MockDataSource {
08:
09: public MockAggregateDataSource(Report r) {
10: super (r);
11: }
12:
13: public DataCursor execute() throws Exception {
14: return new MockAggregateDataCursor(getQuery());
15: }
16:
17: public int indexOfSelectable(Selectable sel) {
18: return MockAggregateDataCursor.indexOfSelectable(sel);
19: }
20:
21: }
|