Class ODataRequestFunction

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

public class ODataRequestFunction extends ODataRequestGeneric
The executable OData function request.
  • Constructor Details

    • ODataRequestFunction

      public ODataRequestFunction(@Nonnull String servicePath, @Nonnull String functionName, @Nonnull ODataFunctionParameters parameters, @Nonnull ODataProtocol protocol)
      Convenience constructor for invocations of unbound functions. The function parameters will be added to the URL path or URL query depending on the OData protocol verison. For composable or bound functions please use ODataRequestFunction(String, ODataResourcePath, String, ODataProtocol) instead.
      Parameters:
      servicePath - The OData service path.
      functionName - The name of the unbound OData function.
      parameters - The parameters of the function invocation.
      protocol - The OData protocol to use.
    • ODataRequestFunction

      public ODataRequestFunction(@Nonnull String servicePath, @Nonnull ODataResourcePath functionPath, @Nonnull ODataFunctionParameters parameters, @Nullable String query, @Nonnull ODataProtocol protocol)
      Convenience constructor for invocations of unbound functions. The function parameters will be added to the URL path or URL query depending on the OData protocol verison. For composable or bound functions please use ODataRequestFunction(String, ODataResourcePath, String, ODataProtocol) instead.
      Parameters:
      servicePath - The OData service path.
      functionPath - The full ODataResourcePath containing the function name, its parameters and possible further path segments. If this is a bound function the path must also contain the full path to the function.
      parameters - The parameters of the function invocation.
      query - Optional: The encoded HTTP query, if any.
      protocol - The OData protocol to use.
    • ODataRequestFunction

      public ODataRequestFunction(@Nonnull String servicePath, @Nonnull ODataResourcePath functionPath, @Nullable String encodedQuery, @Nonnull ODataProtocol protocol)
      Default constructor for OData Function request.
      Parameters:
      servicePath - The OData service path.
      functionPath - The full ODataResourcePath containing the function name, its parameters and possible further path segments. If this is a bound function the path must also contain the full path to the function.
      encodedQuery - Optional: The encoded HTTP query, if any.
      protocol - The OData protocol to use.
    • ODataRequestFunction

      public ODataRequestFunction(@Nonnull String servicePath, @Nonnull ODataResourcePath functionPath, @Nonnull StructuredQuery structQuery)
      Constructor with StructuredQuery for OData Function request.
      Parameters:
      servicePath - The OData service path.
      functionPath - The full ODataResourcePath containing the function name, its parameters and possible further path segments. If this is a bound function the path must also contain the full path to the function.
      structQuery - The structured query.
  • Method Details