public abstract class Query extends XMLWriterHelper
| Constructor and Description |
|---|
Query(DataService dataService,
String queryId,
List<QueryParam> queryParams,
Result result,
String configId,
EventTrigger inputEventTrigger,
EventTrigger outputEventTrigger,
Map<String,String> advancedProperties,
String inputNamespace) |
| Modifier and Type | Method and Description |
|---|---|
static void |
addQueryPreprocessedObject(Object value) |
void |
execute(XMLStreamWriter xmlWriter,
Map<String,ParamValue> params,
int queryLevel) |
Map<String,String> |
getAdvancedProperties() |
static Object |
getAndRemoveQueryPreprocessObject() |
String |
getConfigId() |
DataService |
getDataService() |
EventTrigger |
getInputEventTrigger() |
String |
getInputNamespace() |
EventTrigger |
getOutputEventTrigger() |
String |
getQueryId() |
List<QueryParam> |
getQueryParams() |
Result |
getResult() |
boolean |
hasResult() |
boolean |
isPreBuildResult() |
static boolean |
isQueryPreprocessInitial() |
static boolean |
isQueryPreprocessSecondary() |
boolean |
isUsingColumnNumbers() |
boolean |
isWriteRow() |
static void |
resetQueryPreprocessing() |
abstract void |
runPostQuery(Object result,
XMLStreamWriter xmlWriter,
InternalParamCollection params,
int queryLevel)
This method must be implemented by concrete implementations of this class,
to provide the logic to execute the query.
|
abstract Object |
runPreQuery(InternalParamCollection params,
int queryLevel)
This method must be implemented by concrete implementations of this class,
to provide the logic to execute the query.
|
static void |
setQueryPreprocessingInitial(boolean state) |
static void |
setQueryPreprocessingSecondary(boolean state) |
void |
writeResultEntry(XMLStreamWriter xmlWriter,
DataEntry dataEntry,
InternalParamCollection ipc,
int queryLevel)
writes an result entry to the output.
|
addAttribute, endElement, getNamespace, setNamespace, startRowElement, startWrapperElement, writeResultElementpublic Query(DataService dataService, String queryId, List<QueryParam> queryParams, Result result, String configId, EventTrigger inputEventTrigger, EventTrigger outputEventTrigger, Map<String,String> advancedProperties, String inputNamespace)
public String getInputNamespace()
public boolean isPreBuildResult()
public EventTrigger getInputEventTrigger()
public EventTrigger getOutputEventTrigger()
public String getConfigId()
public DataService getDataService()
public String getQueryId()
public List<QueryParam> getQueryParams()
public Result getResult()
public boolean hasResult()
public boolean isWriteRow()
public boolean isUsingColumnNumbers()
public void execute(XMLStreamWriter xmlWriter, Map<String,ParamValue> params, int queryLevel) throws DataServiceFault
DataServiceFaultpublic abstract Object runPreQuery(InternalParamCollection params, int queryLevel) throws DataServiceFault
DataServiceFaultpublic abstract void runPostQuery(Object result, XMLStreamWriter xmlWriter, InternalParamCollection params, int queryLevel) throws DataServiceFault
DataServiceFaultpublic void writeResultEntry(XMLStreamWriter xmlWriter, DataEntry dataEntry, InternalParamCollection ipc, int queryLevel) throws DataServiceFault
DataServiceFaultpublic static void setQueryPreprocessingInitial(boolean state)
public static void setQueryPreprocessingSecondary(boolean state)
public static boolean isQueryPreprocessInitial()
public static boolean isQueryPreprocessSecondary()
public static Object getAndRemoveQueryPreprocessObject()
public static void addQueryPreprocessedObject(Object value)
public static void resetQueryPreprocessing()
Copyright © 2015 WSO2. All rights reserved.