Class ODataRequestReadByKey

java.lang.Object
com.sap.cloud.sdk.datamodel.odata.client.request.ODataRequestGeneric
com.sap.cloud.sdk.datamodel.odata.client.request.ODataRequestReadByKey
All Implemented Interfaces:
ODataRequestExecutable

public class ODataRequestReadByKey extends ODataRequestGeneric
The result type of the OData read by key request.
  • Constructor Details

    • ODataRequestReadByKey

      public ODataRequestReadByKey(@Nonnull String servicePath, @Nonnull String entityName, @Nonnull ODataEntityKey entityKey, @Nullable String encodedQuery, @Nonnull ODataProtocol protocol)
      Convenience constructor for OData read requests on entity collections directly. For operations on nested entities use ODataRequestReadByKey(String, ODataResourcePath, String, ODataProtocol).
      Parameters:
      servicePath - The OData service path.
      entityName - The OData entity name.
      entityKey - The entity key.
      encodedQuery - Optional: The encoded HTTP query, if any.
      protocol - The OData protocol to use.
    • ODataRequestReadByKey

      public ODataRequestReadByKey(@Nonnull String servicePath, @Nonnull ODataResourcePath entityPath, @Nullable String encodedQuery, @Nonnull ODataProtocol protocol)
      Default constructor for OData Read requests.
      Parameters:
      servicePath - The OData service path.
      entityPath - The ODataResourcePath that identifies the entity to read.
      encodedQuery - Optional: The encoded HTTP query, if any.
      protocol - The OData protocol to use.
    • ODataRequestReadByKey

      public ODataRequestReadByKey(@Nonnull String servicePath, @Nonnull ODataResourcePath entityPath, @Nonnull ODataEntityKey entityKey, @Nonnull StructuredQuery query)
      Constructor with StructuredQuery for OData read requests on entity collections directly. For operations on nested entity collections use #ODataRequestRead(String, ODataResourcePath, String, ODataProtocol).
      Parameters:
      servicePath - The OData service path.
      entityPath - The ODataResourcePath that identifies the collection of entities or properties to read.
      entityKey - The entity key.
      query - The structured query.
  • Method Details