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

public class SrcgProjQtnItmCmmdtyQty extends VdmEntity<SrcgProjQtnItmCmmdtyQty> implements VdmEntitySet
Commodity Quantity

Original entity name from the Odata EDM: SrcgProjQtnItmCmmdtyQtyType

  • Field Details

  • Constructor Details

    • SrcgProjQtnItmCmmdtyQty

      public SrcgProjQtnItmCmmdtyQty()
    • SrcgProjQtnItmCmmdtyQty

      public SrcgProjQtnItmCmmdtyQty(@Nullable UUID srcgProjQtnCmmdtyQuantityUUID, @Nullable UUID sourcingProjectQuotationUUID, @Nullable UUID srcgProjQtnItemUUID, @Nullable String commodity, @Nullable LocalDate validityEndDate, @Nullable LocalDate validityStartDate, @Nullable BigDecimal commodityQuantity, @Nullable String commodityUnit, @Nullable BigDecimal purgDocCmmdtyRefDocItmQty, @Nullable String itemQuantityUnit, @Nullable String purgDocCmmdtyUpdateCycleText, @Nullable String purgDocCmmdtyUpdateCycle, @Nullable String commodityName, @Nullable SourcingProjectQuotation to_SourcingProjectQuotation, @Nullable SrcgProjQtnItem to_SrcgProjQuotationItem)
  • Method Details

    • getType

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

      public void setSrcgProjQtnCmmdtyQuantityUUID(@Nullable UUID srcgProjQtnCmmdtyQuantityUUID)
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: SrcgProjQtnCmmdtyQuantityUUID

      Parameters:
      srcgProjQtnCmmdtyQuantityUUID - Commodity Quantity UUID for Sourcing Project Quotation
    • setSourcingProjectQuotationUUID

      public void setSourcingProjectQuotationUUID(@Nullable UUID sourcingProjectQuotationUUID)
      Constraints: Not nullable

      Original property name from the Odata EDM: SourcingProjectQuotationUUID

      Parameters:
      sourcingProjectQuotationUUID - Supplier Quotation UUID
    • setSrcgProjQtnItemUUID

      public void setSrcgProjQtnItemUUID(@Nullable UUID srcgProjQtnItemUUID)
      Constraints: Not nullable

      Original property name from the Odata EDM: SrcgProjQtnItemUUID

      Parameters:
      srcgProjQtnItemUUID - Supplier Quotation Item UUID
    • setCommodity

      public void setCommodity(@Nullable String commodity)
      Constraints: Not nullable, Maximum length: 18

      Original property name from the Odata EDM: Commodity

      Parameters:
      commodity - Commodity
    • setValidityEndDate

      public void setValidityEndDate(@Nullable LocalDate validityEndDate)
      Constraints: Nullable

      Original property name from the Odata EDM: ValidityEndDate

      Parameters:
      validityEndDate - End of Validity Period
    • setValidityStartDate

      public void setValidityStartDate(@Nullable LocalDate validityStartDate)
      Constraints: Nullable

      Original property name from the Odata EDM: ValidityStartDate

      Parameters:
      validityStartDate - Start of Validity Period
    • setCommodityQuantity

      public void setCommodityQuantity(@Nullable BigDecimal commodityQuantity)
      Constraints: Not nullable, Precision: 17, Scale: 3

      Original property name from the Odata EDM: CommodityQuantity

      Parameters:
      commodityQuantity - Commodity Quantity
    • setCommodityUnit

      public void setCommodityUnit(@Nullable String commodityUnit)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: CommodityUnit

      Parameters:
      commodityUnit - Purchase Order Unit of Measure
    • setPurgDocCmmdtyRefDocItmQty

      public void setPurgDocCmmdtyRefDocItmQty(@Nullable BigDecimal purgDocCmmdtyRefDocItmQty)
      Constraints: Not nullable, Precision: 5

      Original property name from the Odata EDM: PurgDocCmmdtyRefDocItmQty

      Parameters:
      purgDocCmmdtyRefDocItmQty - Price unit
    • setItemQuantityUnit

      public void setItemQuantityUnit(@Nullable String itemQuantityUnit)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: ItemQuantityUnit

      Parameters:
      itemQuantityUnit - Quantity Unit of Item in Supplier Quotation
    • setPurgDocCmmdtyUpdateCycleText

      public void setPurgDocCmmdtyUpdateCycleText(@Nullable String purgDocCmmdtyUpdateCycleText)
      Constraints: Not nullable, Maximum length: 60

      Original property name from the Odata EDM: PurgDocCmmdtyUpdateCycleText

      Parameters:
      purgDocCmmdtyUpdateCycleText - Purchase Commodity Update cycle text
    • setPurgDocCmmdtyUpdateCycle

      public void setPurgDocCmmdtyUpdateCycle(@Nullable String purgDocCmmdtyUpdateCycle)
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: PurgDocCmmdtyUpdateCycle

      Parameters:
      purgDocCmmdtyUpdateCycle - Cycle Indicator for Commodity Update
    • setCommodityName

      public void setCommodityName(@Nullable String commodityName)
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: CommodityName

      Parameters:
      commodityName - Commodity Description
    • getEntityCollection

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

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

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

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

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

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

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

      If the navigation property for an entity SrcgProjQtnItmCmmdtyQty 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 _SourcingProjectQuotation is already loaded, the result will contain the SourcingProjectQuotation entity. If not, an Option with result state empty is returned.
    • setSourcingProjectQuotation

      public void setSourcingProjectQuotation(SourcingProjectQuotation value)
      Overwrites the associated SourcingProjectQuotation entity for the loaded navigation property _SourcingProjectQuotation.
      Parameters:
      value - New SourcingProjectQuotation entity.
    • getSrcgProjQuotationItemIfPresent

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

      If the navigation property for an entity SrcgProjQtnItmCmmdtyQty 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 _SrcgProjQuotationItem is already loaded, the result will contain the SrcgProjQtnItem entity. If not, an Option with result state empty is returned.
    • setSrcgProjQuotationItem

      public void setSrcgProjQuotationItem(SrcgProjQtnItem value)
      Overwrites the associated SrcgProjQtnItem entity for the loaded navigation property _SrcgProjQuotationItem.
      Parameters:
      value - New SrcgProjQtnItem entity.
    • builder

    • getSrcgProjQtnCmmdtyQuantityUUID

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

      Original property name from the Odata EDM: SrcgProjQtnCmmdtyQuantityUUID

      Returns:
      Commodity Quantity UUID for Sourcing Project Quotation
    • getSourcingProjectQuotationUUID

      @Nullable public UUID getSourcingProjectQuotationUUID()
      Constraints: Not nullable

      Original property name from the Odata EDM: SourcingProjectQuotationUUID

      Returns:
      Supplier Quotation UUID
    • getSrcgProjQtnItemUUID

      @Nullable public UUID getSrcgProjQtnItemUUID()
      Constraints: Not nullable

      Original property name from the Odata EDM: SrcgProjQtnItemUUID

      Returns:
      Supplier Quotation Item UUID
    • getCommodity

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

      Original property name from the Odata EDM: Commodity

      Returns:
      Commodity
    • getValidityEndDate

      @Nullable public LocalDate getValidityEndDate()
      Constraints: Nullable

      Original property name from the Odata EDM: ValidityEndDate

      Returns:
      End of Validity Period
    • getValidityStartDate

      @Nullable public LocalDate getValidityStartDate()
      Constraints: Nullable

      Original property name from the Odata EDM: ValidityStartDate

      Returns:
      Start of Validity Period
    • getCommodityQuantity

      @Nullable public BigDecimal getCommodityQuantity()
      Constraints: Not nullable, Precision: 17, Scale: 3

      Original property name from the Odata EDM: CommodityQuantity

      Returns:
      Commodity Quantity
    • getCommodityUnit

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

      Original property name from the Odata EDM: CommodityUnit

      Returns:
      Purchase Order Unit of Measure
    • getPurgDocCmmdtyRefDocItmQty

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

      Original property name from the Odata EDM: PurgDocCmmdtyRefDocItmQty

      Returns:
      Price unit
    • getItemQuantityUnit

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

      Original property name from the Odata EDM: ItemQuantityUnit

      Returns:
      Quantity Unit of Item in Supplier Quotation
    • getPurgDocCmmdtyUpdateCycleText

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

      Original property name from the Odata EDM: PurgDocCmmdtyUpdateCycleText

      Returns:
      Purchase Commodity Update cycle text
    • getPurgDocCmmdtyUpdateCycle

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

      Original property name from the Odata EDM: PurgDocCmmdtyUpdateCycle

      Returns:
      Cycle Indicator for Commodity Update
    • getCommodityName

      @Nullable public String getCommodityName()
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: CommodityName

      Returns:
      Commodity Description
    • toString

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

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

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

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

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