package net.sf.jasperreports.crosstabs.base;

import net.sf.jasperreports.crosstabs.JRCrosstabDataset;
import net.sf.jasperreports.engine.JRElementDataset;
import net.sf.jasperreports.engine.JRExpressionCollector;
import net.sf.jasperreports.engine.base.JRBaseElementDataset;
import net.sf.jasperreports.engine.base.JRBaseObjectFactory;

public class JRBaseCrosstabDataset extends JRBaseElementDataset implements JRCrosstabDataset {
  private static final long serialVersionUID = 10200L;
  
  protected boolean dataPreSorted = false;
  
  public JRBaseCrosstabDataset(JRCrosstabDataset dataset, JRBaseObjectFactory factory) {
    super((JRElementDataset)dataset, factory);
    this.dataPreSorted = dataset.isDataPreSorted();
  }
  
  public void collectExpressions(JRExpressionCollector collector) {}
  
  public boolean isDataPreSorted() {
    return this.dataPreSorted;
  }
}
