KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > dbforms > util > CewolfDatasetProducer


1 /*
2  * $Header: /cvsroot/jdbforms/dbforms/src/org/dbforms/util/CewolfDatasetProducer.java,v 1.1 2004/10/23 13:35:40 hkollmann Exp $
3  * $Revision: 1.1 $
4  * $Date: 2004/10/23 13:35:40 $
5  *
6  * DbForms - a Rapid Application Development Framework
7  * Copyright (C) 2001 Joachim Peer <joepeer@excite.com>
8  *
9  * This library is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU Lesser General Public
11  * License as published by the Free Software Foundation; either
12  * version 2.1 of the License, or (at your option) any later version.
13  *
14  * This library is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17  * Lesser General Public License for more details.
18  *
19  * You should have received a copy of the GNU Lesser General Public
20  * License along with this library; if not, write to the Free Software
21  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22  */

23 package org.dbforms.util;
24 import java.util.Date JavaDoc;
25 import java.util.Map JavaDoc;
26
27 import de.laures.cewolf.DatasetProduceException;
28 import de.laures.cewolf.DatasetProducer;
29
30 public class CewolfDatasetProducer implements DatasetProducer {
31     private Object JavaDoc dataset;
32     
33     public CewolfDatasetProducer(Object JavaDoc dataset) {
34        this.dataset = dataset;
35     }
36     /* (non-Javadoc)
37      * @see de.laures.cewolf.DatasetProducer#getProducerId()
38      */

39     public String JavaDoc getProducerId() {
40         return "org.dbforms.util.CewolfDatasetProducer";
41     }
42     /* (non-Javadoc)
43      * @see de.laures.cewolf.DatasetProducer#hasExpired(java.util.Map, java.util.Date)
44      */

45     public boolean hasExpired(Map JavaDoc params, Date JavaDoc since) {
46         return true;
47     }
48     
49     /* (non-Javadoc)
50      * @see de.laures.cewolf.DatasetProducer#produceDataset(java.util.Map)
51      */

52     public Object JavaDoc produceDataset(Map JavaDoc params) throws DatasetProduceException {
53         return dataset;
54     }
55 }
56
Popular Tags