public abstract class AbstractRemoteFunctionQueryExecutor<QueryT extends AbstractRemoteFunctionQuery<QueryT,QueryResultT>,QueryResultT extends AbstractRemoteFunctionQueryResult<QueryT,QueryResultT>> extends Object implements QueryExecutor<QueryT,QueryResultT>
Constructor and Description |
---|
AbstractRemoteFunctionQueryExecutor() |
Modifier and Type | Method and Description |
---|---|
QueryResultT |
execute(ErpConfigContext configContext,
QueryT query)
Executes a query against an SAP S/4HANA system.
|
protected abstract QueryExecutor<QueryT,QueryResultT> |
getJCoQueryExecutor(String destinationName)
Retrieves the
QueryExecutor for communication based on the SAP Java Connector (JCo). |
protected QueryExecutor<QueryT,QueryResultT> |
getQueryExecutor(ErpConfigContext configContext)
Retrieves the
QueryExecutor to use. |
protected abstract QueryExecutor<QueryT,QueryResultT> |
getSoapQueryExecutor()
Retrieves the
QueryExecutor for communication based on SOAP. |
@Nonnull protected abstract QueryExecutor<QueryT,QueryResultT> getSoapQueryExecutor()
QueryExecutor
for communication based on SOAP.QueryExecutor
instance.@Nonnull protected abstract QueryExecutor<QueryT,QueryResultT> getJCoQueryExecutor(String destinationName)
QueryExecutor
for communication based on the SAP Java Connector (JCo).destinationName
- The name of the RFC destination to use.QueryExecutor
instance.@Nonnull protected QueryExecutor<QueryT,QueryResultT> getQueryExecutor(ErpConfigContext configContext) throws QuerySerializationException, DestinationNotFoundException, DestinationAccessException
QueryExecutor
to use.QueryExecutor
instance.QuerySerializationException
DestinationNotFoundException
DestinationAccessException
@Nonnull public QueryResultT execute(ErpConfigContext configContext, QueryT query) throws QuerySerializationException, QueryExecutionException, DestinationNotFoundException, DestinationAccessException
execute
in interface QueryExecutor<QueryT extends AbstractRemoteFunctionQuery<QueryT,QueryResultT>,QueryResultT extends AbstractRemoteFunctionQueryResult<QueryT,QueryResultT>>
configContext
- The ErpConfigContext
to be used for execution.query
- The subclass of Query
to execute.QuerySerializationException
- If there is an issue while serializing the query.QueryExecutionException
- If there is an issue while executing the query.DestinationNotFoundException
- If no destination with the name specified in the ErpConfigContext
can be found.DestinationAccessException
- If there is an issue while accessing destination information.Copyright © 2018 SAP SE. All rights reserved.