All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sap.cloud.sdk.service.prov.api.annotations.ExtendUpdate Maven / Gradle / Ivy

There is a newer version: 1.40.11
Show newest version
/*******************************************************************************
 * (c) 201X SAP SE or an SAP affiliate company. All rights reserved.
 ******************************************************************************/
package com.sap.cloud.sdk.service.prov.api.annotations;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
* 

The ExtendUpdate annotation attached to a public method specifies that the method implements * the Update operation of an entity set in a service. This method overrides the default Update operation of * the generic OData service provisioned by the SDK.

* *

A method to which this annotation is attached must provide the following: *

    *
  1. * Input parameter of type {@link com.sap.cloud.sdk.service.prov.api.request.UpdateRequest UpdateRequest} *
  2. *
  3. * Input parameter of type {@link com.sap.cloud.sdk.service.prov.api.ExtensionHelper ExtensionHelper} *
  4. *
  5. * Return value of type {@link com.sap.cloud.sdk.service.prov.api.response.UpdateResponse UpdateResponse} *
  6. *
*

* * @param entity Name of the entity * @param serviceName [optional] Name of the service to which the entity belongs * * @deprecated As of version 1.16.0, replaced by {@link Update} */ @Deprecated @Target({ElementType.METHOD}) @Retention(RetentionPolicy.RUNTIME) public @interface ExtendUpdate { String serviceName() default ""; String entity() default ""; //Using entitySet name in the annotation does not makes sense as user only specify entity name in CDS. use entity instead. @Deprecated String[] entitySet() default {}; }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy