public class JsonQLQueryExecuter extends AbstractJsonQueryExecuter<JsonQLDataSource>
JRAbstractQueryExecuter.QueryParameter, JRAbstractQueryExecuter.QueryParameterEntry, JRAbstractQueryExecuter.QueryParameterVisitor, JRAbstractQueryExecuter.ValuedQueryParameter, JRAbstractQueryExecuter.VisitExceptionWrapper| Modifier and Type | Field and Description |
|---|---|
static String |
CANONICAL_LANGUAGE |
CLAUSE_POSITION_ID, clauseFunctions, dataset, EXCEPTION_MESSAGE_KEY_NUMERIC_TYPE_REQUIRED, EXCEPTION_MESSAGE_KEY_PARAMETER_NOT_FOUND, EXCEPTION_MESSAGE_KEY_QUERY_CLAUSE_CIRCULARLY_NESTED_PARAMETER, EXCEPTION_MESSAGE_KEY_QUERY_CLAUSE_ID_FIRST_TOKEN_MISSING, EXCEPTION_MESSAGE_KEY_QUERY_CLAUSE_NOT_FOUND, EXCEPTION_MESSAGE_KEY_UNSUPPORTED_PARAMETER_TYPE, GET_COLLECTED| Constructor and Description |
|---|
JsonQLQueryExecuter(JasperReportsContext jasperReportsContext,
JRDataset dataset,
Map<String,? extends JRValueParameter> parametersMap) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getCanonicalQueryLanguage()
Returns a canonical query language for this query executer implementation.
|
protected JsonQLDataSource |
getJsonDataInstance(InputStream jsonInputStream) |
protected JsonQLDataSource |
getJsonDataInstance(String jsonSource) |
protected RewindableDataSourceProvider<JsonQLDataSource> |
getJsonDataProviderInstance(String source,
TextDataSourceAttributes textAttributes) |
protected String |
getParameterReplacement(String parameterName)
Returns the replacement text for a query parameter.
|
cancelQuery, close, createDatasource, getTextAttributesaddQueryMultiParameters, addQueryMultiParameters, addQueryParameter, addQueryParameter, appendClauseChunk, appendParameterChunk, appendParameterClauseChunk, appendQueryChunk, appendTextChunk, applyClause, checkParameter, findExtensionQueryFunction, getBooleanParameter, getBooleanParameter, getBooleanParameterOrProperty, getBooleanParameterOrProperty, getCollectedParameterNames, getCollectedParameters, getJasperReportsContext, getParameter, getParameterValue, getParameterValue, getPropertiesUtil, getQueryString, getStringParameter, getStringParameterOrProperty, getValueParameter, getValueParameter, parameterHasValue, parseQuery, registerClauseFunction, resolveFunction, unregisterClauseFunction, visitQueryParameterspublic static final String CANONICAL_LANGUAGE
public JsonQLQueryExecuter(JasperReportsContext jasperReportsContext, JRDataset dataset, Map<String,? extends JRValueParameter> parametersMap)
protected String getCanonicalQueryLanguage()
JRAbstractQueryExecuterThe canonical language is used to retrieve extensions for the query executer.
The default implementation returns the runtime query language used in the dataset, but query executer implementations should override this method and return a fixed language.
getCanonicalQueryLanguage in class JRAbstractQueryExecuterprotected String getParameterReplacement(String parameterName)
JRAbstractQueryExecutergetParameterReplacement in class JRAbstractQueryExecuterparameterName - the parameter nameJRQueryChunk.TYPE_PARAMETERprotected JsonQLDataSource getJsonDataInstance(InputStream jsonInputStream) throws JRException
getJsonDataInstance in class AbstractJsonQueryExecuter<JsonQLDataSource>JRExceptionprotected JsonQLDataSource getJsonDataInstance(String jsonSource) throws JRException
getJsonDataInstance in class AbstractJsonQueryExecuter<JsonQLDataSource>JRExceptionprotected RewindableDataSourceProvider<JsonQLDataSource> getJsonDataProviderInstance(String source, TextDataSourceAttributes textAttributes)
getJsonDataProviderInstance in class AbstractJsonQueryExecuter<JsonQLDataSource>Copyright © 2017. All rights reserved.