Package org.teiid.translator.odata4
Class BaseQueryExecution
- java.lang.Object
-
- org.teiid.translator.odata4.BaseQueryExecution
-
- Direct Known Subclasses:
ODataProcedureExecution
,ODataQueryExecution
,ODataUpdateExecution
public class BaseQueryExecution extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected WSConnection
connection
protected ExecutionContext
executionContext
protected RuntimeMetadata
metadata
protected ODataExecutionFactory
translator
-
Constructor Summary
Constructors Constructor Description BaseQueryExecution(ODataExecutionFactory translator, ExecutionContext executionContext, RuntimeMetadata metadata, WSConnection connection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TranslatorException
buildError(BinaryWSProcedureExecution execution)
protected InputStream
executeQuery(String method, String uri, String payload, String eTag, org.apache.olingo.commons.api.http.HttpStatusCode[] expectedStatus)
protected InputStream
executeSkipToken(URI nextURL, String baseURL, org.apache.olingo.commons.api.http.HttpStatusCode[] accepeted)
protected Map<String,List<String>>
getDefaultHeaders()
String
getName(AbstractMetadataRecord table)
protected BinaryWSProcedureExecution
invokeHTTP(String method, String uri, String payload, Map<String,List<String>> headers)
-
-
-
Field Detail
-
connection
protected WSConnection connection
-
translator
protected ODataExecutionFactory translator
-
metadata
protected RuntimeMetadata metadata
-
executionContext
protected ExecutionContext executionContext
-
-
Constructor Detail
-
BaseQueryExecution
public BaseQueryExecution(ODataExecutionFactory translator, ExecutionContext executionContext, RuntimeMetadata metadata, WSConnection connection)
-
-
Method Detail
-
executeQuery
protected InputStream executeQuery(String method, String uri, String payload, String eTag, org.apache.olingo.commons.api.http.HttpStatusCode[] expectedStatus) throws TranslatorException
- Throws:
TranslatorException
-
buildError
protected TranslatorException buildError(BinaryWSProcedureExecution execution)
-
invokeHTTP
protected BinaryWSProcedureExecution invokeHTTP(String method, String uri, String payload, Map<String,List<String>> headers) throws TranslatorException
- Throws:
TranslatorException
-
executeSkipToken
protected InputStream executeSkipToken(URI nextURL, String baseURL, org.apache.olingo.commons.api.http.HttpStatusCode[] accepeted) throws TranslatorException
- Throws:
TranslatorException
-
getName
public String getName(AbstractMetadataRecord table)
-
-