Package org.teiid.translator.odata
Class BaseQueryExecution
- java.lang.Object
-
- org.teiid.translator.odata.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 Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TranslatorException
buildError(BinaryWSProcedureExecution execution)
protected BinaryWSProcedureExecution
executeDirect(String method, String uri, String payload, Map<String,List<String>> headers)
protected org.teiid.translator.odata.BaseQueryExecution.ODataEntitiesResponse
executeWithComplexReturn(String method, String uri, String payload, String complexTypeName, org.odata4j.edm.EdmDataServices edsMetadata, String eTag, javax.ws.rs.core.Response.Status... expectedStatus)
protected org.teiid.translator.odata.BaseQueryExecution.ODataEntitiesResponse
executeWithReturnEntity(String method, String uri, String payload, String entityTable, org.odata4j.edm.EdmDataServices edsMetadata, String eTag, javax.ws.rs.core.Response.Status... expectedStatus)
protected static org.odata4j.core.ODataVersion
getDataServiceVersion(String headerValue)
protected Map<String,List<String>>
getDefaultHeaders()
protected org.odata4j.format.Feed
parse(Blob blob, org.odata4j.core.ODataVersion version, String entityTable, org.odata4j.edm.EdmDataServices edsMetadata)
-
-
-
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
-
parse
protected org.odata4j.format.Feed parse(Blob blob, org.odata4j.core.ODataVersion version, String entityTable, org.odata4j.edm.EdmDataServices edsMetadata) throws TranslatorException
- Throws:
TranslatorException
-
getDataServiceVersion
protected static org.odata4j.core.ODataVersion getDataServiceVersion(String headerValue)
-
executeWithReturnEntity
protected org.teiid.translator.odata.BaseQueryExecution.ODataEntitiesResponse executeWithReturnEntity(String method, String uri, String payload, String entityTable, org.odata4j.edm.EdmDataServices edsMetadata, String eTag, javax.ws.rs.core.Response.Status... expectedStatus) throws TranslatorException
- Throws:
TranslatorException
-
executeWithComplexReturn
protected org.teiid.translator.odata.BaseQueryExecution.ODataEntitiesResponse executeWithComplexReturn(String method, String uri, String payload, String complexTypeName, org.odata4j.edm.EdmDataServices edsMetadata, String eTag, javax.ws.rs.core.Response.Status... expectedStatus) throws TranslatorException
- Throws:
TranslatorException
-
buildError
protected TranslatorException buildError(BinaryWSProcedureExecution execution)
-
executeDirect
protected BinaryWSProcedureExecution executeDirect(String method, String uri, String payload, Map<String,List<String>> headers) throws TranslatorException
- Throws:
TranslatorException
-
-