com.sap.cloud.sdk.service.prov.api.annotations.ExtendUpdate Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of api Show documentation
Show all versions of api Show documentation
SAP Cloud Platform SDK for service development
/*******************************************************************************
* (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:
*
* -
* Input parameter of type {@link com.sap.cloud.sdk.service.prov.api.request.UpdateRequest UpdateRequest}
*
* -
* Input parameter of type {@link com.sap.cloud.sdk.service.prov.api.ExtensionHelper ExtensionHelper}
*
* -
* Return value of type {@link com.sap.cloud.sdk.service.prov.api.response.UpdateResponse UpdateResponse}
*
*
*
*
* @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