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

public class ProductUnitsOfMeasureEAN extends VdmEntity<ProductUnitsOfMeasureEAN>
GTIN Data

Original entity name from the Odata EDM: A_ProductUnitsOfMeasureEANType

  • Field Details

    • ALL_FIELDS

      public static final ProductUnitsOfMeasureEANSelectable ALL_FIELDS
      Selector for all available fields of ProductUnitsOfMeasureEAN.
    • PRODUCT

      public static final ProductUnitsOfMeasureEANField<String> PRODUCT
      Use with available fluent helpers to apply the Product field to query operations.
    • ALTERNATIVE_UNIT

      public static final ProductUnitsOfMeasureEANField<String> ALTERNATIVE_UNIT
      Use with available fluent helpers to apply the AlternativeUnit field to query operations.
    • CONSECUTIVE_NUMBER

      public static final ProductUnitsOfMeasureEANField<String> CONSECUTIVE_NUMBER
      Use with available fluent helpers to apply the ConsecutiveNumber field to query operations.
    • PRODUCT_STANDARD_ID

      public static final ProductUnitsOfMeasureEANField<String> PRODUCT_STANDARD_ID
      Use with available fluent helpers to apply the ProductStandardID field to query operations.
    • INTERNATIONAL_ARTICLE_NUMBER_CAT

      public static final ProductUnitsOfMeasureEANField<String> INTERNATIONAL_ARTICLE_NUMBER_CAT
      Use with available fluent helpers to apply the InternationalArticleNumberCat field to query operations.
    • IS_MAIN_GLOBAL_TRADE_ITEM_NUMBER

      public static final ProductUnitsOfMeasureEANField<Boolean> IS_MAIN_GLOBAL_TRADE_ITEM_NUMBER
      Use with available fluent helpers to apply the IsMainGlobalTradeItemNumber field to query operations.
  • Constructor Details

    • ProductUnitsOfMeasureEAN

      public ProductUnitsOfMeasureEAN()
    • ProductUnitsOfMeasureEAN

      public ProductUnitsOfMeasureEAN(@Nullable String product, @Nullable String alternativeUnit, @Nullable String consecutiveNumber, @Nullable String productStandardID, @Nullable String internationalArticleNumberCat, @Nullable Boolean isMainGlobalTradeItemNumber)
  • Method Details

    • getType

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

      public void setProduct(@Nullable String product)
      (Key Field) Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: Product

      Parameters:
      product - Material Number
    • setAlternativeUnit

      public void setAlternativeUnit(@Nullable String alternativeUnit)
      (Key Field) Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: AlternativeUnit

      Parameters:
      alternativeUnit - Unit of Measure for Display
    • setConsecutiveNumber

      public void setConsecutiveNumber(@Nullable String consecutiveNumber)
      (Key Field) Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: ConsecutiveNumber

      Parameters:
      consecutiveNumber - Consecutive Number
    • setProductStandardID

      public void setProductStandardID(@Nullable String productStandardID)
      Constraints: Not nullable, Maximum length: 18

      Original property name from the Odata EDM: ProductStandardID

      Parameters:
      productStandardID - International Article Number (EAN/UPC)
    • setInternationalArticleNumberCat

      public void setInternationalArticleNumberCat(@Nullable String internationalArticleNumberCat)
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: InternationalArticleNumberCat

      Parameters:
      internationalArticleNumberCat - Category of Global Trade Item Number (GTIN)
    • setIsMainGlobalTradeItemNumber

      public void setIsMainGlobalTradeItemNumber(@Nullable Boolean isMainGlobalTradeItemNumber)
      Constraints: none

      Original property name from the Odata EDM: IsMainGlobalTradeItemNumber

      Parameters:
      isMainGlobalTradeItemNumber - Indicator: Main EAN
    • getEntityCollection

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

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

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

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

      @Nonnull public static <T> ProductUnitsOfMeasureEANField<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> ProductUnitsOfMeasureEANField<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<ProductUnitsOfMeasureEAN>
    • setServicePathForFetch

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

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

      protected String getDefaultServicePath()
      Overrides:
      getDefaultServicePath in class VdmEntity<ProductUnitsOfMeasureEAN>
    • builder

    • getProduct

      @Nullable public String getProduct()
      (Key Field) Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: Product

      Returns:
      Material Number
    • getAlternativeUnit

      @Nullable public String getAlternativeUnit()
      (Key Field) Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: AlternativeUnit

      Returns:
      Unit of Measure for Display
    • getConsecutiveNumber

      @Nullable public String getConsecutiveNumber()
      (Key Field) Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: ConsecutiveNumber

      Returns:
      Consecutive Number
    • getProductStandardID

      @Nullable public String getProductStandardID()
      Constraints: Not nullable, Maximum length: 18

      Original property name from the Odata EDM: ProductStandardID

      Returns:
      International Article Number (EAN/UPC)
    • getInternationalArticleNumberCat

      @Nullable public String getInternationalArticleNumberCat()
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: InternationalArticleNumberCat

      Returns:
      Category of Global Trade Item Number (GTIN)
    • getIsMainGlobalTradeItemNumber

      @Nullable public Boolean getIsMainGlobalTradeItemNumber()
      Constraints: none

      Original property name from the Odata EDM: IsMainGlobalTradeItemNumber

      Returns:
      Indicator: Main EAN
    • toString

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

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

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

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