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

public class PurgPrcgCndnRecordScale extends VdmEntity<PurgPrcgCndnRecordScale>
Pricing Scales

Original entity name from the Odata EDM: A_PurgPrcgCndnRecordScaleType

  • Field Details

    • ALL_FIELDS

      public static final PurgPrcgCndnRecordScaleSelectable ALL_FIELDS
      Selector for all available fields of PurgPrcgCndnRecordScale.
    • CONDITION_RECORD

      public static final PurgPrcgCndnRecordScaleField<String> CONDITION_RECORD
      Use with available fluent helpers to apply the ConditionRecord field to query operations.
    • CONDITION_SEQUENTIAL_NUMBER

      public static final PurgPrcgCndnRecordScaleField<String> CONDITION_SEQUENTIAL_NUMBER
      Use with available fluent helpers to apply the ConditionSequentialNumber field to query operations.
    • CONDITION_SCALE_LINE

      public static final PurgPrcgCndnRecordScaleField<String> CONDITION_SCALE_LINE
      Use with available fluent helpers to apply the ConditionScaleLine field to query operations.
    • CONDITION_SCALE_QUANTITY

      public static final PurgPrcgCndnRecordScaleField<BigDecimal> CONDITION_SCALE_QUANTITY
      Use with available fluent helpers to apply the ConditionScaleQuantity field to query operations.
    • CONDITION_SCALE_QUANTITY_UNIT

      public static final PurgPrcgCndnRecordScaleField<String> CONDITION_SCALE_QUANTITY_UNIT
      Use with available fluent helpers to apply the ConditionScaleQuantityUnit field to query operations.
    • CONDITION_SCALE_AMOUNT

      public static final PurgPrcgCndnRecordScaleField<BigDecimal> CONDITION_SCALE_AMOUNT
      Use with available fluent helpers to apply the ConditionScaleAmount field to query operations.
    • CONDITION_SCALE_AMOUNT_CURRENCY

      public static final PurgPrcgCndnRecordScaleField<String> CONDITION_SCALE_AMOUNT_CURRENCY
      Use with available fluent helpers to apply the ConditionScaleAmountCurrency field to query operations.
    • CONDITION_RATE_VALUE

      public static final PurgPrcgCndnRecordScaleField<BigDecimal> CONDITION_RATE_VALUE
      Use with available fluent helpers to apply the ConditionRateValue field to query operations.
    • CONDITION_RATE_VALUE_UNIT

      public static final PurgPrcgCndnRecordScaleField<String> CONDITION_RATE_VALUE_UNIT
      Use with available fluent helpers to apply the ConditionRateValueUnit field to query operations.
    • E_TAG

      public static final PurgPrcgCndnRecordScaleField<String> E_TAG
      Use with available fluent helpers to apply the ETag field to query operations.
    • TO_PURG_PRCG_CNDN_RECD_SUPLMNT

      public static final PurgPrcgCndnRecordScaleOneToOneLink<PurgPrcgCndnRecdSuplmnt> TO_PURG_PRCG_CNDN_RECD_SUPLMNT
      Use with available fluent helpers to apply the to_PurgPrcgCndnRecdSuplmnt navigation property to query operations.
    • TO_PURG_PRCG_CONDITION_RECORD

      public static final PurgPrcgCndnRecordScaleOneToOneLink<PurgPrcgConditionRecord> TO_PURG_PRCG_CONDITION_RECORD
      Use with available fluent helpers to apply the to_PurgPrcgConditionRecord navigation property to query operations.
  • Constructor Details

    • PurgPrcgCndnRecordScale

      public PurgPrcgCndnRecordScale()
    • PurgPrcgCndnRecordScale

      public PurgPrcgCndnRecordScale(@Nullable String conditionRecord, @Nullable String conditionSequentialNumber, @Nullable String conditionScaleLine, @Nullable BigDecimal conditionScaleQuantity, @Nullable String conditionScaleQuantityUnit, @Nullable BigDecimal conditionScaleAmount, @Nullable String conditionScaleAmountCurrency, @Nullable BigDecimal conditionRateValue, @Nullable String conditionRateValueUnit, @Nullable String eTag, @Nullable PurgPrcgCndnRecdSuplmnt toPurgPrcgCndnRecdSuplmnt, @Nullable PurgPrcgConditionRecord toPurgPrcgConditionRecord)
  • Method Details

    • getType

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

      public void setConditionRecord(@Nullable String conditionRecord)
      (Key Field) Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: ConditionRecord

      Parameters:
      conditionRecord - Number of Condition Record
    • setConditionSequentialNumber

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

      Original property name from the Odata EDM: ConditionSequentialNumber

      Parameters:
      conditionSequentialNumber - Sequential number of the condition
    • setConditionScaleLine

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

      Original property name from the Odata EDM: ConditionScaleLine

      Parameters:
      conditionScaleLine - Current number of the line scale
    • setConditionScaleQuantity

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

      Original property name from the Odata EDM: ConditionScaleQuantity

      Parameters:
      conditionScaleQuantity - Condition Scale Quantity
    • setConditionScaleQuantityUnit

      public void setConditionScaleQuantityUnit(@Nullable String conditionScaleQuantityUnit)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: ConditionScaleQuantityUnit

      Parameters:
      conditionScaleQuantityUnit - Condition Scale Unit of Measure
    • setConditionScaleAmount

      public void setConditionScaleAmount(@Nullable BigDecimal conditionScaleAmount)
      Constraints: Not nullable, Precision: 16, Scale: 3

      Original property name from the Odata EDM: ConditionScaleAmount

      Parameters:
      conditionScaleAmount - Scale Value
    • setConditionScaleAmountCurrency

      public void setConditionScaleAmountCurrency(@Nullable String conditionScaleAmountCurrency)
      Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: ConditionScaleAmountCurrency

      Parameters:
      conditionScaleAmountCurrency - Scale Currency
    • setConditionRateValue

      public void setConditionRateValue(@Nullable BigDecimal conditionRateValue)
      Constraints: Not nullable, Precision: 12, Scale: 3

      Original property name from the Odata EDM: ConditionRateValue

      Parameters:
      conditionRateValue - Condition Amount or Percentage
    • setConditionRateValueUnit

      public void setConditionRateValueUnit(@Nullable String conditionRateValueUnit)
      Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: ConditionRateValueUnit

      Parameters:
      conditionRateValueUnit - Condition Unit (Currency or Percentage)
    • setETag

      public void setETag(@Nullable String eTag)
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: ETag

      Parameters:
      eTag - The eTag to set.
    • getEntityCollection

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

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

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

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

      @Nonnull public static <T> PurgPrcgCndnRecordScaleField<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> PurgPrcgCndnRecordScaleField<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<PurgPrcgCndnRecordScale>
    • setServicePathForFetch

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

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

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

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

      @Nullable public PurgPrcgCndnRecdSuplmnt fetchPurgPrcgCndnRecdSuplmnt()
      Fetches the PurgPrcgCndnRecdSuplmnt entity (one to one) associated with this entity. This corresponds to the OData navigation property to_PurgPrcgCndnRecdSuplmnt.

      Please note: This method will not cache or persist the query results.

      Returns:
      The single associated PurgPrcgCndnRecdSuplmnt entity, or null if an entity is not associated.
      Throws:
      com.sap.cloud.sdk.datamodel.odata.client.exception.ODataException - If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and therefore has no ERP configuration context assigned. An entity is managed if it has been either retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or UPDATE call.
    • getPurgPrcgCndnRecdSuplmntOrFetch

      @Nullable public PurgPrcgCndnRecdSuplmnt getPurgPrcgCndnRecdSuplmntOrFetch()
      Retrieval of associated PurgPrcgCndnRecdSuplmnt entity (one to one). This corresponds to the OData navigation property to_PurgPrcgCndnRecdSuplmnt.

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

      Returns:
      List of associated PurgPrcgCndnRecdSuplmnt entity.
      Throws:
      com.sap.cloud.sdk.datamodel.odata.client.exception.ODataException - If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and therefore has no ERP configuration context assigned. An entity is managed if it has been either retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or UPDATE call.
    • getPurgPrcgCndnRecdSuplmntIfPresent

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

      If the navigation property for an entity PurgPrcgCndnRecordScale 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 to_PurgPrcgCndnRecdSuplmnt is already loaded, the result will contain the PurgPrcgCndnRecdSuplmnt entity. If not, an Option with result state empty is returned.
    • setPurgPrcgCndnRecdSuplmnt

      public void setPurgPrcgCndnRecdSuplmnt(PurgPrcgCndnRecdSuplmnt value)
      Overwrites the associated PurgPrcgCndnRecdSuplmnt entity for the loaded navigation property to_PurgPrcgCndnRecdSuplmnt.
      Parameters:
      value - New PurgPrcgCndnRecdSuplmnt entity.
    • fetchPurgPrcgConditionRecord

      @Nullable public PurgPrcgConditionRecord fetchPurgPrcgConditionRecord()
      Fetches the PurgPrcgConditionRecord entity (one to one) associated with this entity. This corresponds to the OData navigation property to_PurgPrcgConditionRecord.

      Please note: This method will not cache or persist the query results.

      Returns:
      The single associated PurgPrcgConditionRecord entity, or null if an entity is not associated.
      Throws:
      com.sap.cloud.sdk.datamodel.odata.client.exception.ODataException - If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and therefore has no ERP configuration context assigned. An entity is managed if it has been either retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or UPDATE call.
    • getPurgPrcgConditionRecordOrFetch

      @Nullable public PurgPrcgConditionRecord getPurgPrcgConditionRecordOrFetch()
      Retrieval of associated PurgPrcgConditionRecord entity (one to one). This corresponds to the OData navigation property to_PurgPrcgConditionRecord.

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

      Returns:
      List of associated PurgPrcgConditionRecord entity.
      Throws:
      com.sap.cloud.sdk.datamodel.odata.client.exception.ODataException - If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and therefore has no ERP configuration context assigned. An entity is managed if it has been either retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or UPDATE call.
    • getPurgPrcgConditionRecordIfPresent

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

      If the navigation property for an entity PurgPrcgCndnRecordScale 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 to_PurgPrcgConditionRecord is already loaded, the result will contain the PurgPrcgConditionRecord entity. If not, an Option with result state empty is returned.
    • setPurgPrcgConditionRecord

      public void setPurgPrcgConditionRecord(PurgPrcgConditionRecord value)
      Overwrites the associated PurgPrcgConditionRecord entity for the loaded navigation property to_PurgPrcgConditionRecord.
      Parameters:
      value - New PurgPrcgConditionRecord entity.
    • builder

    • getConditionRecord

      @Nullable public String getConditionRecord()
      (Key Field) Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: ConditionRecord

      Returns:
      Number of Condition Record
    • getConditionSequentialNumber

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

      Original property name from the Odata EDM: ConditionSequentialNumber

      Returns:
      Sequential number of the condition
    • getConditionScaleLine

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

      Original property name from the Odata EDM: ConditionScaleLine

      Returns:
      Current number of the line scale
    • getConditionScaleQuantity

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

      Original property name from the Odata EDM: ConditionScaleQuantity

      Returns:
      Condition Scale Quantity
    • getConditionScaleQuantityUnit

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

      Original property name from the Odata EDM: ConditionScaleQuantityUnit

      Returns:
      Condition Scale Unit of Measure
    • getConditionScaleAmount

      @Nullable public BigDecimal getConditionScaleAmount()
      Constraints: Not nullable, Precision: 16, Scale: 3

      Original property name from the Odata EDM: ConditionScaleAmount

      Returns:
      Scale Value
    • getConditionScaleAmountCurrency

      @Nullable public String getConditionScaleAmountCurrency()
      Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: ConditionScaleAmountCurrency

      Returns:
      Scale Currency
    • getConditionRateValue

      @Nullable public BigDecimal getConditionRateValue()
      Constraints: Not nullable, Precision: 12, Scale: 3

      Original property name from the Odata EDM: ConditionRateValue

      Returns:
      Condition Amount or Percentage
    • getConditionRateValueUnit

      @Nullable public String getConditionRateValueUnit()
      Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: ConditionRateValueUnit

      Returns:
      Condition Unit (Currency or Percentage)
    • getETag

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

      Original property name from the Odata EDM: ETag

      Returns:
      The eTag contained in this entity.
    • toString

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

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

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

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