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

public class MaterialBOMSubItem extends VdmEntity<MaterialBOMSubItem>
Bill of Material Subitem

Original entity name from the Odata EDM: MaterialBOMSubItemType

  • Field Details

    • ALL_FIELDS

      public static final MaterialBOMSubItemSelectable ALL_FIELDS
      Selector for all available fields of MaterialBOMSubItem.
    • DELETE_MC

      public static final MaterialBOMSubItemField<Boolean> DELETE_MC
      Use with available fluent helpers to apply the Delete_mc field to query operations.
    • UPDATE_MC

      public static final MaterialBOMSubItemField<Boolean> UPDATE_MC
      Use with available fluent helpers to apply the Update_mc field to query operations.
    • BILL_OF_MATERIAL

      public static final MaterialBOMSubItemField<String> BILL_OF_MATERIAL
      Use with available fluent helpers to apply the BillOfMaterial field to query operations.
    • BILL_OF_MATERIAL_CATEGORY

      public static final MaterialBOMSubItemField<String> BILL_OF_MATERIAL_CATEGORY
      Use with available fluent helpers to apply the BillOfMaterialCategory field to query operations.
    • BILL_OF_MATERIAL_VARIANT

      public static final MaterialBOMSubItemField<String> BILL_OF_MATERIAL_VARIANT
      Use with available fluent helpers to apply the BillOfMaterialVariant field to query operations.
    • BILL_OF_MATERIAL_VERSION

      public static final MaterialBOMSubItemField<String> BILL_OF_MATERIAL_VERSION
      Use with available fluent helpers to apply the BillOfMaterialVersion field to query operations.
    • BILL_OF_MATERIAL_ITEM_NODE_NUMBER

      public static final MaterialBOMSubItemField<String> BILL_OF_MATERIAL_ITEM_NODE_NUMBER
      Use with available fluent helpers to apply the BillOfMaterialItemNodeNumber field to query operations.
    • HEADER_CHANGE_DOCUMENT

      public static final MaterialBOMSubItemField<String> HEADER_CHANGE_DOCUMENT
      Use with available fluent helpers to apply the HeaderChangeDocument field to query operations.
    • MATERIAL

      public static final MaterialBOMSubItemField<String> MATERIAL
      Use with available fluent helpers to apply the Material field to query operations.
    • PLANT

      public static final MaterialBOMSubItemField<String> PLANT
      Use with available fluent helpers to apply the Plant field to query operations.
    • BOM_ITEM_INTERNAL_CHANGE_COUNT

      public static final MaterialBOMSubItemField<String> BOM_ITEM_INTERNAL_CHANGE_COUNT
      Use with available fluent helpers to apply the BOMItemInternalChangeCount field to query operations.
    • BOM_SUB_ITEM_NUMBER_VALUE

      public static final MaterialBOMSubItemField<String> BOM_SUB_ITEM_NUMBER_VALUE
      Use with available fluent helpers to apply the BOMSubItemNumberValue field to query operations.
    • BILL_OF_MATERIAL_ITEM_UNIT

      public static final MaterialBOMSubItemField<String> BILL_OF_MATERIAL_ITEM_UNIT
      Use with available fluent helpers to apply the BillOfMaterialItemUnit field to query operations.
    • BILL_OF_MATERIAL_SUB_ITEM_QUANTITY

      public static final MaterialBOMSubItemField<BigDecimal> BILL_OF_MATERIAL_SUB_ITEM_QUANTITY
      Use with available fluent helpers to apply the BillOfMaterialSubItemQuantity field to query operations.
    • BOM_SUB_ITEM_INSTALLATION_POINT

      public static final MaterialBOMSubItemField<String> BOM_SUB_ITEM_INSTALLATION_POINT
      Use with available fluent helpers to apply the BOMSubItemInstallationPoint field to query operations.
    • BILL_OF_MATERIAL_SUB_ITEM_TEXT

      public static final MaterialBOMSubItemField<String> BILL_OF_MATERIAL_SUB_ITEM_TEXT
      Use with available fluent helpers to apply the BillOfMaterialSubItemText field to query operations.
    • TO_BILL_OF_MATERIAL_ITEM

      public static final MaterialBOMSubItemOneToOneLink<MaterialBOMItem> TO_BILL_OF_MATERIAL_ITEM
      Use with available fluent helpers to apply the to_BillOfMaterialItem navigation property to query operations.
    • TO_BILL_OF_MATERIAL

      public static final MaterialBOMSubItemOneToOneLink<MaterialBOM> TO_BILL_OF_MATERIAL
      Use with available fluent helpers to apply the to_BillOfMaterial navigation property to query operations.
  • Constructor Details

    • MaterialBOMSubItem

      public MaterialBOMSubItem()
    • MaterialBOMSubItem

      public MaterialBOMSubItem(@Nullable Boolean delete_mc, @Nullable Boolean update_mc, @Nullable String billOfMaterial, @Nullable String billOfMaterialCategory, @Nullable String billOfMaterialVariant, @Nullable String billOfMaterialVersion, @Nullable String billOfMaterialItemNodeNumber, @Nullable String headerChangeDocument, @Nullable String material, @Nullable String plant, @Nullable String bOMItemInternalChangeCount, @Nullable String bOMSubItemNumberValue, @Nullable String billOfMaterialItemUnit, @Nullable BigDecimal billOfMaterialSubItemQuantity, @Nullable String bOMSubItemInstallationPoint, @Nullable String billOfMaterialSubItemText, @Nullable MaterialBOMItem toBillOfMaterialItem, @Nullable MaterialBOM toBillOfMaterial)
  • Method Details

    • getType

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

      public void setDelete_mc(@Nullable Boolean delete_mc)
      Constraints: none

      Original property name from the Odata EDM: Delete_mc

      Parameters:
      delete_mc - Dyn. Method Control
    • setUpdate_mc

      public void setUpdate_mc(@Nullable Boolean update_mc)
      Constraints: none

      Original property name from the Odata EDM: Update_mc

      Parameters:
      update_mc - Dyn. Method Control
    • setBillOfMaterial

      public void setBillOfMaterial(@Nullable String billOfMaterial)
      (Key Field) Constraints: Not nullable, Maximum length: 8

      Original property name from the Odata EDM: BillOfMaterial

      Parameters:
      billOfMaterial - Character field, 8 characters long
    • setBillOfMaterialCategory

      public void setBillOfMaterialCategory(@Nullable String billOfMaterialCategory)
      (Key Field) Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: BillOfMaterialCategory

      Parameters:
      billOfMaterialCategory - BOM category
    • setBillOfMaterialVariant

      public void setBillOfMaterialVariant(@Nullable String billOfMaterialVariant)
      (Key Field) Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: BillOfMaterialVariant

      Parameters:
      billOfMaterialVariant - Alternative BOM
    • setBillOfMaterialVersion

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

      Original property name from the Odata EDM: BillOfMaterialVersion

      Parameters:
      billOfMaterialVersion - BOM Version
    • setBillOfMaterialItemNodeNumber

      public void setBillOfMaterialItemNodeNumber(@Nullable String billOfMaterialItemNodeNumber)
      (Key Field) Constraints: Not nullable, Maximum length: 8

      Original property name from the Odata EDM: BillOfMaterialItemNodeNumber

      Parameters:
      billOfMaterialItemNodeNumber - BOM item node number
    • setHeaderChangeDocument

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

      Original property name from the Odata EDM: HeaderChangeDocument

      Parameters:
      headerChangeDocument - Change Number
    • setMaterial

      public void setMaterial(@Nullable String material)
      (Key Field) Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: Material

      Parameters:
      material - Material Number
    • setPlant

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

      Original property name from the Odata EDM: Plant

      Parameters:
      plant - Plant
    • setBOMItemInternalChangeCount

      public void setBOMItemInternalChangeCount(@Nullable String bOMItemInternalChangeCount)
      (Key Field) Constraints: Not nullable, Maximum length: 8

      Original property name from the Odata EDM: BOMItemInternalChangeCount

      Parameters:
      bOMItemInternalChangeCount - Internal counter
    • setBOMSubItemNumberValue

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

      Original property name from the Odata EDM: BOMSubItemNumberValue

      Parameters:
      bOMSubItemNumberValue - Undefined range (can be used for patch levels)
    • setBillOfMaterialItemUnit

      public void setBillOfMaterialItemUnit(@Nullable String billOfMaterialItemUnit)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: BillOfMaterialItemUnit

      Parameters:
      billOfMaterialItemUnit - Component Unit of Measure
    • setBillOfMaterialSubItemQuantity

      public void setBillOfMaterialSubItemQuantity(@Nullable BigDecimal billOfMaterialSubItemQuantity)
      Constraints: Not nullable, Precision: 13, Scale: 3

      Original property name from the Odata EDM: BillOfMaterialSubItemQuantity

      Parameters:
      billOfMaterialSubItemQuantity - Sub-item quantity
    • setBOMSubItemInstallationPoint

      public void setBOMSubItemInstallationPoint(@Nullable String bOMSubItemInstallationPoint)
      Constraints: Not nullable, Maximum length: 20

      Original property name from the Odata EDM: BOMSubItemInstallationPoint

      Parameters:
      bOMSubItemInstallationPoint - Installation Point for Subitem
    • setBillOfMaterialSubItemText

      public void setBillOfMaterialSubItemText(@Nullable String billOfMaterialSubItemText)
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: BillOfMaterialSubItemText

      Parameters:
      billOfMaterialSubItemText - BOM sub-item text
    • getEntityCollection

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

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

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

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

      @Nonnull public static <T> MaterialBOMSubItemField<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> MaterialBOMSubItemField<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<MaterialBOMSubItem>
    • setServicePathForFetch

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

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

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

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

      @Nullable public MaterialBOMItem fetchBillOfMaterialItem()
      Fetches the MaterialBOMItem entity (one to one) associated with this entity. This corresponds to the OData navigation property to_BillOfMaterialItem.

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

      Returns:
      The single associated MaterialBOMItem entity, or null if an entity is not associated.
      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.
    • getBillOfMaterialItemOrFetch

      @Nullable public MaterialBOMItem getBillOfMaterialItemOrFetch()
      Retrieval of associated MaterialBOMItem entity (one to one). This corresponds to the OData navigation property to_BillOfMaterialItem.

      If the navigation property to_BillOfMaterialItem of a queried MaterialBOMSubItem 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 MaterialBOMItem entity.
      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.
    • getBillOfMaterialItemIfPresent

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

      If the navigation property for an entity MaterialBOMSubItem 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_BillOfMaterialItem is already loaded, the result will contain the MaterialBOMItem entity. If not, an Option with result state empty is returned.
    • setBillOfMaterialItem

      public void setBillOfMaterialItem(MaterialBOMItem value)
      Overwrites the associated MaterialBOMItem entity for the loaded navigation property to_BillOfMaterialItem.
      Parameters:
      value - New MaterialBOMItem entity.
    • fetchBillOfMaterial

      @Nullable public MaterialBOM fetchBillOfMaterial()
      Fetches the MaterialBOM entity (one to one) associated with this entity. This corresponds to the OData navigation property to_BillOfMaterial.

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

      Returns:
      The single associated MaterialBOM entity, or null if an entity is not associated.
      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.
    • getBillOfMaterialOrFetch

      @Nullable public MaterialBOM getBillOfMaterialOrFetch()
      Retrieval of associated MaterialBOM entity (one to one). This corresponds to the OData navigation property to_BillOfMaterial.

      If the navigation property to_BillOfMaterial of a queried MaterialBOMSubItem 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 MaterialBOM entity.
      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.
    • getBillOfMaterialIfPresent

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

      If the navigation property for an entity MaterialBOMSubItem 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_BillOfMaterial is already loaded, the result will contain the MaterialBOM entity. If not, an Option with result state empty is returned.
    • setBillOfMaterial

      public void setBillOfMaterial(MaterialBOM value)
      Overwrites the associated MaterialBOM entity for the loaded navigation property to_BillOfMaterial.
      Parameters:
      value - New MaterialBOM entity.
    • builder

      @Nonnull public static MaterialBOMSubItem.MaterialBOMSubItemBuilder builder()
    • getDelete_mc

      @Nullable public Boolean getDelete_mc()
      Constraints: none

      Original property name from the Odata EDM: Delete_mc

      Returns:
      Dyn. Method Control
    • getUpdate_mc

      @Nullable public Boolean getUpdate_mc()
      Constraints: none

      Original property name from the Odata EDM: Update_mc

      Returns:
      Dyn. Method Control
    • getBillOfMaterial

      @Nullable public String getBillOfMaterial()
      (Key Field) Constraints: Not nullable, Maximum length: 8

      Original property name from the Odata EDM: BillOfMaterial

      Returns:
      Character field, 8 characters long
    • getBillOfMaterialCategory

      @Nullable public String getBillOfMaterialCategory()
      (Key Field) Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: BillOfMaterialCategory

      Returns:
      BOM category
    • getBillOfMaterialVariant

      @Nullable public String getBillOfMaterialVariant()
      (Key Field) Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: BillOfMaterialVariant

      Returns:
      Alternative BOM
    • getBillOfMaterialVersion

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

      Original property name from the Odata EDM: BillOfMaterialVersion

      Returns:
      BOM Version
    • getBillOfMaterialItemNodeNumber

      @Nullable public String getBillOfMaterialItemNodeNumber()
      (Key Field) Constraints: Not nullable, Maximum length: 8

      Original property name from the Odata EDM: BillOfMaterialItemNodeNumber

      Returns:
      BOM item node number
    • getHeaderChangeDocument

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

      Original property name from the Odata EDM: HeaderChangeDocument

      Returns:
      Change Number
    • getMaterial

      @Nullable public String getMaterial()
      (Key Field) Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: Material

      Returns:
      Material Number
    • getPlant

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

      Original property name from the Odata EDM: Plant

      Returns:
      Plant
    • getBOMItemInternalChangeCount

      @Nullable public String getBOMItemInternalChangeCount()
      (Key Field) Constraints: Not nullable, Maximum length: 8

      Original property name from the Odata EDM: BOMItemInternalChangeCount

      Returns:
      Internal counter
    • getBOMSubItemNumberValue

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

      Original property name from the Odata EDM: BOMSubItemNumberValue

      Returns:
      Undefined range (can be used for patch levels)
    • getBillOfMaterialItemUnit

      @Nullable public String getBillOfMaterialItemUnit()
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: BillOfMaterialItemUnit

      Returns:
      Component Unit of Measure
    • getBillOfMaterialSubItemQuantity

      @Nullable public BigDecimal getBillOfMaterialSubItemQuantity()
      Constraints: Not nullable, Precision: 13, Scale: 3

      Original property name from the Odata EDM: BillOfMaterialSubItemQuantity

      Returns:
      Sub-item quantity
    • getBOMSubItemInstallationPoint

      @Nullable public String getBOMSubItemInstallationPoint()
      Constraints: Not nullable, Maximum length: 20

      Original property name from the Odata EDM: BOMSubItemInstallationPoint

      Returns:
      Installation Point for Subitem
    • getBillOfMaterialSubItemText

      @Nullable public String getBillOfMaterialSubItemText()
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: BillOfMaterialSubItemText

      Returns:
      BOM sub-item text
    • toString

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

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

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

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