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

public class VariantConfigurationTableLine extends VdmEntity<VariantConfigurationTableLine> implements VdmEntitySet
Line Entities

Original entity name from the Odata EDM: VariantConfigurationTableLine_Type

  • Field Details

  • Constructor Details

  • Method Details

    • getType

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

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

      Original property name from the Odata EDM: VarConfignTblName

      Parameters:
      varConfignTblName - Name of variant table
    • setVarConfignTblLineNumber

      public void setVarConfignTblLineNumber(@Nullable String varConfignTblLineNumber)
      (Key Field) Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: VarConfignTblLineNumber

      Parameters:
      varConfignTblLineNumber - Row Number of Variant Table - External
    • setChangeNumber

      public void setChangeNumber(@Nullable String changeNumber)
      (Key Field) Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: ChangeNumber

      Parameters:
      changeNumber - Change Number
    • setVarConfignTblLinePosition

      public void setVarConfignTblLinePosition(@Nullable String varConfignTblLinePosition)
      Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: VarConfignTblLinePosition

      Parameters:
      varConfignTblLinePosition - Row Number of Variant Table - External
    • setIsDeleted

      public void setIsDeleted(@Nullable Boolean isDeleted)
      Constraints: Not nullable

      Original property name from the Odata EDM: IsDeleted

      Parameters:
      isDeleted - Deletion Indicator
    • setValidityStartDate

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

      Original property name from the Odata EDM: ValidityStartDate

      Parameters:
      validityStartDate - Valid-From Date
    • setValidityEndDate

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

      Original property name from the Odata EDM: ValidityEndDate

      Parameters:
      validityEndDate - Valid-to date
    • getEntityCollection

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

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

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

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

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

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

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

      If the navigation property for an entity VariantConfigurationTableLine 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 _Table is already loaded, the result will contain the VarConfigurationTableContent entity. If not, an Option with result state empty is returned.
    • setTable

      public void setTable(VarConfigurationTableContent value)
      Overwrites the associated VarConfigurationTableContent entity for the loaded navigation property _Table.
      Parameters:
      value - New VarConfigurationTableContent entity.
    • getValueIfPresent

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

      If the navigation property for an entity VariantConfigurationTableLine 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 _Value is already loaded, the result will contain the VariantConfigurationTableValue entities. If not, an Option with result state empty is returned.
    • setValue

      public void setValue(@Nonnull List<VariantConfigurationTableValue> value)
      Overwrites the list of associated VariantConfigurationTableValue entities for the loaded navigation property _Value.

      If the navigation property _Value of a queried VariantConfigurationTableLine 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 VariantConfigurationTableValue entities.
    • addValue

      public void addValue(VariantConfigurationTableValue... entity)
      Adds elements to the list of associated VariantConfigurationTableValue entities. This corresponds to the OData navigation property _Value.

      If the navigation property _Value of a queried VariantConfigurationTableLine 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 VariantConfigurationTableValue entities.
    • builder

    • getVarConfignTblName

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

      Original property name from the Odata EDM: VarConfignTblName

      Returns:
      Name of variant table
    • getVarConfignTblLineNumber

      @Nullable public String getVarConfignTblLineNumber()
      (Key Field) Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: VarConfignTblLineNumber

      Returns:
      Row Number of Variant Table - External
    • getChangeNumber

      @Nullable public String getChangeNumber()
      (Key Field) Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: ChangeNumber

      Returns:
      Change Number
    • getVarConfignTblLinePosition

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

      Original property name from the Odata EDM: VarConfignTblLinePosition

      Returns:
      Row Number of Variant Table - External
    • getIsDeleted

      @Nullable public Boolean getIsDeleted()
      Constraints: Not nullable

      Original property name from the Odata EDM: IsDeleted

      Returns:
      Deletion Indicator
    • getValidityStartDate

      @Nullable public LocalDate getValidityStartDate()
      Constraints: Nullable

      Original property name from the Odata EDM: ValidityStartDate

      Returns:
      Valid-From Date
    • getValidityEndDate

      @Nullable public LocalDate getValidityEndDate()
      Constraints: Nullable

      Original property name from the Odata EDM: ValidityEndDate

      Returns:
      Valid-to date
    • toString

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

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

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

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

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