1 package com.calipso.reportgenerator.reportmanager; 2 3 import com.calipso.reportgenerator.reportcalculator.CubeIterator; 4 5 import java.util.Collection ; 6 7 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 [] current() { 29 return getCubeIterator().current(); 30 } 31 32 public Collection currentTotals() { 33 return getCubeIterator().currentTotals(); 34 } 35 } 36 | Popular Tags |