01: package com.calipso.reportgenerator.reportmanager;
02:
03: import com.calipso.reportgenerator.reportcalculator.CubeIterator;
04:
05: import java.util.Collection;
06:
07: /**
08: * Rerre el cube report data
09: */
10: public class CubeReportDataIterator extends ReportDataIterator {
11: private CubeIterator cubeIterator;
12:
13: public CubeReportDataIterator(CubeIterator cubeIterator) {
14: this .cubeIterator = cubeIterator;
15: }
16:
17: protected CubeIterator getCubeIterator() {
18: return cubeIterator;
19: }
20:
21: public void advance() {
22: getCubeIterator().advance();
23: }
24:
25: public boolean hasNext() {
26: return getCubeIterator().hasNext();
27: }
28:
29: public Object[] current() {
30: return getCubeIterator().current();
31: }
32:
33: public Collection currentTotals() {
34: return getCubeIterator().currentTotals();
35: }
36: }
|