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

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

The 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 Function annotation attached to a public method specifies * that the method provides the implementation logic of a function.

* *

* A method to which this annotation is attached supports two signatures depending on the following scenarios: *

*

* SCENARIO 1: You're executing the function on your local HANA database. *

    *
  1. * Input parameter of type {@link com.sap.cloud.sdk.service.prov.api.request.OperationRequest OperationRequest} *
  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.OperationResponse OperationResponse} *
  6. *
*

* *

* SCENARIO 2: You're executing the function only on a remote data source. *

    *
  1. * Input parameter of type {@link com.sap.cloud.sdk.service.prov.api.request.OperationRequest OperationRequest} *
  2. *
  3. * Return value of type {@link com.sap.cloud.sdk.service.prov.api.response.OperationResponse OperationResponse} *
  4. *
*

* * * @param serviceName Name of the service * @param Name Name of the function within the service */ @Target({ElementType.METHOD}) @Retention(RetentionPolicy.RUNTIME) public @interface Function { String serviceName() default ""; String Name(); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy