1 28 package net.sf.jasperreports.olap.xmla; 29 30 import java.util.Map ; 31 32 import net.sf.jasperreports.engine.JRDataset; 33 import net.sf.jasperreports.engine.JRException; 34 import net.sf.jasperreports.engine.query.JRQueryExecuter; 35 import net.sf.jasperreports.engine.query.JRQueryExecuterFactory; 36 37 38 42 public class JRXmlaQueryExecuterFactory implements JRQueryExecuterFactory 43 { 44 45 public final static String PARAMETER_XMLA_URL = "XMLA_URL"; 46 47 public final static String PARAMETER_XMLA_DATASOURCE = "XMLA_DATASOURCE"; 48 49 public final static String PARAMETER_XMLA_CATALOG = "XMLA_CATALOG"; 50 51 private final static Object [] XMLA_BUILTIN_PARAMETERS = { 52 PARAMETER_XMLA_URL, String .class, 53 PARAMETER_XMLA_DATASOURCE, String .class, 54 PARAMETER_XMLA_CATALOG, String .class, }; 55 56 public Object [] getBuiltinParameters() 57 { 58 return XMLA_BUILTIN_PARAMETERS; 59 } 60 61 public JRQueryExecuter createQueryExecuter(JRDataset dataset, Map parameters) throws JRException 62 { 63 return new JRXmlaQueryExecuter(dataset, parameters); 64 } 65 66 public boolean supportsQueryParameterType(String className) 67 { 68 return true; 69 } 70 71 } 72 | Popular Tags |