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

public class SalesPricingAccessSequence extends VdmEntity<SalesPricingAccessSequence> implements VdmEntitySet
Access Sequences

Original entity name from the Odata EDM: SalesPricingAccessSequenceType

  • Field Details

  • Constructor Details

  • Method Details

    • getType

      @Nonnull public Class<SalesPricingAccessSequence> getType()
      Specified by:
      getType in class VdmObject<SalesPricingAccessSequence>
    • 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
    • setAccessSequence

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

      Original property name from the Odata EDM: AccessSequence

      Parameters:
      accessSequence - Access sequence
    • getEntityCollection

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

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

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

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

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

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

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

      If the navigation property for an entity SalesPricingAccessSequence 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 _SalesPricingAccess is already loaded, the result will contain the SalesPricingAccess entities. If not, an Option with result state empty is returned.
    • setSalesPricingAccess

      public void setSalesPricingAccess(@Nonnull List<SalesPricingAccess> value)
      Overwrites the list of associated SalesPricingAccess entities for the loaded navigation property _SalesPricingAccess.

      If the navigation property _SalesPricingAccess of a queried SalesPricingAccessSequence 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 SalesPricingAccess entities.
    • addSalesPricingAccess

      public void addSalesPricingAccess(SalesPricingAccess... entity)
      Adds elements to the list of associated SalesPricingAccess entities. This corresponds to the OData navigation property _SalesPricingAccess.

      If the navigation property _SalesPricingAccess of a queried SalesPricingAccessSequence 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 SalesPricingAccess entities.
    • getTextIfPresent

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

      If the navigation property for an entity SalesPricingAccessSequence 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 SlsPricingAccessSequenceText entities. If not, an Option with result state empty is returned.
    • setText

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

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

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

      If the navigation property _Text of a queried SalesPricingAccessSequence 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 SlsPricingAccessSequenceText 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
    • getAccessSequence

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

      Original property name from the Odata EDM: AccessSequence

      Returns:
      Access sequence
    • toString

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

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

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

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

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