Annotation Type Operation


@Retention(RUNTIME) @Target(METHOD) public @interface Operation
Mark method as EDM function import.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
     
    Operation type, function or action.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    A function element MAY specify a Boolean value for the IsComposable attribute.
     
    The action/function MAY/MUST specify a return type using the edm:ReturnType element.
  • Element Details

    • name

      String name
    • type

      Operation type, function or action.
      Returns:
      operation type.
    • referenceType

      Class<?> referenceType
      Default:
      java.lang.Void.class
    • returnType

      String returnType
      The action/function MAY/MUST specify a return type using the edm:ReturnType element. The return type must be a scalar, entity or complex type, or a collection of scalar, entity or complex types.
      Returns:
      operation return type.
      Default:
      ""
    • isComposable

      boolean isComposable
      A function element MAY specify a Boolean value for the IsComposable attribute. If no value is specified for the IsComposable attribute, the value defaults to false.
      Functions whose IsComposable attribute is true are considered composable. A composable function can be invoked with additional path segments or system query options appended to the path that identifies the composable function as appropriate for the type returned by the composable function.
      Returns:
      TRUE if is composable; FALSE otherwise.
      Default:
      false