KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > de > laures > cewolf > dp > DataSourceXYDatasetProducer


1 package de.laures.cewolf.dp;
2
3 import java.io.Serializable JavaDoc;
4 import java.util.Date JavaDoc;
5 import java.util.Map JavaDoc;
6
7 import de.laures.cewolf.DatasetProduceException;
8 import de.laures.cewolf.DatasetProducer;
9
10 /**
11  * @author glaures
12  *
13  * To change this generated comment edit the template variable "typecomment":
14  * Window>Preferences>Java>Templates.
15  * To enable and disable the creation of type comments go to
16  * Window>Preferences>Java>Code Generation.
17  */

18 public class DataSourceXYDatasetProducer implements DatasetProducer, Serializable JavaDoc {
19
20     public static final String JavaDoc PARAM_SERIES_LIST = "series";
21
22     /**
23      * @see de.laures.cewolf.DatasetProducer#produceDataset(Map)
24      */

25     public Object JavaDoc produceDataset(Map JavaDoc params) throws DatasetProduceException {
26         /*
27         DataSourceXYSeries series = new DataSourceXYSeries("select * from xy;");
28         XYSeriesCollection dataset = new XYSeriesCollection();
29         try {
30             DataSource ds = getDataSource((String)params.get(PARAM_DATASOURCE));
31             dataset.addSeries(series.produceXYSeries(ds));
32         } catch (NamingException nEx) {
33             nEx.printStackTrace();
34             throw new DatasetProduceException(nEx.getMessage());
35         }
36         */

37         return null;
38     }
39
40     /**
41      * @see de.laures.cewolf.DatasetProducer#hasExpired(Map, Date)
42      */

43     public boolean hasExpired(Map JavaDoc params, Date JavaDoc since) {
44         return true;
45     }
46
47     /**
48      * @see de.laures.cewolf.DatasetProducer#getProducerId()
49      */

50     public String JavaDoc getProducerId() {
51         return toString();
52     }
53
54 }
55
Popular Tags