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

public class SalesPricingConditionField extends VdmEntity<SalesPricingConditionField> implements VdmEntitySet
Condition Fields

Original entity name from the Odata EDM: SalesPricingConditionFieldType

  • Field Details

  • Constructor Details

    • SalesPricingConditionField

      public SalesPricingConditionField()
    • SalesPricingConditionField

      public SalesPricingConditionField(@Nullable String conditionUsage, @Nullable String conditionApplication, @Nullable String pricingConditionField, @Nullable String prcgConditionGlobalFieldName, List<SlsPricingConditionFieldText> to_Text)
  • Method Details

    • getType

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

      public void setConditionUsage(@Nullable String conditionUsage)
      (Key Field) Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: ConditionUsage

      Parameters:
      conditionUsage - Usage of the condition table
    • setConditionApplication

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

      Original property name from the Odata EDM: ConditionApplication

      Parameters:
      conditionApplication - Application
    • setPricingConditionField

      public void setPricingConditionField(@Nullable String pricingConditionField)
      (Key Field) Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: PricingConditionField

      Parameters:
      pricingConditionField - Name of the condition field
    • setPrcgConditionGlobalFieldName

      public void setPrcgConditionGlobalFieldName(@Nullable String prcgConditionGlobalFieldName)
      Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: PrcgConditionGlobalFieldName

      Parameters:
      prcgConditionGlobalFieldName - DD: Field Name Original Spelling
    • getEntityCollection

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

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

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

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

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

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

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

      If the navigation property for an entity SalesPricingConditionField 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 _Text is already loaded, the result will contain the SlsPricingConditionFieldText entities. If not, an Option with result state empty is returned.
    • setText

      public void setText(@Nonnull List<SlsPricingConditionFieldText> value)
      Overwrites the list of associated SlsPricingConditionFieldText entities for the loaded navigation property _Text.

      If the navigation property _Text of a queried SalesPricingConditionField 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 SlsPricingConditionFieldText entities.
    • addText

      public void addText(SlsPricingConditionFieldText... entity)
      Adds elements to the list of associated SlsPricingConditionFieldText entities. This corresponds to the OData navigation property _Text.

      If the navigation property _Text of a queried SalesPricingConditionField 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 SlsPricingConditionFieldText entities.
    • builder

    • getConditionUsage

      @Nullable public String getConditionUsage()
      (Key Field) Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: ConditionUsage

      Returns:
      Usage of the condition table
    • getConditionApplication

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

      Original property name from the Odata EDM: ConditionApplication

      Returns:
      Application
    • getPricingConditionField

      @Nullable public String getPricingConditionField()
      (Key Field) Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: PricingConditionField

      Returns:
      Name of the condition field
    • getPrcgConditionGlobalFieldName

      @Nullable public String getPrcgConditionGlobalFieldName()
      Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: PrcgConditionGlobalFieldName

      Returns:
      DD: Field Name Original Spelling
    • toString

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

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

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

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

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