| java.lang.Object net.sf.jasperreports.engine.query.JRAbstractQueryExecuter
All known Subclasses: net.sf.jasperreports.engine.query.JRJpaQueryExecuter, net.sf.jasperreports.olap.JRMondrianQueryExecuter, net.sf.jasperreports.engine.query.JRXPathQueryExecuter, net.sf.jasperreports.engine.query.JRJdbcQueryExecuter, net.sf.jasperreports.olap.xmla.JRXmlaQueryExecuter, net.sf.jasperreports.engine.query.JRHibernateQueryExecuter,
JRAbstractQueryExecuter | abstract public class JRAbstractQueryExecuter implements JRQueryExecuter(Code) | | Base abstract query executer.
author: Lucian Chirita (lucianc@users.sourceforge.net) version: $Id: JRAbstractQueryExecuter.java 1737 2007-06-04 15:18:39Z teodord $ |
Inner Class :protected static class QueryParameter | |
Method Summary | |
protected void | addQueryMultiParameters(String parameterName, int count) Records a multi-valued query parameter. | protected void | addQueryParameter(String parameterName) Records a query parameter. | protected void | appendClauseChunk(StringBuffer sbuffer, String[] clauseTokens) Handles a
JRQueryChunk.TYPE_CLAUSE_TOKENS clause query chunk . | protected void | appendParameterChunk(StringBuffer sbuffer, String chunkText) | protected void | appendParameterClauseChunk(StringBuffer sbuffer, String chunkText) | protected void | appendQueryChunk(StringBuffer sbuffer, JRQueryChunk chunk) | protected void | appendTextChunk(StringBuffer sbuffer, String text) | protected void | applyClause(JRClauseFunction function, JRClauseTokens tokens, StringBuffer sbuffer) | protected void | checkParameter(String parameterName) | protected List | getCollectedParameterNames() Returns the list of parameter names in the order in which they appear in the query. | protected List | getCollectedParameters() Returns the list of
QueryParameter query parameters in the order in which they appear in the query. | protected JRFillParameter | getParameter(String parameterName) Return a fill parameter from the paramter map. | abstract protected String | getParameterReplacement(String parameterName) Returns the replacement text for a query paramter. | protected Object | getParameterValue(String parameterName, boolean ignoreMissing) Returns the value of a fill paramter. | protected Object | getParameterValue(String parameterName) Returns the value of a fill paramter. | protected String | getQueryString() Returns the parsed query string with the paramter clauses replaced by the paramter values and
the parameters replaced by
JRAbstractQueryExecuter.getParameterReplacement(String) getParameterReplacement . | protected JRValueParameter | getValueParameter(String parameterName, boolean ignoreMissing) Return a value parameter from the paramters map. | protected JRValueParameter | getValueParameter(String parameterName) Return a value parameter from the parameters map. | protected void | parseQuery() Parses the query and replaces the parameter clauses by the paramter values and
the parameters by the return value of
JRAbstractQueryExecuter.getParameterReplacement(String) getParameterReplacement . | protected void | registerClauseFunction(String id, JRClauseFunction function) Registers a clause function. | protected JRClauseFunction | resolveFunction(String id) Resolves a clause function ID to a function instance. | protected void | unregisterClauseFunction(String id) Unregisters a clause function. |
CLAUSE_POSITION_ID | final protected static int CLAUSE_POSITION_ID(Code) | | |
clauseFunctions | final protected Map clauseFunctions(Code) | | Clause function registry.
|
JRAbstractQueryExecuter | protected JRAbstractQueryExecuter(JRDataset dataset, Map parametersMap)(Code) | | |
addQueryMultiParameters | protected void addQueryMultiParameters(String parameterName, int count)(Code) | | Records a multi-valued query parameter.
Parameters: parameterName - the parameter name Parameters: count - the value count See Also: JRAbstractQueryExecuter.getCollectedParameters() See Also: QueryParameter.isMulti |
checkParameter | protected void checkParameter(String parameterName)(Code) | | |
getCollectedParameterNames | protected List getCollectedParameterNames()(Code) | | Returns the list of parameter names in the order in which they appear in the query.
the list of parameter names |
getCollectedParameters | protected List getCollectedParameters()(Code) | | Returns the list of
QueryParameter query parameters in the order in which they appear in the query.
the list of query parameters |
getParameterReplacement | abstract protected String getParameterReplacement(String parameterName)(Code) | | Returns the replacement text for a query paramter.
Parameters: parameterName - the paramter name the replacement text See Also: JRQueryChunk.TYPE_PARAMETER |
getParameterValue | protected Object getParameterValue(String parameterName, boolean ignoreMissing)(Code) | | Returns the value of a fill paramter.
Parameters: parameterName - the paramter name Parameters: ignoreMissing - if true , the method will return null for non existing parameters;otherwise, an exception will be thrown if the parameter does not exist the parameter value |
getParameterValue | protected Object getParameterValue(String parameterName)(Code) | | Returns the value of a fill paramter.
Parameters: parameterName - the paramter name the parameter value |
getValueParameter | protected JRValueParameter getValueParameter(String parameterName, boolean ignoreMissing)(Code) | | Return a value parameter from the paramters map.
Parameters: parameterName - the paramter name Parameters: ignoreMissing - if true , the method will return null for non existing parameters;otherwise, an exception will be thrown if the parameter does not exist the parameter |
getValueParameter | protected JRValueParameter getValueParameter(String parameterName)(Code) | | Return a value parameter from the parameters map.
Parameters: parameterName - the parameter name the parameter |
registerClauseFunction | protected void registerClauseFunction(String id, JRClauseFunction function)(Code) | | Registers a clause function.
Parameters: id - the function ID Parameters: function - the function |
resolveFunction | protected JRClauseFunction resolveFunction(String id)(Code) | | Resolves a clause function ID to a function instance.
Parameters: id - the function ID the clause function registered for the ID throws: JRRuntimeException - if no function for the ID is found |
unregisterClauseFunction | protected void unregisterClauseFunction(String id)(Code) | | Unregisters a clause function.
Parameters: id - the function ID |
|
|