Package com.sap.cds

Interface CdsDataProcessor.Generator

Enclosing interface:
CdsDataProcessor
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@Beta @FunctionalInterface public static interface CdsDataProcessor.Generator
Function to compute a value for a CdsElement.

This is a functional interface whose functional method is generate(Path, CdsElement, boolean).

  • Method Summary

    Modifier and Type
    Method
    Description
    generate(Path path, CdsElement element, boolean isNull)
    Generates a value for the given element.
  • Method Details

    • generate

      Object generate(Path path, CdsElement element, boolean isNull)
      Generates a value for the given element.
      Parameters:
      path - the path to the element
      element - the CDS element
      isNull - true if the element is mapped to null, false if there is no value mapped to the element
      Returns:
      the generated value, or null