1 23 package org.dbforms.util; 24 import java.util.Date ; 25 import java.util.Map ; 26 27 import de.laures.cewolf.DatasetProduceException; 28 import de.laures.cewolf.DatasetProducer; 29 30 public class CewolfDatasetProducer implements DatasetProducer { 31 private Object dataset; 32 33 public CewolfDatasetProducer(Object dataset) { 34 this.dataset = dataset; 35 } 36 39 public String getProducerId() { 40 return "org.dbforms.util.CewolfDatasetProducer"; 41 } 42 45 public boolean hasExpired(Map params, Date since) { 46 return true; 47 } 48 49 52 public Object produceDataset(Map params) throws DatasetProduceException { 53 return dataset; 54 } 55 } 56 | Popular Tags |