public class Olap4jQueryExecuterFactory extends AbstractQueryExecuterFactory
| Modifier and Type | Field and Description |
|---|---|
static String |
CANONICAL_LANGUAGE |
QUERY_EXECUTER_FACTORY_PREFIX| Constructor and Description |
|---|
Olap4jQueryExecuterFactory() |
| Modifier and Type | Method and Description |
|---|---|
JRQueryExecuter |
createQueryExecuter(JasperReportsContext jasperReportsContext,
JRDataset dataset,
Map<String,? extends JRValueParameter> parameters)
Creates a query executer.
|
Object[] |
getBuiltinParameters()
Returns the built-in parameters associated with this query type.
|
protected Object |
getParameterValue(Map<String,? extends JRValueParameter> valueParams,
String name) |
boolean |
supportsQueryParameterType(String className)
Decides whether the query executers created by this factory support a query parameter type.
|
createQueryExecuterpublic static final String CANONICAL_LANGUAGE
public Object[] getBuiltinParameters()
QueryExecuterFactory{"Param1", String.class, "Param2", "List.class"}).public JRQueryExecuter createQueryExecuter(JasperReportsContext jasperReportsContext, JRDataset dataset, Map<String,? extends JRValueParameter> parameters) throws JRException
QueryExecuterFactoryjasperReportsContext - the JasperReportsContextdataset - the dataset containing the query, fields, etcparameters - map of value parameters (instances of JRValueParameter)
indexed by nameJRExceptionprotected final Object getParameterValue(Map<String,? extends JRValueParameter> valueParams, String name)
public boolean supportsQueryParameterType(String className)
QueryExecuterFactoryclassName - the value class name of the parameterCopyright © 2015. All rights reserved.