Class ODataRequestCount
java.lang.Object
com.sap.cloud.sdk.datamodel.odata.client.request.ODataRequestGeneric
com.sap.cloud.sdk.datamodel.odata.client.request.ODataRequestRead
com.sap.cloud.sdk.datamodel.odata.client.request.ODataRequestCount
- All Implemented Interfaces:
ODataRequestExecutable
The result type of the OData Count request.
-
Field Summary
Fields inherited from class com.sap.cloud.sdk.datamodel.odata.client.request.ODataRequestGeneric
csrfTokenRetriever, resourcePath, servicePath
-
Constructor Summary
ConstructorDescriptionODataRequestCount
(String servicePath, ODataResourcePath resourcePath, StructuredQuery query) Constructor with StructuredQuery for OData Count request.ODataRequestCount
(String servicePath, ODataResourcePath resourcePath, String encodedQuery, ODataProtocol protocol) Default constructor for OData Count request.ODataRequestCount
(String servicePath, String entityName, String encodedQuery, ODataProtocol protocol) Default constructor for OData Count request. -
Method Summary
Methods inherited from class com.sap.cloud.sdk.datamodel.odata.client.request.ODataRequestRead
execute, getQueryString, getRelativeUri, getRequestQuery
Methods inherited from class com.sap.cloud.sdk.datamodel.odata.client.request.ODataRequestGeneric
addHeader, addHeaderIfAbsent, addListener, addQueryParameter, getHeaders, getListeners, getProtocol, getQueryParameters, getRelativeUri, getResourcePath, getServicePath, setCsrfTokenRetriever, setHeader, setHeader, tryExecute, tryExecuteWithCsrfToken
-
Constructor Details
-
ODataRequestCount
public ODataRequestCount(@Nonnull String servicePath, @Nonnull String entityName, @Nullable String encodedQuery, @Nonnull ODataProtocol protocol) Default constructor for OData Count request.- Parameters:
servicePath
- The OData service path.entityName
- The OData entity name.encodedQuery
- Optional: The encoded HTTP query, if any.protocol
- The OData protocol to use.
-
ODataRequestCount
public ODataRequestCount(@Nonnull String servicePath, @Nonnull ODataResourcePath resourcePath, @Nullable String encodedQuery, @Nonnull ODataProtocol protocol) Default constructor for OData Count request.- Parameters:
servicePath
- The OData service path.resourcePath
- TheODataResourcePath
that identifies the collection to be counted.encodedQuery
- Optional: The encoded HTTP query, if any.protocol
- The OData protocol to use.
-
ODataRequestCount
public ODataRequestCount(@Nonnull String servicePath, @Nonnull ODataResourcePath resourcePath, @Nonnull StructuredQuery query) Constructor with StructuredQuery for OData Count request.- Parameters:
servicePath
- The OData service path.resourcePath
- TheODataResourcePath
that identifies the collection to be counted.query
- The structured query.
-
-
Method Details
-
equals
- Overrides:
equals
in classODataRequestRead
-
canEqual
- Overrides:
canEqual
in classODataRequestRead
-
hashCode
public int hashCode()- Overrides:
hashCode
in classODataRequestRead
-