net.simplace.core.ui.jfreechart.JDBCMultiCategoryDataset

This is an enhanced version of the JFreeChart org.jfree.data.jdbc.JDBCCategoryDataset class. While the JFreeChart class expects the associated SQL statement to return a separate numerical column for every series, this class also handles statements that return 3 columns: two VARCHAR columns that contain the category's and series' names and a single numerical column that contains the values. If a statement returns three columns as described above, the second column will be interpreted as series names. Otherwise, this class will return the same result as the JFreeChart implementation.


public class JDBCMultiCategoryDataset extends
org.jfree.data.jdbc.JDBCCategoryDataset {
// Public Constructors
public JDBCMultiCategoryDataset(Connection aConnection, String aQuery)
throws SQLException;
public JDBCMultiCategoryDataset(Connection aConnection);


// Public Instance Methods
public void executeQuery(Connection aConnection, String aQuery)
throws SQLException; // Overrides
org.jfree.data.jdbc.JDBCCategoryDataset


Fills the dataset with the data returned by the specified query. Please refer to this class's description for more information on how columns in the result set are tranlated to categories and series.


}



Hierarchy: java.lang.Object - org.jfree.data.general.AbstractDataset (org.jfree.data.general.Dataset, java.lang.Cloneable, java.io.Serializable, java.io.ObjectInputValidation) - org.jfree.data.category.DefaultCategoryDataset (org.jfree.data.category.CategoryDataset, org.jfree.util.PublicCloneable, java.io.Serializable) - org.jfree.data.jdbc.JDBCCategoryDataset - JDBCMultiCategoryDataset