KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > calipso > reportgenerator > reportmanager > CubeReportDataIterator


1 package com.calipso.reportgenerator.reportmanager;
2
3 import com.calipso.reportgenerator.reportcalculator.CubeIterator;
4
5 import java.util.Collection JavaDoc;
6
7 /**
8  * Rerre el cube report data
9  */

10 public class CubeReportDataIterator extends ReportDataIterator {
11   private CubeIterator cubeIterator;
12   public CubeReportDataIterator(CubeIterator cubeIterator) {
13     this.cubeIterator = cubeIterator;
14   }
15
16   protected CubeIterator getCubeIterator() {
17     return cubeIterator;
18   }
19
20   public void advance() {
21     getCubeIterator().advance();
22   }
23
24   public boolean hasNext() {
25     return getCubeIterator().hasNext();
26   }
27
28   public Object JavaDoc[] current() {
29     return getCubeIterator().current();
30   }
31
32   public Collection JavaDoc currentTotals() {
33     return getCubeIterator().currentTotals();
34   }
35 }
36
Popular Tags