Bug 201549 Aggregation in charts
Build ID: I20070625-1500 Steps To Reproduce: 1. New chart 2. Select data 3. Data binding... 4. Add aggregation 5. Select COUNT or COUNTDISTINCT function 6. Select a data field with a datatype equal to date Result: the aggregation type is equal to date (i.e. the data type of the selected field) instead of integer
data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/api/aggregation/IAggregation.java
/*******************************************************************************
 * Copyright (c) 2004, 2005 Actuate Corporation.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *  Actuate Corporation  - initial API and implementation
 *******************************************************************************/
package org.eclipse.birt.data.engine.api.aggregation;
/**
 * Each instance of IAggregation defines an aggregation which can be used in BIRT.
 * All user defined aggregations should implement this interface.
 */
public interface IAggregation
{
    public static final int SUMMARY_AGGR = 0;
    public static final int RUNNING_AGGR = 1;
    
    
    /**
     * Gets the name that identifies the aggregate function represented by this class.
     * For BIRT built-in aggregations, this is the name of the JavaScript function (e.g., "SUM",
     * "AVG", etc). 
     */
    public String getName();
    /**
     * Gets the type of the Aggregation. The aggregation can be SUMMARY_AGGR, meaning that only one value