package ervu_dashboard.model.chart.round;

import property.grid.Formatter;
import rpc.LoadGraphSource;

import ru.cg.webbpm.modules.database.bean.annotation.GraphSource;
import ru.cg.webbpm.modules.database.bean.entity_graph.EntityColumn;
import ru.cg.webbpm.modules.standard_annotations.validation.NotNull;

/**
 * @author Vitaly Chekushkin
 */

public class RoundAggregationDataSet {
  @NotNull
  public RoundAggregationData aggregationData;
  @NotNull
  @GraphSource(
      value = LoadGraphSource.class,
      scanMode = GraphSource.ScanMode.CLOSEST_PROPERTY_CONTEXT
  )
  public EntityColumn[] groupByColumns = new EntityColumn[0];
  @GraphSource(
      value = LoadGraphSource.class,
      scanMode = GraphSource.ScanMode.CLOSEST_PROPERTY_CONTEXT
  )
  public EntityColumn labelColumn;
  public Formatter<Object, Object> labelColumFormatter;
  public RoundChartColumnSort[] columnSorts = new RoundChartColumnSort[0];
}
