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

public class MBOMItmObjDpnAssignment extends VdmEntity<MBOMItmObjDpnAssignment>
BOM Item Object Dependency Assignment

Original entity name from the Odata EDM: MBOMItmObjDpnAssignmentType

  • Field Details

    • ALL_FIELDS

      public static final MBOMItmObjDpnAssignmentSelectable ALL_FIELDS
      Selector for all available fields of MBOMItmObjDpnAssignment.
    • DELETE_MC

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

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

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

      public static final MBOMItmObjDpnAssignmentField<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 MBOMItmObjDpnAssignmentField<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 MBOMItmObjDpnAssignmentField<String> BILL_OF_MATERIAL_VERSION
      Use with available fluent helpers to apply the BillOfMaterialVersion field to query operations.
    • HEADER_CHANGE_DOCUMENT

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

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

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

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

      public static final MBOMItmObjDpnAssignmentField<String> OBJECT_DEPENDENCY_NAME
      Use with available fluent helpers to apply the ObjectDependencyName field to query operations.
    • OBJ_DPN_PROCESSING_SEQUENCE_VALUE

      public static final MBOMItmObjDpnAssignmentField<String> OBJ_DPN_PROCESSING_SEQUENCE_VALUE
      Use with available fluent helpers to apply the ObjDpnProcessingSequenceValue field to query operations.
    • VALIDITY_START_DATE

      public static final MBOMItmObjDpnAssignmentField<LocalDateTime> VALIDITY_START_DATE
      Use with available fluent helpers to apply the ValidityStartDate field to query operations.
    • VALIDITY_END_DATE

      public static final MBOMItmObjDpnAssignmentField<LocalDateTime> VALIDITY_END_DATE
      Use with available fluent helpers to apply the ValidityEndDate field to query operations.
    • TO_BILL_OF_MATERIAL_ITEM

      public static final MBOMItmObjDpnAssignmentOneToOneLink<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 MBOMItmObjDpnAssignmentOneToOneLink<MaterialBOM> TO_BILL_OF_MATERIAL
      Use with available fluent helpers to apply the to_BillOfMaterial navigation property to query operations.
  • Constructor Details

    • MBOMItmObjDpnAssignment

      public MBOMItmObjDpnAssignment()
    • MBOMItmObjDpnAssignment

      public MBOMItmObjDpnAssignment(@Nullable Boolean delete_mc, @Nullable Boolean update_mc, @Nullable String billOfMaterial, @Nullable String billOfMaterialCategory, @Nullable String billOfMaterialVariant, @Nullable String billOfMaterialVersion, @Nullable String headerChangeDocument, @Nullable String material, @Nullable String plant, @Nullable String billOfMaterialItemNodeNumber, @Nullable String objectDependencyName, @Nullable String objDpnProcessingSequenceValue, @Nullable LocalDateTime validityStartDate, @Nullable LocalDateTime validityEndDate, @Nullable MaterialBOMItem toBillOfMaterialItem, @Nullable MaterialBOM toBillOfMaterial)
  • Method Details

    • getType

      @Nonnull public Class<MBOMItmObjDpnAssignment> getType()
      Specified by:
      getType in class VdmObject<MBOMItmObjDpnAssignment>
    • 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 - Bill of Material
    • 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
    • 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
    • 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
    • setObjectDependencyName

      public void setObjectDependencyName(@Nullable String objectDependencyName)
      (Key Field) Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: ObjectDependencyName

      Parameters:
      objectDependencyName - Name of Dependency
    • setObjDpnProcessingSequenceValue

      public void setObjDpnProcessingSequenceValue(@Nullable String objDpnProcessingSequenceValue)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: ObjDpnProcessingSequenceValue

      Parameters:
      objDpnProcessingSequenceValue - Counter for sorting object allocations
    • setValidityStartDate

      public void setValidityStartDate(@Nullable LocalDateTime validityStartDate)
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: ValidityStartDate

      Parameters:
      validityStartDate - Valid-From Date
    • setValidityEndDate

      public void setValidityEndDate(@Nullable LocalDateTime validityEndDate)
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: ValidityEndDate

      Parameters:
      validityEndDate - Valid-to date
    • getEntityCollection

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

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

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

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

      @Nonnull public static <T> MBOMItmObjDpnAssignmentField<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> MBOMItmObjDpnAssignmentField<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<MBOMItmObjDpnAssignment>
    • setServicePathForFetch

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

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

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

      @Nonnull protected Map<String,Object> toMapOfNavigationProperties()
      Overrides:
      toMapOfNavigationProperties in class VdmObject<MBOMItmObjDpnAssignment>
    • 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 MBOMItmObjDpnAssignment 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 MBOMItmObjDpnAssignment 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 MBOMItmObjDpnAssignment 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 MBOMItmObjDpnAssignment 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

    • 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:
      Bill of Material
    • 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
    • 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
    • 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
    • getObjectDependencyName

      @Nullable public String getObjectDependencyName()
      (Key Field) Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: ObjectDependencyName

      Returns:
      Name of Dependency
    • getObjDpnProcessingSequenceValue

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

      Original property name from the Odata EDM: ObjDpnProcessingSequenceValue

      Returns:
      Counter for sorting object allocations
    • getValidityStartDate

      @Nullable public LocalDateTime getValidityStartDate()
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: ValidityStartDate

      Returns:
      Valid-From Date
    • getValidityEndDate

      @Nullable public LocalDateTime getValidityEndDate()
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: ValidityEndDate

      Returns:
      Valid-to date
    • toString

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

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

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

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