java.lang.Object
com.sap.cloud.sdk.datamodel.odatav4.core.VdmObject<EntityT>
com.sap.cloud.sdk.datamodel.odatav4.core.VdmEntity<ProductGroupText>
com.sap.cloud.sdk.s4hana.datamodel.odatav4.namespaces.productgroupdata.ProductGroupText
All Implemented Interfaces:
VdmEntitySet

public class ProductGroupText extends VdmEntity<ProductGroupText> implements VdmEntitySet
Product Group Text

Original entity name from the Odata EDM: ProductGroupTextType

  • Field Details

  • Constructor Details

    • ProductGroupText

      public ProductGroupText()
    • ProductGroupText

      public ProductGroupText(@Nullable String productGroup, @Nullable String language, @Nullable String productGroupName, @Nullable String productGroupText, @Nullable ProductGroup to_ProductGroup)
  • Method Details

    • getType

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

      public void setProductGroup(@Nullable String productGroup)
      (Key Field) Constraints: Not nullable, Maximum length: 9

      Original property name from the Odata EDM: ProductGroup

      Parameters:
      productGroup - Product Group
    • 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
    • setProductGroupName

      public void setProductGroupName(@Nullable String productGroupName)
      Constraints: Not nullable, Maximum length: 20

      Original property name from the Odata EDM: ProductGroupName

      Parameters:
      productGroupName - Product Group Description
    • setProductGroupText

      public void setProductGroupText(@Nullable String productGroupText)
      Constraints: Not nullable, Maximum length: 60

      Original property name from the Odata EDM: ProductGroupText

      Parameters:
      productGroupText - Description of the Material Group
    • getEntityCollection

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

      @Nonnull protected ODataEntityKey getKey()
      Overrides:
      getKey in class VdmObject<ProductGroupText>
    • toMapOfFields

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

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

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

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

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

      If the navigation property for an entity ProductGroupText 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 _ProductGroup is already loaded, the result will contain the ProductGroup entity. If not, an Option with result state empty is returned.
    • setProductGroup

      public void setProductGroup(ProductGroup value)
      Overwrites the associated ProductGroup entity for the loaded navigation property _ProductGroup.
      Parameters:
      value - New ProductGroup entity.
    • builder

      @Nonnull public static ProductGroupText.ProductGroupTextBuilder builder()
    • getProductGroup

      @Nullable public String getProductGroup()
      (Key Field) Constraints: Not nullable, Maximum length: 9

      Original property name from the Odata EDM: ProductGroup

      Returns:
      Product Group
    • getLanguage

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

      Original property name from the Odata EDM: Language

      Returns:
      Language Key
    • getProductGroupName

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

      Original property name from the Odata EDM: ProductGroupName

      Returns:
      Product Group Description
    • getProductGroupText

      @Nullable public String getProductGroupText()
      Constraints: Not nullable, Maximum length: 60

      Original property name from the Odata EDM: ProductGroupText

      Returns:
      Description of the Material Group
    • toString

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

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

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

      public int hashCode()
      Overrides:
      hashCode in class VdmEntity<ProductGroupText>
    • getOdataType

      public String getOdataType()
      Specified by:
      getOdataType in class VdmObject<ProductGroupText>