public abstract class ExpressionQuery extends Query
Constructor and Description |
---|
ExpressionQuery(DataService dataService,
String queryId,
List<QueryParam> queryParams,
String query,
Result result,
String configId,
EventTrigger inputEventTrigger,
EventTrigger outputEventTrigger,
Map<String,String> advancedProperties,
String inputNamespace) |
Modifier and Type | Method and Description |
---|---|
protected String |
createProcessedQuery(String query,
InternalParamCollection params,
int paramCount)
Returns the Query manipulated to suite the given parameters, e.g.
|
int |
getParamCount() |
String |
getQuery() |
protected void |
init(String query)
Pre-processing of the query
|
protected boolean |
isDynamicQuery(InternalParamCollection params)
This method checks whether DataTypes.QUERY_STRING type parameters are available in the query
input mappings and returns a boolean value.
|
protected Object[] |
processDynamicQuery(String query,
InternalParamCollection params)
Modifies the Query to include the direct value of the parameters of type
"QUERY_STRING"; The Query will be recreated and the other parameters will
be re-organized to point to correct ordinal values.
|
addQueryPreprocessedObject, execute, getAdvancedProperties, getAndRemoveQueryPreprocessObject, getConfigId, getCurrentInternalParams, getDataService, getInputEventTrigger, getInputNamespace, getOutputEventTrigger, getQueryId, getQueryParams, getResult, hasResult, isPreBuildResult, isQueryPreprocessInitial, isQueryPreprocessSecondary, isUsingColumnNumbers, isWriteRow, resetCurrentInternalParams, resetQueryPreprocessing, runPostQuery, runPreQuery, setCurrentInternalParams, setQueryPreprocessingInitial, setQueryPreprocessingSecondary, writeResultEntry
addAttribute, endElement, getNamespace, setNamespace, startRowElement, startWrapperElement, writeResultElement
public ExpressionQuery(DataService dataService, String queryId, List<QueryParam> queryParams, String query, Result result, String configId, EventTrigger inputEventTrigger, EventTrigger outputEventTrigger, Map<String,String> advancedProperties, String inputNamespace)
public String getQuery()
public int getParamCount()
protected void init(String query) throws DataServiceFault
query
- QueryDataServiceFault
protected boolean isDynamicQuery(InternalParamCollection params)
params
- The parameters in the input mappingsprotected String createProcessedQuery(String query, InternalParamCollection params, int paramCount)
protected Object[] processDynamicQuery(String query, InternalParamCollection params)
Copyright © 2019 WSO2. All rights reserved.