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

public class ProductTypeText extends VdmEntity<ProductTypeText> implements VdmEntitySet
Product Type Text

Original entity name from the Odata EDM: ProductTypeTextType

  • Field Details

  • Constructor Details

    • ProductTypeText

      public ProductTypeText()
    • ProductTypeText

      public ProductTypeText(@Nullable String productType, @Nullable String language, @Nullable String productTypeName, @Nullable ProductType to_ProductType)
  • Method Details

    • getType

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

      public void setProductType(@Nullable String productType)
      (Key Field) Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: ProductType

      Parameters:
      productType - Product Type
    • 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
    • setProductTypeName

      public void setProductTypeName(@Nullable String productTypeName)
      Constraints: Not nullable, Maximum length: 25

      Original property name from the Odata EDM: ProductTypeName

      Parameters:
      productTypeName - Description of product type
    • getEntityCollection

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

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

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

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

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

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

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

      If the navigation property for an entity ProductTypeText 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 _ProductType is already loaded, the result will contain the ProductType entity. If not, an Option with result state empty is returned.
    • setProductType

      public void setProductType(ProductType value)
      Overwrites the associated ProductType entity for the loaded navigation property _ProductType.
      Parameters:
      value - New ProductType entity.
    • builder

      @Nonnull public static ProductTypeText.ProductTypeTextBuilder builder()
    • getProductType

      @Nullable public String getProductType()
      (Key Field) Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: ProductType

      Returns:
      Product Type
    • getLanguage

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

      Original property name from the Odata EDM: Language

      Returns:
      Language Key
    • getProductTypeName

      @Nullable public String getProductTypeName()
      Constraints: Not nullable, Maximum length: 25

      Original property name from the Odata EDM: ProductTypeName

      Returns:
      Description of product type
    • toString

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

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

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

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

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