public interface QueryExecuterFactory extends JRQueryExecuterFactory
JRQueryExecuter
Modifier and Type | Field and Description |
---|---|
static String |
QUERY_EXECUTER_FACTORY_PREFIX
Prefix for query executer factory properties.
|
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.
|
boolean |
supportsQueryParameterType(String className)
Decides whether the query executers created by this factory support a query parameter type.
|
createQueryExecuter
static final String QUERY_EXECUTER_FACTORY_PREFIX
Object[] getBuiltinParameters()
{"Param1", String.class, "Param2", "List.class"}
).getBuiltinParameters
in interface JRQueryExecuterFactory
JRQueryExecuter createQueryExecuter(JasperReportsContext jasperReportsContext, JRDataset dataset, Map<String,? extends JRValueParameter> parameters) throws JRException
jasperReportsContext
- the JasperReportsContextdataset
- the dataset containing the query, fields, etcparameters
- map of value parameters (instances of JRValueParameter
)
indexed by nameJRException
boolean supportsQueryParameterType(String className)
supportsQueryParameterType
in interface JRQueryExecuterFactory
className
- the value class name of the parameterCopyright © 2017. All rights reserved.