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

public class ProductUnitOfMeasure extends VdmEntity<ProductUnitOfMeasure> implements VdmEntitySet
Product Unit of Measure

Original entity name from the Odata EDM: ProductUnitOfMeasure_Type

  • Field Details

  • Constructor Details

    • ProductUnitOfMeasure

      public ProductUnitOfMeasure()
    • ProductUnitOfMeasure

      public ProductUnitOfMeasure(@Nullable String product, @Nullable String alternativeUnit, @Nullable String alternativeSAPUnit, @Nullable String alternativeISOUnit, @Nullable BigDecimal quantityNumerator, @Nullable BigDecimal quantityDenominator, @Nullable BigDecimal productVolume, @Nullable String volumeUnit, @Nullable String volumeISOUnit, @Nullable BigDecimal grossWeight, @Nullable String weightUnit, @Nullable String weightISOUnit, @Nullable String globalTradeItemNumber, @Nullable String globalTradeItemNumberCategory, @Nullable BigDecimal unitSpecificProductLength, @Nullable BigDecimal unitSpecificProductWidth, @Nullable BigDecimal unitSpecificProductHeight, @Nullable String productMeasurementUnit, @Nullable String productMeasurementISOUnit, @Nullable String lowerLevelPackagingUnit, @Nullable String lowerLevelPackagingISOUnit, @Nullable Short maximumStackingFactor, @Nullable BigDecimal capacityUsage, @Nullable String baseUnit, @Nullable String baseISOUnit, @Nullable Product to_Product, List<ProductUnitOfMeasureEAN> to_ProductUnitOfMeasureEAN)
  • Method Details

    • getType

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

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

      Original property name from the Odata EDM: Product

      Parameters:
      product - Product 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 - Base Unit of Measure - No Conversion Routine
    • setAlternativeSAPUnit

      public void setAlternativeSAPUnit(@Nullable String alternativeSAPUnit)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: AlternativeSAPUnit

      Parameters:
      alternativeSAPUnit - Base Unit of Measure - No Conversion Routine
    • setAlternativeISOUnit

      public void setAlternativeISOUnit(@Nullable String alternativeISOUnit)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: AlternativeISOUnit

      Parameters:
      alternativeISOUnit - Base unit of measure in ISO code
    • setQuantityNumerator

      public void setQuantityNumerator(@Nullable BigDecimal quantityNumerator)
      Constraints: Not nullable, Precision: 5

      Original property name from the Odata EDM: QuantityNumerator

      Parameters:
      quantityNumerator - Numerator for Conversion to Base Units of Measure
    • setQuantityDenominator

      public void setQuantityDenominator(@Nullable BigDecimal quantityDenominator)
      Constraints: Not nullable, Precision: 5

      Original property name from the Odata EDM: QuantityDenominator

      Parameters:
      quantityDenominator - Denominator for conversion to base units of measure
    • setProductVolume

      public void setProductVolume(@Nullable BigDecimal productVolume)
      Constraints: Not nullable, Precision: 13, Scale: 3

      Original property name from the Odata EDM: ProductVolume

      Parameters:
      productVolume - Volume
    • setVolumeUnit

      public void setVolumeUnit(@Nullable String volumeUnit)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: VolumeUnit

      Parameters:
      volumeUnit - Volume Unit
    • setVolumeISOUnit

      public void setVolumeISOUnit(@Nullable String volumeISOUnit)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: VolumeISOUnit

      Parameters:
      volumeISOUnit - Volume unit in ISO code
    • setGrossWeight

      public void setGrossWeight(@Nullable BigDecimal grossWeight)
      Constraints: Not nullable, Precision: 13, Scale: 3

      Original property name from the Odata EDM: GrossWeight

      Parameters:
      grossWeight - Gross Weight
    • setWeightUnit

      public void setWeightUnit(@Nullable String weightUnit)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: WeightUnit

      Parameters:
      weightUnit - Unit of Weight
    • setWeightISOUnit

      public void setWeightISOUnit(@Nullable String weightISOUnit)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: WeightISOUnit

      Parameters:
      weightISOUnit - Unit of weight in ISO code
    • setGlobalTradeItemNumber

      public void setGlobalTradeItemNumber(@Nullable String globalTradeItemNumber)
      Constraints: Not nullable, Maximum length: 18

      Original property name from the Odata EDM: GlobalTradeItemNumber

      Parameters:
      globalTradeItemNumber - International Article Number (EAN/UPC)
    • setGlobalTradeItemNumberCategory

      public void setGlobalTradeItemNumberCategory(@Nullable String globalTradeItemNumberCategory)
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: GlobalTradeItemNumberCategory

      Parameters:
      globalTradeItemNumberCategory - Category of Global Trade Item Number (GTIN)
    • setUnitSpecificProductLength

      public void setUnitSpecificProductLength(@Nullable BigDecimal unitSpecificProductLength)
      Constraints: Not nullable, Precision: 13, Scale: 3

      Original property name from the Odata EDM: UnitSpecificProductLength

      Parameters:
      unitSpecificProductLength - Length
    • setUnitSpecificProductWidth

      public void setUnitSpecificProductWidth(@Nullable BigDecimal unitSpecificProductWidth)
      Constraints: Not nullable, Precision: 13, Scale: 3

      Original property name from the Odata EDM: UnitSpecificProductWidth

      Parameters:
      unitSpecificProductWidth - Width
    • setUnitSpecificProductHeight

      public void setUnitSpecificProductHeight(@Nullable BigDecimal unitSpecificProductHeight)
      Constraints: Not nullable, Precision: 13, Scale: 3

      Original property name from the Odata EDM: UnitSpecificProductHeight

      Parameters:
      unitSpecificProductHeight - Height
    • setProductMeasurementUnit

      public void setProductMeasurementUnit(@Nullable String productMeasurementUnit)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: ProductMeasurementUnit

      Parameters:
      productMeasurementUnit - Unit of Dimension for Length/Width/Height
    • setProductMeasurementISOUnit

      public void setProductMeasurementISOUnit(@Nullable String productMeasurementISOUnit)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: ProductMeasurementISOUnit

      Parameters:
      productMeasurementISOUnit - Unit for length/breadth/height in ISO code
    • setLowerLevelPackagingUnit

      public void setLowerLevelPackagingUnit(@Nullable String lowerLevelPackagingUnit)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: LowerLevelPackagingUnit

      Parameters:
      lowerLevelPackagingUnit - Base Unit of Measure - No Conversion Routine
    • setLowerLevelPackagingISOUnit

      public void setLowerLevelPackagingISOUnit(@Nullable String lowerLevelPackagingISOUnit)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: LowerLevelPackagingISOUnit

      Parameters:
      lowerLevelPackagingISOUnit - Lower-Level Unit of Measure in ISO Code
    • setMaximumStackingFactor

      public void setMaximumStackingFactor(@Nullable Short maximumStackingFactor)
      Constraints: Not nullable

      Original property name from the Odata EDM: MaximumStackingFactor

      Parameters:
      maximumStackingFactor - Maximum Stacking Factor
    • setCapacityUsage

      public void setCapacityUsage(@Nullable BigDecimal capacityUsage)
      Constraints: Not nullable, Precision: 15, Scale: 3

      Original property name from the Odata EDM: CapacityUsage

      Parameters:
      capacityUsage - Capacity Usage
    • setBaseUnit

      public void setBaseUnit(@Nullable String baseUnit)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: BaseUnit

      Parameters:
      baseUnit - Base Unit of Measure
    • setBaseISOUnit

      public void setBaseISOUnit(@Nullable String baseISOUnit)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: BaseISOUnit

      Parameters:
      baseISOUnit - Base unit of measure in ISO code
    • getEntityCollection

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

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

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

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

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

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

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

      If the navigation property for an entity ProductUnitOfMeasure 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 _Product is already loaded, the result will contain the Product entity. If not, an Option with result state empty is returned.
    • setProduct

      public void setProduct(Product value)
      Overwrites the associated Product entity for the loaded navigation property _Product.
      Parameters:
      value - New Product entity.
    • getProductUnitOfMeasureEANIfPresent

      @Nonnull public io.vavr.control.Option<List<ProductUnitOfMeasureEAN>> getProductUnitOfMeasureEANIfPresent()
      Retrieval of associated ProductUnitOfMeasureEAN entities (one to many). This corresponds to the OData navigation property _ProductUnitOfMeasureEAN.

      If the navigation property for an entity ProductUnitOfMeasure 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 _ProductUnitOfMeasureEAN is already loaded, the result will contain the ProductUnitOfMeasureEAN entities. If not, an Option with result state empty is returned.
    • setProductUnitOfMeasureEAN

      public void setProductUnitOfMeasureEAN(@Nonnull List<ProductUnitOfMeasureEAN> value)
      Overwrites the list of associated ProductUnitOfMeasureEAN entities for the loaded navigation property _ProductUnitOfMeasureEAN.

      If the navigation property _ProductUnitOfMeasureEAN of a queried ProductUnitOfMeasure 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.

      Parameters:
      value - List of ProductUnitOfMeasureEAN entities.
    • addProductUnitOfMeasureEAN

      public void addProductUnitOfMeasureEAN(ProductUnitOfMeasureEAN... entity)
      Adds elements to the list of associated ProductUnitOfMeasureEAN entities. This corresponds to the OData navigation property _ProductUnitOfMeasureEAN.

      If the navigation property _ProductUnitOfMeasureEAN of a queried ProductUnitOfMeasure 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.

      Parameters:
      entity - Array of ProductUnitOfMeasureEAN entities.
    • builder

      @Nonnull public static ProductUnitOfMeasure.ProductUnitOfMeasureBuilder builder()
    • getProduct

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

      Original property name from the Odata EDM: Product

      Returns:
      Product Number
    • getAlternativeUnit

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

      Original property name from the Odata EDM: AlternativeUnit

      Returns:
      Base Unit of Measure - No Conversion Routine
    • getAlternativeSAPUnit

      @Nullable public String getAlternativeSAPUnit()
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: AlternativeSAPUnit

      Returns:
      Base Unit of Measure - No Conversion Routine
    • getAlternativeISOUnit

      @Nullable public String getAlternativeISOUnit()
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: AlternativeISOUnit

      Returns:
      Base unit of measure in ISO code
    • getQuantityNumerator

      @Nullable public BigDecimal getQuantityNumerator()
      Constraints: Not nullable, Precision: 5

      Original property name from the Odata EDM: QuantityNumerator

      Returns:
      Numerator for Conversion to Base Units of Measure
    • getQuantityDenominator

      @Nullable public BigDecimal getQuantityDenominator()
      Constraints: Not nullable, Precision: 5

      Original property name from the Odata EDM: QuantityDenominator

      Returns:
      Denominator for conversion to base units of measure
    • getProductVolume

      @Nullable public BigDecimal getProductVolume()
      Constraints: Not nullable, Precision: 13, Scale: 3

      Original property name from the Odata EDM: ProductVolume

      Returns:
      Volume
    • getVolumeUnit

      @Nullable public String getVolumeUnit()
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: VolumeUnit

      Returns:
      Volume Unit
    • getVolumeISOUnit

      @Nullable public String getVolumeISOUnit()
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: VolumeISOUnit

      Returns:
      Volume unit in ISO code
    • getGrossWeight

      @Nullable public BigDecimal getGrossWeight()
      Constraints: Not nullable, Precision: 13, Scale: 3

      Original property name from the Odata EDM: GrossWeight

      Returns:
      Gross Weight
    • getWeightUnit

      @Nullable public String getWeightUnit()
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: WeightUnit

      Returns:
      Unit of Weight
    • getWeightISOUnit

      @Nullable public String getWeightISOUnit()
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: WeightISOUnit

      Returns:
      Unit of weight in ISO code
    • getGlobalTradeItemNumber

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

      Original property name from the Odata EDM: GlobalTradeItemNumber

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

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

      Original property name from the Odata EDM: GlobalTradeItemNumberCategory

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

      @Nullable public BigDecimal getUnitSpecificProductLength()
      Constraints: Not nullable, Precision: 13, Scale: 3

      Original property name from the Odata EDM: UnitSpecificProductLength

      Returns:
      Length
    • getUnitSpecificProductWidth

      @Nullable public BigDecimal getUnitSpecificProductWidth()
      Constraints: Not nullable, Precision: 13, Scale: 3

      Original property name from the Odata EDM: UnitSpecificProductWidth

      Returns:
      Width
    • getUnitSpecificProductHeight

      @Nullable public BigDecimal getUnitSpecificProductHeight()
      Constraints: Not nullable, Precision: 13, Scale: 3

      Original property name from the Odata EDM: UnitSpecificProductHeight

      Returns:
      Height
    • getProductMeasurementUnit

      @Nullable public String getProductMeasurementUnit()
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: ProductMeasurementUnit

      Returns:
      Unit of Dimension for Length/Width/Height
    • getProductMeasurementISOUnit

      @Nullable public String getProductMeasurementISOUnit()
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: ProductMeasurementISOUnit

      Returns:
      Unit for length/breadth/height in ISO code
    • getLowerLevelPackagingUnit

      @Nullable public String getLowerLevelPackagingUnit()
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: LowerLevelPackagingUnit

      Returns:
      Base Unit of Measure - No Conversion Routine
    • getLowerLevelPackagingISOUnit

      @Nullable public String getLowerLevelPackagingISOUnit()
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: LowerLevelPackagingISOUnit

      Returns:
      Lower-Level Unit of Measure in ISO Code
    • getMaximumStackingFactor

      @Nullable public Short getMaximumStackingFactor()
      Constraints: Not nullable

      Original property name from the Odata EDM: MaximumStackingFactor

      Returns:
      Maximum Stacking Factor
    • getCapacityUsage

      @Nullable public BigDecimal getCapacityUsage()
      Constraints: Not nullable, Precision: 15, Scale: 3

      Original property name from the Odata EDM: CapacityUsage

      Returns:
      Capacity Usage
    • getBaseUnit

      @Nullable public String getBaseUnit()
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: BaseUnit

      Returns:
      Base Unit of Measure
    • getBaseISOUnit

      @Nullable public String getBaseISOUnit()
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: BaseISOUnit

      Returns:
      Base unit of measure in ISO code
    • toString

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

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

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

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

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