Class VarCnfTblValAssgmtAlternative

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

public class VarCnfTblValAssgmtAlternative extends VdmEntity<VarCnfTblValAssgmtAlternative> implements VdmEntitySet
Value Assignment Alternatives

Original entity name from the Odata EDM: VarCnfTblValAssgmtAlternative_Type

  • Field Details

  • Constructor Details

  • Method Details

    • getType

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

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

      Original property name from the Odata EDM: VarConfignTblValAssgmtAltvID

      Parameters:
      varConfignTblValAssgmtAltvID - Counter for value assignment alternative
    • getEntityCollection

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

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

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

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

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

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

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

      If the navigation property for an entity VarCnfTblValAssgmtAlternative 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 _Item is already loaded, the result will contain the VarCnfTblValAssgmtAltvItem entities. If not, an Option with result state empty is returned.
    • setItem

      public void setItem(@Nonnull List<VarCnfTblValAssgmtAltvItem> value)
      Overwrites the list of associated VarCnfTblValAssgmtAltvItem entities for the loaded navigation property _Item.

      If the navigation property _Item of a queried VarCnfTblValAssgmtAlternative 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 VarCnfTblValAssgmtAltvItem entities.
    • addItem

      public void addItem(VarCnfTblValAssgmtAltvItem... entity)
      Adds elements to the list of associated VarCnfTblValAssgmtAltvItem entities. This corresponds to the OData navigation property _Item.

      If the navigation property _Item of a queried VarCnfTblValAssgmtAlternative 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 VarCnfTblValAssgmtAltvItem entities.
    • getTableIfPresent

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

      If the navigation property for an entity VarCnfTblValAssgmtAlternative 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 VariantConfigurationTable entity. If not, an Option with result state empty is returned.
    • setTable

      public void setTable(VariantConfigurationTable value)
      Overwrites the associated VariantConfigurationTable entity for the loaded navigation property _Table.
      Parameters:
      value - New VariantConfigurationTable entity.
    • 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
    • getVarConfignTblValAssgmtAltvID

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

      Original property name from the Odata EDM: VarConfignTblValAssgmtAltvID

      Returns:
      Counter for value assignment alternative
    • toString

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

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

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

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

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