| net.sf.jasperreports.engine.query.JRQueryExecuterFactory
All known Subclasses: net.sf.jasperreports.engine.query.JRJdbcQueryExecuterFactory, net.sf.jasperreports.olap.JRMdxQueryExecuterFactory, net.sf.jasperreports.engine.query.JRJpaQueryExecuterFactory, net.sf.jasperreports.olap.JRMondrianQueryExecuterFactory, net.sf.jasperreports.engine.query.JRXPathQueryExecuterFactory, net.sf.jasperreports.olap.xmla.JRXmlaQueryExecuterFactory, net.sf.jasperreports.engine.query.JRHibernateQueryExecuterFactory,
JRQueryExecuterFactory | public interface JRQueryExecuterFactory (Code) | | Factory classes used to create query executers.
For each query language, a query executer factory must be created and registered as a JR property.
Query executer factory instances must be thread-safe as they are cached and used as singletons.
author: Lucian Chirita (lucianc@users.sourceforge.net) version: $Id: JRQueryExecuterFactory.java 1828 2007-08-24 13:58:43Z teodord $ See Also: net.sf.jasperreports.engine.query.JRQueryExecuter |
Method Summary | |
public JRQueryExecuter | createQueryExecuter(JRDataset dataset, Map parameters) Creates a query executer. | public Object[] | getBuiltinParameters() Returns the built-in parameters associated with this query type.
These parameters will be created as system-defined parameters for each
report/dataset having a query of this type.
The returned array should contain consecutive pairs of parameter names and parameter classes
(e.g. | public boolean | supportsQueryParameterType(String className) Decides whether the query executers created by this factory support a query parameter type. |
QUERY_EXECUTER_FACTORY_PREFIX | final public static String QUERY_EXECUTER_FACTORY_PREFIX(Code) | | Prefix for query executer factory properties.
To obtain query executer factories, a property having the query language appended to this prefix is used
to get the query executer factory name.
|
createQueryExecuter | public JRQueryExecuter createQueryExecuter(JRDataset dataset, Map parameters) throws JRException(Code) | | Creates a query executer.
This method is called at fill time for reports/datasets having a query supported by
this factory.
Parameters: dataset - the dataset containing the query, fields, etc Parameters: parameters - map of value parameters (instances of JRValueParameter JRValueParameter)indexed by name a query executer throws: JRException - |
getBuiltinParameters | public Object[] getBuiltinParameters()(Code) | | Returns the built-in parameters associated with this query type.
These parameters will be created as system-defined parameters for each
report/dataset having a query of this type.
The returned array should contain consecutive pairs of parameter names and parameter classes
(e.g. {"Param1", String.class, "Param2", "List.class"} ).
array of built-in parameter names and types associated with this query type |
supportsQueryParameterType | public boolean supportsQueryParameterType(String className)(Code) | | Decides whether the query executers created by this factory support a query parameter type.
This check is performed for all $P{..} parameters in the query.
Parameters: className - the value class name of the parameter whether the parameter value type is supported |
|
|