public class SQLQuery extends ExpressionQuery implements BatchRequestParticipant
| Modifier and Type | Class and Description |
|---|---|
class |
SQLQuery.FetchSizeProperty
Internal class to hold fetch size and whether to set fetch size for connection.
|
static class |
SQLQuery.QueryType |
class |
SQLQuery.StoredProcMetadataEntry
This class represents a information on a single stored procedure
parameter/result element.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
DS_QUERY_TYPE_NORMAL |
static int |
DS_QUERY_TYPE_STORED_PROC |
static int |
ORACLE_REF_CURSOR_TYPE |
| Constructor and Description |
|---|
SQLQuery(DataService dataService,
String queryId,
String configId,
boolean returnGeneratedKeys,
boolean returnUpdatedRowCount,
String[] keyColumns,
String query,
List<QueryParam> queryParams,
Result result,
EventTrigger inputEventTrigger,
EventTrigger outputEventTrigger,
Map<String,String> advancedProperties,
String inputNamespace) |
createProcessedQuery, getParamCount, getQuery, isDynamicQuery, processDynamicQueryaddQueryPreprocessedObject, execute, getAdvancedProperties, getAndRemoveQueryPreprocessObject, getConfigId, getCurrentInternalParams, getDataService, getInputEventTrigger, getInputNamespace, getOutputEventTrigger, getQueryId, getQueryParams, getResult, hasResult, isPreBuildResult, isQueryPreprocessInitial, isQueryPreprocessSecondary, isUsingColumnNumbers, isWriteRow, resetCurrentInternalParams, resetQueryPreprocessing, setCurrentInternalParams, setQueryPreprocessingInitial, setQueryPreprocessingSecondary, writeResultEntryaddAttribute, endElement, getNamespace, setNamespace, startRowElement, startWrapperElement, writeResultElementpublic static final int DS_QUERY_TYPE_NORMAL
public static final int DS_QUERY_TYPE_STORED_PROC
public static final int ORACLE_REF_CURSOR_TYPE
public SQLQuery(DataService dataService, String queryId, String configId, boolean returnGeneratedKeys, boolean returnUpdatedRowCount, String[] keyColumns, String query, List<QueryParam> queryParams, Result result, EventTrigger inputEventTrigger, EventTrigger outputEventTrigger, Map<String,String> advancedProperties, String inputNamespace) throws DataServiceFault
DataServiceFaultpublic static int getCurrentRefCursorOrdinal()
public static void setCurrentRefCursorOrdinal(int ordinal)
public void init(String query) throws DataServiceFault
ExpressionQueryinit in class ExpressionQueryquery - QueryDataServiceFaultpublic org.wso2.carbon.dataservices.common.DBConstants.AutoCommit getAutoCommit()
public boolean hasBatchQuerySupport()
public String[] getKeyColumns()
public boolean isReturnGeneratedKeys()
public boolean isReturnUpdatedRowCount()
public boolean isForceStoredProc()
public boolean isForceJDBCBatchReqs()
public boolean isHasFetchDirection()
public boolean isHasFetchSize()
public boolean isHasMaxFieldSize()
public boolean isHasMaxRows()
public boolean isHasQueryTimeout()
public int getFetchDirection()
public int getFetchSize()
public int getMaxFieldSize()
public int getMaxRows()
public int getQueryTimeout()
public SQLQuery.FetchSizeProperty getFetchSizeProperty()
public boolean hasOutParams()
public boolean isResultOnlyOutParams()
public List<QueryParam> getOutQueryParams()
public int getQueryType()
public SQLConfig getConfig()
public String[] lookupConnectionCredentials() throws DataServiceFault
DataServiceFaultpublic static String getBase64StringFromInputStream(InputStream in) throws SQLException
SQLExceptionpublic boolean hasRefCursor()
public Object runPreQuery(InternalParamCollection params, int queryLevel) throws DataServiceFault
QueryrunPreQuery in class QueryDataServiceFaultpublic void runPostQuery(Object result, XMLStreamWriter xmlWriter, InternalParamCollection params, int queryLevel) throws DataServiceFault
QueryrunPostQuery in class QueryDataServiceFaultpublic void releaseBatchRequestResources()
BatchRequestParticipantreleaseBatchRequestResources in interface BatchRequestParticipantpublic SQLQuery.QueryType getSqlQueryType()
public SQLQuery.QueryType setSqlQueryType(String query)
public static SQLQuery.QueryType sqlQueryType(String sqlQuery)
Copyright © 2019 WSO2. All rights reserved.