public class ODataQuery extends Object implements IODataQuery
| Constructor and Description |
|---|
ODataQuery(String servicePath,
String entity,
Map<String,Object> keys,
ODataQueryBuilder.ODataQueryResolver oDataQueryResolver,
ErrorResultHandler<?> errorHandler,
Map<String,String> headers,
Map<String,String> destinationRelevantHeaders,
boolean useMetadata,
boolean cacheMetadata,
URL metadataFilePath,
com.sap.cloud.sdk.cloudplatform.cache.CacheKey cacheKey,
boolean isCacheRefresh) |
ODataQuery(String servicePath,
String entity,
Map<String,Object> keys,
ODataQueryBuilder.ODataQueryResolver oDataQueryResolver,
ErrorResultHandler<?> errorHandler,
Map<String,String> headers,
Map<String,String> destinationRelevantHeaders,
boolean useMetadata,
boolean cacheMetadata,
URL metadataFilePath,
com.sap.cloud.sdk.cloudplatform.cache.CacheKey cacheKey,
boolean isCacheRefresh,
List<ODataNavigationRequest> navigationProperties) |
| Modifier and Type | Method and Description |
|---|---|
String |
addNavigations(String url) |
ODataQueryResult |
execute(org.apache.http.client.HttpClient providedClient)
Executes the OData query represented by this ODataQuery object.
|
ODataQueryResult |
execute(org.apache.http.client.HttpClient providedClient,
boolean isMediaRequest)
Executes the OData query represented by this ODataQuery object.
|
ODataQueryResult |
execute(String destinationName)
Executes the OData query represented by this ODataQuery object.
|
ODataQueryResult |
execute(com.sap.cloud.sdk.cloudplatform.connectivity.WithDestinationName withDestinationName)
Executes the OData query represented by this ODataQuery object.
|
static String |
forMetadata(String path) |
String |
getMetadataQuery() |
List<ODataNavigationRequest> |
getNavigations() |
String |
toString() |
org.apache.olingo.odata2.api.edm.EdmEntitySet |
updateNavigationType(org.apache.olingo.odata2.api.edm.Edm edm) |
public ODataQuery(String servicePath, String entity, Map<String,Object> keys, ODataQueryBuilder.ODataQueryResolver oDataQueryResolver, ErrorResultHandler<?> errorHandler, Map<String,String> headers, Map<String,String> destinationRelevantHeaders, boolean useMetadata, boolean cacheMetadata, URL metadataFilePath, com.sap.cloud.sdk.cloudplatform.cache.CacheKey cacheKey, boolean isCacheRefresh)
public ODataQuery(String servicePath, String entity, Map<String,Object> keys, ODataQueryBuilder.ODataQueryResolver oDataQueryResolver, ErrorResultHandler<?> errorHandler, Map<String,String> headers, Map<String,String> destinationRelevantHeaders, boolean useMetadata, boolean cacheMetadata, URL metadataFilePath, com.sap.cloud.sdk.cloudplatform.cache.CacheKey cacheKey, boolean isCacheRefresh, List<ODataNavigationRequest> navigationProperties)
public ODataQueryResult execute(org.apache.http.client.HttpClient providedClient) throws ODataException
execute in interface IODataQueryprovidedClient - custom HttpClient capable of connecting to the data sourceODataExceptionpublic ODataQueryResult execute(org.apache.http.client.HttpClient providedClient, boolean isMediaRequest) throws ODataException
execute in interface IODataQueryprovidedClient - HttpClient capable of connecting to the data sourceisMediaRequest - indicates if the request is for a media resourceODataExceptionpublic ODataQueryResult execute(com.sap.cloud.sdk.cloudplatform.connectivity.WithDestinationName withDestinationName) throws ODataException
execute in interface IODataQuerywithDestinationName - ODataExceptionpublic ODataQueryResult execute(String destinationName) throws ODataException
execute in interface IODataQuerydestinationName - ODataExceptionpublic List<ODataNavigationRequest> getNavigations()
public String addNavigations(String url) throws org.apache.olingo.odata2.api.edm.EdmException, ODataException
org.apache.olingo.odata2.api.edm.EdmExceptionODataExceptionpublic org.apache.olingo.odata2.api.edm.EdmEntitySet updateNavigationType(org.apache.olingo.odata2.api.edm.Edm edm)
throws org.apache.olingo.odata2.api.edm.EdmException,
ODataException
org.apache.olingo.odata2.api.edm.EdmExceptionODataExceptionpublic String toString()
toString in interface IODataQuerytoString in class Objectpublic String getMetadataQuery()
getMetadataQuery in interface IODataQueryCopyright © 2020 SAP. All Rights Reserved.