java.lang.Object
com.sap.cloud.sdk.datamodel.odata.helper.VdmObject<EntityT>
com.sap.cloud.sdk.datamodel.odata.helper.VdmEntity<RecipeText>
com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.recipeheaderandformula.RecipeText

public class RecipeText extends VdmEntity<RecipeText>
Recipe Descriptions

Original entity name from the Odata EDM: A_RecipeTextType

  • Field Details

    • ALL_FIELDS

      public static final RecipeTextSelectable ALL_FIELDS
      Selector for all available fields of RecipeText.
    • DELETE_MC

      public static final RecipeTextField<Boolean> DELETE_MC
      Use with available fluent helpers to apply the Delete_mc field to query operations.
    • UPDATE_MC

      public static final RecipeTextField<Boolean> UPDATE_MC
      Use with available fluent helpers to apply the Update_mc field to query operations.
    • RECIPE_UUID

      public static final RecipeTextField<UUID> RECIPE_UUID
      Use with available fluent helpers to apply the RecipeUUID field to query operations.
    • LANGUAGE

      public static final RecipeTextField<String> LANGUAGE
      Use with available fluent helpers to apply the Language field to query operations.
    • RECIPE_DESCRIPTION

      public static final RecipeTextField<String> RECIPE_DESCRIPTION
      Use with available fluent helpers to apply the RecipeDescription field to query operations.
    • RECIPE_LAST_CHANGE_DATE_TIME

      public static final RecipeTextField<ZonedDateTime> RECIPE_LAST_CHANGE_DATE_TIME
      Use with available fluent helpers to apply the RecipeLastChangeDateTime field to query operations.
    • RECIPE

      public static final RecipeTextField<String> RECIPE
      Use with available fluent helpers to apply the Recipe field to query operations.
    • TO_RECIPE

      public static final RecipeTextOneToOneLink<Recipe> TO_RECIPE
      Use with available fluent helpers to apply the to_Recipe navigation property to query operations.
  • Constructor Details

    • RecipeText

      public RecipeText()
    • RecipeText

      public RecipeText(@Nullable Boolean delete_mc, @Nullable Boolean update_mc, @Nullable UUID recipeUUID, @Nullable String language, @Nullable String recipeDescription, @Nullable ZonedDateTime recipeLastChangeDateTime, @Nullable String recipe, @Nullable Recipe toRecipe)
  • Method Details

    • getType

      @Nonnull public Class<RecipeText> getType()
      Specified by:
      getType in class VdmObject<RecipeText>
    • setDelete_mc

      public void setDelete_mc(@Nullable Boolean delete_mc)
      Constraints: none

      Original property name from the Odata EDM: Delete_mc

      Parameters:
      delete_mc - Dyn. Method Control
    • setUpdate_mc

      public void setUpdate_mc(@Nullable Boolean update_mc)
      Constraints: none

      Original property name from the Odata EDM: Update_mc

      Parameters:
      update_mc - Dyn. Method Control
    • setRecipeUUID

      public void setRecipeUUID(@Nullable UUID recipeUUID)
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: RecipeUUID

      Parameters:
      recipeUUID - Common Recipe GUID
    • setLanguage

      public void setLanguage(@Nullable String language)
      (Key Field) Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: Language

      Parameters:
      language - Language Key
    • setRecipeDescription

      public void setRecipeDescription(@Nullable String recipeDescription)
      Constraints: Not nullable, Maximum length: 132

      Original property name from the Odata EDM: RecipeDescription

      Parameters:
      recipeDescription - Recipe Description
    • setRecipeLastChangeDateTime

      public void setRecipeLastChangeDateTime(@Nullable ZonedDateTime recipeLastChangeDateTime)
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: RecipeLastChangeDateTime

      Parameters:
      recipeLastChangeDateTime - UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
    • setRecipe

      public void setRecipe(@Nullable String recipe)
      Constraints: Not nullable, Maximum length: 20

      Original property name from the Odata EDM: Recipe

      Parameters:
      recipe - Recipe ID
    • getEntityCollection

      protected String getEntityCollection()
      Specified by:
      getEntityCollection in class VdmEntity<RecipeText>
    • getKey

      @Nonnull protected Map<String,Object> getKey()
      Overrides:
      getKey in class VdmObject<RecipeText>
    • toMapOfFields

      @Nonnull protected Map<String,Object> toMapOfFields()
      Overrides:
      toMapOfFields in class VdmObject<RecipeText>
    • fromMap

      protected void fromMap(Map<String,Object> inputValues)
      Overrides:
      fromMap in class VdmObject<RecipeText>
    • field

      @Nonnull public static <T> RecipeTextField<T> field(@Nonnull String fieldName, @Nonnull Class<T> fieldType)
      Use with available fluent helpers to apply an extension field to query operations.
      Type Parameters:
      T - The type of the extension field when performing value comparisons.
      Parameters:
      fieldName - The name of the extension field as returned by the OData service.
      fieldType - The Java type to use for the extension field when performing value comparisons.
      Returns:
      A representation of an extension field from this entity.
    • field

      @Nonnull public static <T, DomainT> RecipeTextField<T> field(@Nonnull String fieldName, @Nonnull TypeConverter<T,DomainT> typeConverter)
      Use with available fluent helpers to apply an extension field to query operations.
      Type Parameters:
      T - The type of the extension field when performing value comparisons.
      DomainT - The type of the extension field as returned by the OData service.
      Parameters:
      typeConverter - A TypeConverter<T, DomainT> instance whose first generic type matches the Java type of the field
      fieldName - The name of the extension field as returned by the OData service.
      Returns:
      A representation of an extension field from this entity, holding a reference to the given TypeConverter.
    • getDestinationForFetch

      @Nullable public HttpDestinationProperties getDestinationForFetch()
      Overrides:
      getDestinationForFetch in class VdmEntity<RecipeText>
    • setServicePathForFetch

      protected void setServicePathForFetch(@Nullable String servicePathForFetch)
      Overrides:
      setServicePathForFetch in class VdmEntity<RecipeText>
    • attachToService

      public void attachToService(@Nullable String servicePath, @Nonnull HttpDestinationProperties destination)
      Overrides:
      attachToService in class VdmEntity<RecipeText>
    • getDefaultServicePath

      protected String getDefaultServicePath()
      Overrides:
      getDefaultServicePath in class VdmEntity<RecipeText>
    • toMapOfNavigationProperties

      @Nonnull protected Map<String,Object> toMapOfNavigationProperties()
      Overrides:
      toMapOfNavigationProperties in class VdmObject<RecipeText>
    • fetchRecipe

      @Nullable public Recipe fetchRecipe()
      Fetches the Recipe entity (one to one) associated with this entity. This corresponds to the OData navigation property to_Recipe.

      Please note: This method will not cache or persist the query results.

      Returns:
      The single associated Recipe entity, or null if an entity is not associated.
      Throws:
      com.sap.cloud.sdk.datamodel.odata.client.exception.ODataException - If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and therefore has no ERP configuration context assigned. An entity is managed if it has been either retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or UPDATE call.
    • getRecipeOrFetch

      @Nullable public Recipe getRecipeOrFetch()
      Retrieval of associated Recipe entity (one to one). This corresponds to the OData navigation property to_Recipe.

      If the navigation property to_Recipe of a queried RecipeText is operated lazily, an ODataException can be thrown in case of an OData query error.

      Please note: Lazy loading of OData entity associations is the process of asynchronous retrieval and persisting of items from a navigation property. If a lazy property is requested by the application for the first time and it has not yet been loaded, an OData query will be run in order to load the missing information and its result will get cached for future invocations.

      Returns:
      List of associated Recipe entity.
      Throws:
      com.sap.cloud.sdk.datamodel.odata.client.exception.ODataException - If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and therefore has no ERP configuration context assigned. An entity is managed if it has been either retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or UPDATE call.
    • getRecipeIfPresent

      @Nonnull public io.vavr.control.Option<Recipe> getRecipeIfPresent()
      Retrieval of associated Recipe entity (one to one). This corresponds to the OData navigation property to_Recipe.

      If the navigation property for an entity RecipeText has not been resolved yet, this method will not query further information. Instead its Option result state will be empty.

      Returns:
      If the information for navigation property to_Recipe is already loaded, the result will contain the Recipe entity. If not, an Option with result state empty is returned.
    • setRecipe

      public void setRecipe(Recipe value)
      Overwrites the associated Recipe entity for the loaded navigation property to_Recipe.
      Parameters:
      value - New Recipe entity.
    • builder

      @Nonnull public static RecipeText.RecipeTextBuilder builder()
    • getDelete_mc

      @Nullable public Boolean getDelete_mc()
      Constraints: none

      Original property name from the Odata EDM: Delete_mc

      Returns:
      Dyn. Method Control
    • getUpdate_mc

      @Nullable public Boolean getUpdate_mc()
      Constraints: none

      Original property name from the Odata EDM: Update_mc

      Returns:
      Dyn. Method Control
    • getRecipeUUID

      @Nullable public UUID getRecipeUUID()
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: RecipeUUID

      Returns:
      Common Recipe GUID
    • getLanguage

      @Nullable public String getLanguage()
      (Key Field) Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: Language

      Returns:
      Language Key
    • getRecipeDescription

      @Nullable public String getRecipeDescription()
      Constraints: Not nullable, Maximum length: 132

      Original property name from the Odata EDM: RecipeDescription

      Returns:
      Recipe Description
    • getRecipeLastChangeDateTime

      @Nullable public ZonedDateTime getRecipeLastChangeDateTime()
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: RecipeLastChangeDateTime

      Returns:
      UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
    • getRecipe

      @Nullable public String getRecipe()
      Constraints: Not nullable, Maximum length: 20

      Original property name from the Odata EDM: Recipe

      Returns:
      Recipe ID
    • toString

      @Nonnull public String toString()
      Overrides:
      toString in class VdmObject<RecipeText>
    • equals

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class VdmEntity<RecipeText>
    • canEqual

      protected boolean canEqual(@Nullable Object other)
      Overrides:
      canEqual in class VdmEntity<RecipeText>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class VdmEntity<RecipeText>