Modifier and Type | Method and Description |
---|---|
long |
execute(HttpDestinationProperties destination)
Deprecated.
Use the improved method
executeRequest(HttpDestinationProperties) instead. |
long |
executeRequest(HttpDestinationProperties destination)
Executes the underlying query for count, using the stored values, plus any query modifiers that were previously
called.
|
ODataRequestCount |
toRequest()
Creates an instance of
ODataRequestCount . |
@Deprecated public long execute(@Nonnull HttpDestinationProperties destination) throws com.sap.cloud.sdk.odatav2.connectivity.ODataException
executeRequest(HttpDestinationProperties)
instead.destination
- Supply the destination for executing the underlying OData query.com.sap.cloud.sdk.odatav2.connectivity.ODataException
- If the execution of the command failed.public long executeRequest(@Nonnull HttpDestinationProperties destination)
execute(HttpDestinationProperties)
. Contrary to
execute(HttpDestinationProperties)
this operation does not request the service metadata before
performing the actual request. As a consequence FluentHelperBasic.withoutCachingMetadata()
and
FluentHelperBasic.cachingMetadata()
have no effect on this operation. Furthermore, error handlers
registered via FluentHelperRead.withErrorHandler(ErrorResultHandler)
will not be respected.destination
- The target system this request should be issued against.DestinationAccessException
- If there is an issue accessing the
HttpDestination
.HttpClientInstantiationException
- If there is an issue creating the HttpClient
.ODataException
- If the OData request execution failed. Please find the documentation for ODataException
possible sub-types and error scenarios they can occur in.@Beta @Nonnull public ODataRequestCount toRequest()
ODataRequestCount
.
The following settings are used:
Copyright © 2021 SAP SE. All rights reserved.