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

com.sap.cloud.sdk.service.prov.api.annotations.InitTransaction 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 InitTransaction annotation attached to a public method specifies that the method is * invoked just after the transaction starts and before any operation executes. *

* *

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

    *
  1. * Input parameter of type List<{@link com.sap.cloud.sdk.service.prov.api.request.Request Request}> *
  2. *
  3. * Input parameter of type {@link com.sap.cloud.sdk.service.prov.api.ExtensionHelper ExtensionHelper} *
  4. *
*

*

A method to which this annotation is attached must provide one of the following return types: *

    *
  1. * void *
  2. *
  3. * Object of type {@link com.sap.cloud.sdk.service.prov.api.exits.InitTransactionResponse InitTransactionResponse} *
  4. *
*

* * @param serviceName [optional] Name of the service. The annotated method applies to all entity sets within the specified * service. If service name is not provided then this method executes for any entity set in * any service. */ @Target({ElementType.METHOD}) @Retention(RetentionPolicy.RUNTIME) public @interface InitTransaction { String[] serviceNames() default {}; }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy