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

public class MerchandiseCategory extends VdmEntity<MerchandiseCategory> implements VdmEntitySet
Merchandise Category

Original entity name from the Odata EDM: MerchandiseCategory_Type

  • Field Details

  • Constructor Details

  • Method Details

    • getType

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

      public void setMerchandiseCategory(@Nullable String merchandiseCategory)
      (Key Field) Constraints: Not nullable, Maximum length: 9

      Original property name from the Odata EDM: MerchandiseCategory

      Parameters:
      merchandiseCategory - Merchandise Category
    • setContactPersonStdDepartment

      public void setContactPersonStdDepartment(@Nullable String contactPersonStdDepartment)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: ContactPersonStdDepartment

      Parameters:
      contactPersonStdDepartment - Department number
    • setDivision

      public void setDivision(@Nullable String division)
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: Division

      Parameters:
      division - Division
    • setAuthorizationGroup

      public void setAuthorizationGroup(@Nullable String authorizationGroup)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: AuthorizationGroup

      Parameters:
      authorizationGroup - Authorization Group
    • setMaterialGroupRefMaterial

      public void setMaterialGroupRefMaterial(@Nullable String materialGroupRefMaterial)
      Constraints: Not nullable, Maximum length: 18

      Original property name from the Odata EDM: MaterialGroupRefMaterial

      Parameters:
      materialGroupRefMaterial - Material group reference material
    • setValuationClass

      public void setValuationClass(@Nullable String valuationClass)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: ValuationClass

      Parameters:
      valuationClass - Valuation Class
    • setPurchasingValueKey

      public void setPurchasingValueKey(@Nullable String purchasingValueKey)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: PurchasingValueKey

      Parameters:
      purchasingValueKey - Purchasing Value Key
    • setLastChangeDateTime

      public void setLastChangeDateTime(@Nullable OffsetDateTime lastChangeDateTime)
      Constraints: Nullable, Precision: 7

      Original property name from the Odata EDM: LastChangeDateTime

      Parameters:
      lastChangeDateTime - Last changed at (only for merchandise category)
    • setMrchdsCategoryHierarchyNode

      public void setMrchdsCategoryHierarchyNode(@Nullable String mrchdsCategoryHierarchyNode)
      Constraints: Not nullable, Maximum length: 18

      Original property name from the Odata EDM: MrchdsCategoryHierarchyNode

      Parameters:
      mrchdsCategoryHierarchyNode - Merchandise Category Hierarchy Node
    • set_Messages

      public void set_Messages(@Nullable Collection<SAP__Message> _Messages)
      Constraints: Not nullable

      Original property name from the Odata EDM: SAP__Messages

      Parameters:
      _Messages - The _Messages to set.
    • getEntityCollection

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

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

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

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

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

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

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

      If the navigation property for an entity MerchandiseCategory 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 _MerchandiseCategoryTextTP is already loaded, the result will contain the MerchandiseCategoryText entities. If not, an Option with result state empty is returned.
    • setMerchandiseCategoryTextTP

      public void setMerchandiseCategoryTextTP(@Nonnull List<MerchandiseCategoryText> value)
      Overwrites the list of associated MerchandiseCategoryText entities for the loaded navigation property _MerchandiseCategoryTextTP.

      If the navigation property _MerchandiseCategoryTextTP of a queried MerchandiseCategory 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 MerchandiseCategoryText entities.
    • addMerchandiseCategoryTextTP

      public void addMerchandiseCategoryTextTP(MerchandiseCategoryText... entity)
      Adds elements to the list of associated MerchandiseCategoryText entities. This corresponds to the OData navigation property _MerchandiseCategoryTextTP.

      If the navigation property _MerchandiseCategoryTextTP of a queried MerchandiseCategory 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 MerchandiseCategoryText entities.
    • getMrchdsCatCharacteristicTPIfPresent

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

      If the navigation property for an entity MerchandiseCategory 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 _MrchdsCatCharacteristicTP is already loaded, the result will contain the MrchdsCatCharacteristic entities. If not, an Option with result state empty is returned.
    • setMrchdsCatCharacteristicTP

      public void setMrchdsCatCharacteristicTP(@Nonnull List<MrchdsCatCharacteristic> value)
      Overwrites the list of associated MrchdsCatCharacteristic entities for the loaded navigation property _MrchdsCatCharacteristicTP.

      If the navigation property _MrchdsCatCharacteristicTP of a queried MerchandiseCategory 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 MrchdsCatCharacteristic entities.
    • addMrchdsCatCharacteristicTP

      public void addMrchdsCatCharacteristicTP(MrchdsCatCharacteristic... entity)
      Adds elements to the list of associated MrchdsCatCharacteristic entities. This corresponds to the OData navigation property _MrchdsCatCharacteristicTP.

      If the navigation property _MrchdsCatCharacteristicTP of a queried MerchandiseCategory 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 MrchdsCatCharacteristic entities.
    • getMrchdsCatCharcValRstrcnTPIfPresent

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

      If the navigation property for an entity MerchandiseCategory 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 _MrchdsCatCharcValRstrcnTP is already loaded, the result will contain the MrchdsCatCharcValRstrcn entities. If not, an Option with result state empty is returned.
    • setMrchdsCatCharcValRstrcnTP

      public void setMrchdsCatCharcValRstrcnTP(@Nonnull List<MrchdsCatCharcValRstrcn> value)
      Overwrites the list of associated MrchdsCatCharcValRstrcn entities for the loaded navigation property _MrchdsCatCharcValRstrcnTP.

      If the navigation property _MrchdsCatCharcValRstrcnTP of a queried MerchandiseCategory 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 MrchdsCatCharcValRstrcn entities.
    • addMrchdsCatCharcValRstrcnTP

      public void addMrchdsCatCharcValRstrcnTP(MrchdsCatCharcValRstrcn... entity)
      Adds elements to the list of associated MrchdsCatCharcValRstrcn entities. This corresponds to the OData navigation property _MrchdsCatCharcValRstrcnTP.

      If the navigation property _MrchdsCatCharcValRstrcnTP of a queried MerchandiseCategory 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 MrchdsCatCharcValRstrcn entities.
    • builder

      @Nonnull public static MerchandiseCategory.MerchandiseCategoryBuilder builder()
    • getMerchandiseCategory

      @Nullable public String getMerchandiseCategory()
      (Key Field) Constraints: Not nullable, Maximum length: 9

      Original property name from the Odata EDM: MerchandiseCategory

      Returns:
      Merchandise Category
    • getContactPersonStdDepartment

      @Nullable public String getContactPersonStdDepartment()
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: ContactPersonStdDepartment

      Returns:
      Department number
    • getDivision

      @Nullable public String getDivision()
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: Division

      Returns:
      Division
    • getAuthorizationGroup

      @Nullable public String getAuthorizationGroup()
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: AuthorizationGroup

      Returns:
      Authorization Group
    • getMaterialGroupRefMaterial

      @Nullable public String getMaterialGroupRefMaterial()
      Constraints: Not nullable, Maximum length: 18

      Original property name from the Odata EDM: MaterialGroupRefMaterial

      Returns:
      Material group reference material
    • getValuationClass

      @Nullable public String getValuationClass()
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: ValuationClass

      Returns:
      Valuation Class
    • getPurchasingValueKey

      @Nullable public String getPurchasingValueKey()
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: PurchasingValueKey

      Returns:
      Purchasing Value Key
    • getLastChangeDateTime

      @Nullable public OffsetDateTime getLastChangeDateTime()
      Constraints: Nullable, Precision: 7

      Original property name from the Odata EDM: LastChangeDateTime

      Returns:
      Last changed at (only for merchandise category)
    • getMrchdsCategoryHierarchyNode

      @Nullable public String getMrchdsCategoryHierarchyNode()
      Constraints: Not nullable, Maximum length: 18

      Original property name from the Odata EDM: MrchdsCategoryHierarchyNode

      Returns:
      Merchandise Category Hierarchy Node
    • get_Messages

      @Nullable public Collection<SAP__Message> get_Messages()
      Constraints: Not nullable

      Original property name from the Odata EDM: SAP__Messages

      Returns:
      The _Messages contained in this VdmEntity.
    • toString

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

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

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

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

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