public abstract class Query<QueryT extends Query<QueryT,QueryResultT>,QueryResultT extends QueryResult<QueryT,QueryResultT>> extends Object
Modifier and Type | Method and Description |
---|---|
abstract QueryResultT |
execute(ErpEndpoint erpEndpoint)
Executes a given query against the given S/4HANA endpoint.
|
abstract String |
getConstructedByMethod() |
org.joda.time.Duration |
getLongRunningRequestThreshold()
Custom execution duration threshold indicating that the query is long running.
|
String |
getReadAccessData() |
long |
getRequestId()
Represents an identifier that allows to correlate queries between the Cloud cloudplatform and the ERP.
|
void |
setLongRunningRequestThreshold(org.joda.time.Duration longRunningRequestThreshold)
Custom execution duration threshold indicating that the query is long running.
|
public abstract String getConstructedByMethod()
@Nullable public String getReadAccessData()
public abstract QueryResultT execute(ErpEndpoint erpEndpoint) throws QuerySerializationException, QueryExecutionException, DestinationNotFoundException, DestinationAccessException
public long getRequestId()
Important: The identifier does not provide any guarantees with respect to persistence across the application lifecycle. In particular, the identifier will be reset to 1 when restarting the application.
@Nullable public org.joda.time.Duration getLongRunningRequestThreshold()
public void setLongRunningRequestThreshold(@Nullable org.joda.time.Duration longRunningRequestThreshold)
Copyright © 2018 SAP SE. All rights reserved.