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

public class SubItem extends VdmEntity<SubItem>
Subitem

Original entity name from the Odata EDM: SubItemType

  • Field Details

    • ALL_FIELDS

      public static final SubItemSelectable ALL_FIELDS
      Selector for all available fields of SubItem.
    • SUB_ITEM_CATEGORY

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

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

      public static final SubItemField<String> SUB_ITEM
      Use with available fluent helpers to apply the SubItem field to query operations.
    • SUB_ITEM_TEXT

      public static final SubItemField<String> SUB_ITEM_TEXT
      Use with available fluent helpers to apply the SubItem_Text field to query operations.
    • SUBITEM_CARRY_FORWARD_DESTINATION

      public static final SubItemField<String> SUBITEM_CARRY_FORWARD_DESTINATION
      Use with available fluent helpers to apply the SubitemCarryForwardDestination field to query operations.
    • SUBITEM_CARRY_FORWARD_DESTINATION_TEXT

      public static final SubItemField<String> SUBITEM_CARRY_FORWARD_DESTINATION_TEXT
      Use with available fluent helpers to apply the SubitemCarryForwardDestination_Text field to query operations.
    • SUBITEM_RTRMT_DIVESTITURE_DEST

      public static final SubItemField<String> SUBITEM_RTRMT_DIVESTITURE_DEST
      Use with available fluent helpers to apply the SubitemRtrmtDivestitureDest field to query operations.
    • SUBITEM_RTRMT_DIVESTITURE_DEST_TEXT

      public static final SubItemField<String> SUBITEM_RTRMT_DIVESTITURE_DEST_TEXT
      Use with available fluent helpers to apply the SubitemRtrmtDivestitureDest_Text field to query operations.
    • SUBITEM_ACQUISITION_DESTINATION

      public static final SubItemField<String> SUBITEM_ACQUISITION_DESTINATION
      Use with available fluent helpers to apply the SubitemAcquisitionDestination field to query operations.
    • SUBITEM_ACQUISITION_DESTINATION_TEXT

      public static final SubItemField<String> SUBITEM_ACQUISITION_DESTINATION_TEXT
      Use with available fluent helpers to apply the SubitemAcquisitionDestination_Text field to query operations.
    • TO_CNSLDTN_SUBITEM_HIER

      public static final SubItemLink<SubitemHier> TO_CNSLDTN_SUBITEM_HIER
      Use with available fluent helpers to apply the to_CnsldtnSubitemHier navigation property to query operations.
    • TO_CNSLDTN_SUB_ITEM_T

      public static final SubItemLink<SubItemText> TO_CNSLDTN_SUB_ITEM_T
      Use with available fluent helpers to apply the to_CnsldtnSubItemT navigation property to query operations.
  • Constructor Details

    • SubItem

      public SubItem()
    • SubItem

      public SubItem(@Nullable String subItemCategory, @Nullable String subItemCategory_Text, @Nullable String subItem, @Nullable String subItem_Text, @Nullable String subitemCarryForwardDestination, @Nullable String subitemCarryForwardDestination_Text, @Nullable String subitemRtrmtDivestitureDest, @Nullable String subitemRtrmtDivestitureDest_Text, @Nullable String subitemAcquisitionDestination, @Nullable String subitemAcquisitionDestination_Text, List<SubitemHier> toCnsldtnSubitemHier, List<SubItemText> toCnsldtnSubItemT)
  • Method Details

    • getType

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

      public void setSubItem(@Nullable String subItem)
      (Key Field) Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: SubItem

      Parameters:
      subItem - Subitem
    • setSubItem_Text

      public void setSubItem_Text(@Nullable String subItem_Text)
      Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: SubItem_Text

      Parameters:
      subItem_Text - Subitem Description
    • setSubitemCarryForwardDestination

      public void setSubitemCarryForwardDestination(@Nullable String subitemCarryForwardDestination)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: SubitemCarryForwardDestination

      Parameters:
      subitemCarryForwardDestination - Carryforward Subitem (Transaction Type)
    • setSubitemCarryForwardDestination_Text

      public void setSubitemCarryForwardDestination_Text(@Nullable String subitemCarryForwardDestination_Text)
      Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: SubitemCarryForwardDestination_Text

      Parameters:
      subitemCarryForwardDestination_Text - Subitem Description
    • setSubitemRtrmtDivestitureDest

      public void setSubitemRtrmtDivestitureDest(@Nullable String subitemRtrmtDivestitureDest)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: SubitemRtrmtDivestitureDest

      Parameters:
      subitemRtrmtDivestitureDest - Subitem for retirements/divestitures
    • setSubitemRtrmtDivestitureDest_Text

      public void setSubitemRtrmtDivestitureDest_Text(@Nullable String subitemRtrmtDivestitureDest_Text)
      Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: SubitemRtrmtDivestitureDest_Text

      Parameters:
      subitemRtrmtDivestitureDest_Text - Subitem Description
    • setSubitemAcquisitionDestination

      public void setSubitemAcquisitionDestination(@Nullable String subitemAcquisitionDestination)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: SubitemAcquisitionDestination

      Parameters:
      subitemAcquisitionDestination - Acquisition subitem
    • setSubitemAcquisitionDestination_Text

      public void setSubitemAcquisitionDestination_Text(@Nullable String subitemAcquisitionDestination_Text)
      Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: SubitemAcquisitionDestination_Text

      Parameters:
      subitemAcquisitionDestination_Text - Subitem Description
    • getEntityCollection

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

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

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

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

      @Nonnull public static <T> SubItemField<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> SubItemField<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<SubItem>
    • setServicePathForFetch

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

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

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

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

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

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

      Returns:
      List containing one or more associated SubitemHier 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.
    • getCnsldtnSubitemHierOrFetch

      @Nonnull public List<SubitemHier> getCnsldtnSubitemHierOrFetch()
      Retrieval of associated SubitemHier entities (one to many). This corresponds to the OData navigation property to_CnsldtnSubitemHier.

      If the navigation property to_CnsldtnSubitemHier of a queried SubItem 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 SubitemHier 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.
    • getCnsldtnSubitemHierIfPresent

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

      If the navigation property for an entity SubItem 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_CnsldtnSubitemHier is already loaded, the result will contain the SubitemHier entities. If not, an Option with result state empty is returned.
    • setCnsldtnSubitemHier

      public void setCnsldtnSubitemHier(@Nonnull List<SubitemHier> value)
      Overwrites the list of associated SubitemHier entities for the loaded navigation property to_CnsldtnSubitemHier.

      If the navigation property to_CnsldtnSubitemHier of a queried SubItem 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 SubitemHier entities.
    • addCnsldtnSubitemHier

      public void addCnsldtnSubitemHier(SubitemHier... entity)
      Adds elements to the list of associated SubitemHier entities. This corresponds to the OData navigation property to_CnsldtnSubitemHier.

      If the navigation property to_CnsldtnSubitemHier of a queried SubItem 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 SubitemHier entities.
    • fetchCnsldtnSubItemT

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

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

      Returns:
      List containing one or more associated SubItemText 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.
    • getCnsldtnSubItemTOrFetch

      @Nonnull public List<SubItemText> getCnsldtnSubItemTOrFetch()
      Retrieval of associated SubItemText entities (one to many). This corresponds to the OData navigation property to_CnsldtnSubItemT.

      If the navigation property to_CnsldtnSubItemT of a queried SubItem 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 SubItemText 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.
    • getCnsldtnSubItemTIfPresent

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

      If the navigation property for an entity SubItem 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_CnsldtnSubItemT is already loaded, the result will contain the SubItemText entities. If not, an Option with result state empty is returned.
    • setCnsldtnSubItemT

      public void setCnsldtnSubItemT(@Nonnull List<SubItemText> value)
      Overwrites the list of associated SubItemText entities for the loaded navigation property to_CnsldtnSubItemT.

      If the navigation property to_CnsldtnSubItemT of a queried SubItem 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 SubItemText entities.
    • addCnsldtnSubItemT

      public void addCnsldtnSubItemT(SubItemText... entity)
      Adds elements to the list of associated SubItemText entities. This corresponds to the OData navigation property to_CnsldtnSubItemT.

      If the navigation property to_CnsldtnSubItemT of a queried SubItem 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 SubItemText entities.
    • builder

      @Nonnull public static SubItem.SubItemBuilder 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
    • getSubItem

      @Nullable public String getSubItem()
      (Key Field) Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: SubItem

      Returns:
      Subitem
    • getSubItem_Text

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

      Original property name from the Odata EDM: SubItem_Text

      Returns:
      Subitem Description
    • getSubitemCarryForwardDestination

      @Nullable public String getSubitemCarryForwardDestination()
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: SubitemCarryForwardDestination

      Returns:
      Carryforward Subitem (Transaction Type)
    • getSubitemCarryForwardDestination_Text

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

      Original property name from the Odata EDM: SubitemCarryForwardDestination_Text

      Returns:
      Subitem Description
    • getSubitemRtrmtDivestitureDest

      @Nullable public String getSubitemRtrmtDivestitureDest()
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: SubitemRtrmtDivestitureDest

      Returns:
      Subitem for retirements/divestitures
    • getSubitemRtrmtDivestitureDest_Text

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

      Original property name from the Odata EDM: SubitemRtrmtDivestitureDest_Text

      Returns:
      Subitem Description
    • getSubitemAcquisitionDestination

      @Nullable public String getSubitemAcquisitionDestination()
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: SubitemAcquisitionDestination

      Returns:
      Acquisition subitem
    • getSubitemAcquisitionDestination_Text

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

      Original property name from the Odata EDM: SubitemAcquisitionDestination_Text

      Returns:
      Subitem Description
    • toString

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

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

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

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