public abstract class JCoRemoteFunctionQueryExecutor<QueryT extends AbstractRemoteFunctionQuery<QueryT,QueryResultT>,QueryResultT extends AbstractRemoteFunctionQueryResult<QueryT,QueryResultT>> extends AbstractQueryExecutor<QueryT,QueryResultT>
DEFAULT_LONG_RUNNING_REQUEST_THRESHOLD, MAX_UNCOMPRESSED_PAYLOAD_LENGTH
Constructor and Description |
---|
JCoRemoteFunctionQueryExecutor(String destinationName) |
Modifier and Type | Method and Description |
---|---|
QueryResultT |
execute(ErpConfigContext configContext,
QueryT query)
Executes a query against an SAP S/4HANA system.
|
protected List<com.sap.cloud.sdk.s4hana.connectivity.rfc.AbstractRemoteFunctionQueryResult.Result> |
getReturnParameterResults(QueryResultT result) |
protected abstract QueryResultT |
newQueryResult() |
appendQueryParam, deserializeQuery, executeQuery, executeRequest, getBodyAsCompressedEntity, getMeasurements, getNonSensitiveHeadersAsString, getQueryExecutionFailedMessage, getRequestBody, getRequestHeaders, getRequestMethod, getRequestUri, handleBadGateway, handleForbidden, handleHttpError, handleHttpStatus, handleInternalServerError, handleServiceUnavailableError, handleUnauthorized, logReadAccessAttempt, newRequest, recordExecutionDuration, serializeQuery
public JCoRemoteFunctionQueryExecutor(@NonNull String destinationName)
@Nonnull protected abstract QueryResultT newQueryResult()
@Nonnull @NonNull public QueryResultT execute(ErpConfigContext configContext, QueryT query) throws QueryExecutionException
configContext
- The ErpConfigContext
to be used for execution.query
- The subclass of Query
to execute.QueryExecutionException
- If there is an issue while executing the query.protected List<com.sap.cloud.sdk.s4hana.connectivity.rfc.AbstractRemoteFunctionQueryResult.Result> getReturnParameterResults(QueryResultT result)
Copyright © 2018 SAP SE. All rights reserved.