java.lang.Object
com.sap.cloud.sdk.datamodel.odata.helper.VdmObject<EntityT>
com.sap.cloud.sdk.datamodel.odata.helper.VdmEntity<SubItemCategory>
com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.masterdataforgroupreporting.SubItemCategory

public class SubItemCategory extends VdmEntity<SubItemCategory>
Subitem Category

Original entity name from the Odata EDM: SubItemCategoryType

  • Field Details

    • ALL_FIELDS

      public static final SubItemCategorySelectable ALL_FIELDS
      Selector for all available fields of SubItemCategory.
    • SUB_ITEM_CATEGORY

      public static final SubItemCategoryField<String> SUB_ITEM_CATEGORY
      Use with available fluent helpers to apply the SubItemCategory field to query operations.
    • SUB_ITEM_CATEGORY_TEXT

      public static final SubItemCategoryField<String> SUB_ITEM_CATEGORY_TEXT
      Use with available fluent helpers to apply the SubItemCategory_Text field to query operations.
    • IS_SUB_ITEMS_FOR_ACQUISITIONS_DIVES

      public static final SubItemCategoryField<Boolean> IS_SUB_ITEMS_FOR_ACQUISITIONS_DIVES
      Use with available fluent helpers to apply the IsSubItemsForAcquisitionsDives field to query operations.
    • TO_CNSLDTN_SUBITEM_CATEGORY_T

      public static final SubItemCategoryLink<SubItemCategoryText> TO_CNSLDTN_SUBITEM_CATEGORY_T
      Use with available fluent helpers to apply the to_CnsldtnSubitemCategoryT navigation property to query operations.
  • Constructor Details

    • SubItemCategory

      public SubItemCategory()
    • SubItemCategory

      public SubItemCategory(@Nullable String subItemCategory, @Nullable String subItemCategory_Text, @Nullable Boolean isSubItemsForAcquisitionsDives, List<SubItemCategoryText> toCnsldtnSubitemCategoryT)
  • Method Details

    • getType

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

      public void setSubItemCategory(@Nullable String subItemCategory)
      (Key Field) Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: SubItemCategory

      Parameters:
      subItemCategory - Subitem Category
    • setSubItemCategory_Text

      public void setSubItemCategory_Text(@Nullable String subItemCategory_Text)
      Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: SubItemCategory_Text

      Parameters:
      subItemCategory_Text - Subitem Category Description
    • setIsSubItemsForAcquisitionsDives

      public void setIsSubItemsForAcquisitionsDives(@Nullable Boolean isSubItemsForAcquisitionsDives)
      Constraints: none

      Original property name from the Odata EDM: IsSubItemsForAcquisitionsDives

      Parameters:
      isSubItemsForAcquisitionsDives - Subitems for Acquisitions and Divestitures
    • getEntityCollection

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

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

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

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

      @Nonnull public static <T> SubItemCategoryField<T> field(@Nonnull String fieldName, @Nonnull Class<T> fieldType)
      Use with available fluent helpers to apply an extension field to query operations.
      Type Parameters:
      T - The type of the extension field when performing value comparisons.
      Parameters:
      fieldName - The name of the extension field as returned by the OData service.
      fieldType - The Java type to use for the extension field when performing value comparisons.
      Returns:
      A representation of an extension field from this entity.
    • field

      @Nonnull public static <T, DomainT> SubItemCategoryField<T> field(@Nonnull String fieldName, @Nonnull TypeConverter<T,DomainT> typeConverter)
      Use with available fluent helpers to apply an extension field to query operations.
      Type Parameters:
      T - The type of the extension field when performing value comparisons.
      DomainT - The type of the extension field as returned by the OData service.
      Parameters:
      typeConverter - A TypeConverter<T, DomainT> instance whose first generic type matches the Java type of the field
      fieldName - The name of the extension field as returned by the OData service.
      Returns:
      A representation of an extension field from this entity, holding a reference to the given TypeConverter.
    • getDestinationForFetch

      @Nullable public HttpDestinationProperties getDestinationForFetch()
      Overrides:
      getDestinationForFetch in class VdmEntity<SubItemCategory>
    • setServicePathForFetch

      protected void setServicePathForFetch(@Nullable String servicePathForFetch)
      Overrides:
      setServicePathForFetch in class VdmEntity<SubItemCategory>
    • attachToService

      public void attachToService(@Nullable String servicePath, @Nonnull HttpDestinationProperties destination)
      Overrides:
      attachToService in class VdmEntity<SubItemCategory>
    • getDefaultServicePath

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

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

      @Nonnull public List<SubItemCategoryText> fetchCnsldtnSubitemCategoryT()
      Fetches the SubItemCategoryText entities (one to many) associated with this entity. This corresponds to the OData navigation property to_CnsldtnSubitemCategoryT.

      Please note: This method will not cache or persist the query results.

      Returns:
      List containing one or more associated SubItemCategoryText entities. If no entities are associated then an empty list is returned.
      Throws:
      com.sap.cloud.sdk.datamodel.odata.client.exception.ODataException - If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and therefore has no ERP configuration context assigned. An entity is managed if it has been either retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or UPDATE call.
    • getCnsldtnSubitemCategoryTOrFetch

      @Nonnull public List<SubItemCategoryText> getCnsldtnSubitemCategoryTOrFetch()
      Retrieval of associated SubItemCategoryText entities (one to many). This corresponds to the OData navigation property to_CnsldtnSubitemCategoryT.

      If the navigation property to_CnsldtnSubitemCategoryT of a queried SubItemCategory 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.

      Returns:
      List of associated SubItemCategoryText entities.
      Throws:
      com.sap.cloud.sdk.datamodel.odata.client.exception.ODataException - If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and therefore has no ERP configuration context assigned. An entity is managed if it has been either retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or UPDATE call.
    • getCnsldtnSubitemCategoryTIfPresent

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

      If the navigation property for an entity SubItemCategory 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 to_CnsldtnSubitemCategoryT is already loaded, the result will contain the SubItemCategoryText entities. If not, an Option with result state empty is returned.
    • setCnsldtnSubitemCategoryT

      public void setCnsldtnSubitemCategoryT(@Nonnull List<SubItemCategoryText> value)
      Overwrites the list of associated SubItemCategoryText entities for the loaded navigation property to_CnsldtnSubitemCategoryT.

      If the navigation property to_CnsldtnSubitemCategoryT of a queried SubItemCategory 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 SubItemCategoryText entities.
    • addCnsldtnSubitemCategoryT

      public void addCnsldtnSubitemCategoryT(SubItemCategoryText... entity)
      Adds elements to the list of associated SubItemCategoryText entities. This corresponds to the OData navigation property to_CnsldtnSubitemCategoryT.

      If the navigation property to_CnsldtnSubitemCategoryT of a queried SubItemCategory 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 SubItemCategoryText entities.
    • builder

      @Nonnull public static SubItemCategory.SubItemCategoryBuilder builder()
    • getSubItemCategory

      @Nullable public String getSubItemCategory()
      (Key Field) Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: SubItemCategory

      Returns:
      Subitem Category
    • getSubItemCategory_Text

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

      Original property name from the Odata EDM: SubItemCategory_Text

      Returns:
      Subitem Category Description
    • getIsSubItemsForAcquisitionsDives

      @Nullable public Boolean getIsSubItemsForAcquisitionsDives()
      Constraints: none

      Original property name from the Odata EDM: IsSubItemsForAcquisitionsDives

      Returns:
      Subitems for Acquisitions and Divestitures
    • toString

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

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

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

      public int hashCode()
      Overrides:
      hashCode in class VdmEntity<SubItemCategory>