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

public class LongestPathInBOM extends VdmEntity<LongestPathInBOM>
Longest Path in BOM

Original entity name from the Odata EDM: A_LongestPathInBOMType

  • Field Details

    • ALL_FIELDS

      public static final LongestPathInBOMSelectable ALL_FIELDS
      Selector for all available fields of LongestPathInBOM.
    • MATERIAL

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

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

      public static final LongestPathInBOMField<String> MRP_AREA
      Use with available fluent helpers to apply the MRPArea field to query operations.
    • PROPOSAL_START_DATE

      public static final LongestPathInBOMField<LocalDateTime> PROPOSAL_START_DATE
      Use with available fluent helpers to apply the ProposalStartDate field to query operations.
    • PROPOSAL_VERSION

      public static final LongestPathInBOMField<String> PROPOSAL_VERSION
      Use with available fluent helpers to apply the ProposalVersion field to query operations.
    • BILL_OF_MATERIAL_UUID

      public static final LongestPathInBOMField<UUID> BILL_OF_MATERIAL_UUID
      Use with available fluent helpers to apply the BillOfMaterialUUID field to query operations.
    • PARENT_COMPONENT

      public static final LongestPathInBOMField<String> PARENT_COMPONENT
      Use with available fluent helpers to apply the ParentComponent field to query operations.
    • PARENT_PLANT

      public static final LongestPathInBOMField<String> PARENT_PLANT
      Use with available fluent helpers to apply the ParentPlant field to query operations.
    • BILL_OF_MATERIAL_COMPONENT

      public static final LongestPathInBOMField<String> BILL_OF_MATERIAL_COMPONENT
      Use with available fluent helpers to apply the BillOfMaterialComponent field to query operations.
    • COMPONENT_PLANT

      public static final LongestPathInBOMField<String> COMPONENT_PLANT
      Use with available fluent helpers to apply the ComponentPlant field to query operations.
    • PARENT_MRP_AREA

      public static final LongestPathInBOMField<String> PARENT_MRP_AREA
      Use with available fluent helpers to apply the ParentMRPArea field to query operations.
    • COMPONENT_MRP_AREA

      public static final LongestPathInBOMField<String> COMPONENT_MRP_AREA
      Use with available fluent helpers to apply the ComponentMRPArea field to query operations.
    • COMPONENT_LEAD_TIME

      public static final LongestPathInBOMField<BigDecimal> COMPONENT_LEAD_TIME
      Use with available fluent helpers to apply the ComponentLeadTime field to query operations.
    • LEAD_TIME_CALCULATION_METHOD

      public static final LongestPathInBOMField<String> LEAD_TIME_CALCULATION_METHOD
      Use with available fluent helpers to apply the LeadTimeCalculationMethod field to query operations.
    • COMPONENT_SOS

      public static final LongestPathInBOMField<String> COMPONENT_SOS
      Use with available fluent helpers to apply the ComponentSOS field to query operations.
    • COMPONENT_SOS_TYPE

      public static final LongestPathInBOMField<String> COMPONENT_SOS_TYPE
      Use with available fluent helpers to apply the ComponentSOSType field to query operations.
    • SOS_TYPE_DESCRIPTION

      public static final LongestPathInBOMField<String> SOS_TYPE_DESCRIPTION
      Use with available fluent helpers to apply the SOSTypeDescription field to query operations.
    • TO_PROPOSAL_HDR

      public static final LongestPathInBOMOneToOneLink<ProposalHeader> TO_PROPOSAL_HDR
      Use with available fluent helpers to apply the to_ProposalHdr navigation property to query operations.
  • Constructor Details

    • LongestPathInBOM

      public LongestPathInBOM()
    • LongestPathInBOM

      public LongestPathInBOM(@Nullable String material, @Nullable String plant, @Nullable String mRPArea, @Nullable LocalDateTime proposalStartDate, @Nullable String proposalVersion, @Nullable UUID billOfMaterialUUID, @Nullable String parentComponent, @Nullable String parentPlant, @Nullable String billOfMaterialComponent, @Nullable String componentPlant, @Nullable String parentMRPArea, @Nullable String componentMRPArea, @Nullable BigDecimal componentLeadTime, @Nullable String leadTimeCalculationMethod, @Nullable String componentSOS, @Nullable String componentSOSType, @Nullable String sOSTypeDescription, @Nullable ProposalHeader toProposalHdr)
  • Method Details

    • getType

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

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

      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
    • setMRPArea

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

      Original property name from the Odata EDM: MRPArea

      Parameters:
      mRPArea - MRP Area
    • setProposalStartDate

      public void setProposalStartDate(@Nullable LocalDateTime proposalStartDate)
      (Key Field) Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: ProposalStartDate

      Parameters:
      proposalStartDate - Proposal Validity From Date
    • setProposalVersion

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

      Original property name from the Odata EDM: ProposalVersion

      Parameters:
      proposalVersion - Proposal Version
    • setBillOfMaterialUUID

      public void setBillOfMaterialUUID(@Nullable UUID billOfMaterialUUID)
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: BillOfMaterialUUID

      Parameters:
      billOfMaterialUUID - Internal Key for BOMID
    • setParentComponent

      public void setParentComponent(@Nullable String parentComponent)
      (Key Field) Constraints: Not nullable, Maximum length: 18

      Original property name from the Odata EDM: ParentComponent

      Parameters:
      parentComponent - Parent BOM Component
    • setParentPlant

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

      Original property name from the Odata EDM: ParentPlant

      Parameters:
      parentPlant - Parent Plant
    • setBillOfMaterialComponent

      public void setBillOfMaterialComponent(@Nullable String billOfMaterialComponent)
      (Key Field) Constraints: Not nullable, Maximum length: 18

      Original property name from the Odata EDM: BillOfMaterialComponent

      Parameters:
      billOfMaterialComponent - BOM component
    • setComponentPlant

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

      Original property name from the Odata EDM: ComponentPlant

      Parameters:
      componentPlant - Component Plant
    • setParentMRPArea

      public void setParentMRPArea(@Nullable String parentMRPArea)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: ParentMRPArea

      Parameters:
      parentMRPArea - Parent MRP Area
    • setComponentMRPArea

      public void setComponentMRPArea(@Nullable String componentMRPArea)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: ComponentMRPArea

      Parameters:
      componentMRPArea - Component MRP Area
    • setComponentLeadTime

      public void setComponentLeadTime(@Nullable BigDecimal componentLeadTime)
      Constraints: Not nullable, Precision: 7, Scale: 2

      Original property name from the Odata EDM: ComponentLeadTime

      Parameters:
      componentLeadTime - Individual Lead Time in Days
    • setLeadTimeCalculationMethod

      public void setLeadTimeCalculationMethod(@Nullable String leadTimeCalculationMethod)
      Constraints: Not nullable, Maximum length: 8

      Original property name from the Odata EDM: LeadTimeCalculationMethod

      Parameters:
      leadTimeCalculationMethod - Individual Lead Time calculation Method
    • setComponentSOS

      public void setComponentSOS(@Nullable String componentSOS)
      Constraints: Not nullable, Maximum length: 20

      Original property name from the Odata EDM: ComponentSOS

      Parameters:
      componentSOS - Source of Supply
    • setComponentSOSType

      public void setComponentSOSType(@Nullable String componentSOSType)
      Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: ComponentSOSType

      Parameters:
      componentSOSType - Source Type
    • setSOSTypeDescription

      public void setSOSTypeDescription(@Nullable String sOSTypeDescription)
      Constraints: Not nullable, Maximum length: 60

      Original property name from the Odata EDM: SOSTypeDescription

      Parameters:
      sOSTypeDescription - Short Text for Fixed Values
    • getEntityCollection

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

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

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

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

      @Nonnull public static <T> LongestPathInBOMField<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> LongestPathInBOMField<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<LongestPathInBOM>
    • setServicePathForFetch

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

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

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

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

      @Nullable public ProposalHeader fetchProposalHdr()
      Fetches the ProposalHeader entity (one to one) associated with this entity. This corresponds to the OData navigation property to_ProposalHdr.

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

      Returns:
      The single associated ProposalHeader 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.
    • getProposalHdrOrFetch

      @Nullable public ProposalHeader getProposalHdrOrFetch()
      Retrieval of associated ProposalHeader entity (one to one). This corresponds to the OData navigation property to_ProposalHdr.

      If the navigation property to_ProposalHdr of a queried LongestPathInBOM 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 ProposalHeader 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.
    • getProposalHdrIfPresent

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

      If the navigation property for an entity LongestPathInBOM 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_ProposalHdr is already loaded, the result will contain the ProposalHeader entity. If not, an Option with result state empty is returned.
    • setProposalHdr

      public void setProposalHdr(ProposalHeader value)
      Overwrites the associated ProposalHeader entity for the loaded navigation property to_ProposalHdr.
      Parameters:
      value - New ProposalHeader entity.
    • builder

      @Nonnull public static LongestPathInBOM.LongestPathInBOMBuilder builder()
    • getMaterial

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

      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
    • getMRPArea

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

      Original property name from the Odata EDM: MRPArea

      Returns:
      MRP Area
    • getProposalStartDate

      @Nullable public LocalDateTime getProposalStartDate()
      (Key Field) Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: ProposalStartDate

      Returns:
      Proposal Validity From Date
    • getProposalVersion

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

      Original property name from the Odata EDM: ProposalVersion

      Returns:
      Proposal Version
    • getBillOfMaterialUUID

      @Nullable public UUID getBillOfMaterialUUID()
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: BillOfMaterialUUID

      Returns:
      Internal Key for BOMID
    • getParentComponent

      @Nullable public String getParentComponent()
      (Key Field) Constraints: Not nullable, Maximum length: 18

      Original property name from the Odata EDM: ParentComponent

      Returns:
      Parent BOM Component
    • getParentPlant

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

      Original property name from the Odata EDM: ParentPlant

      Returns:
      Parent Plant
    • getBillOfMaterialComponent

      @Nullable public String getBillOfMaterialComponent()
      (Key Field) Constraints: Not nullable, Maximum length: 18

      Original property name from the Odata EDM: BillOfMaterialComponent

      Returns:
      BOM component
    • getComponentPlant

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

      Original property name from the Odata EDM: ComponentPlant

      Returns:
      Component Plant
    • getParentMRPArea

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

      Original property name from the Odata EDM: ParentMRPArea

      Returns:
      Parent MRP Area
    • getComponentMRPArea

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

      Original property name from the Odata EDM: ComponentMRPArea

      Returns:
      Component MRP Area
    • getComponentLeadTime

      @Nullable public BigDecimal getComponentLeadTime()
      Constraints: Not nullable, Precision: 7, Scale: 2

      Original property name from the Odata EDM: ComponentLeadTime

      Returns:
      Individual Lead Time in Days
    • getLeadTimeCalculationMethod

      @Nullable public String getLeadTimeCalculationMethod()
      Constraints: Not nullable, Maximum length: 8

      Original property name from the Odata EDM: LeadTimeCalculationMethod

      Returns:
      Individual Lead Time calculation Method
    • getComponentSOS

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

      Original property name from the Odata EDM: ComponentSOS

      Returns:
      Source of Supply
    • getComponentSOSType

      @Nullable public String getComponentSOSType()
      Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: ComponentSOSType

      Returns:
      Source Type
    • getSOSTypeDescription

      @Nullable public String getSOSTypeDescription()
      Constraints: Not nullable, Maximum length: 60

      Original property name from the Odata EDM: SOSTypeDescription

      Returns:
      Short Text for Fixed Values
    • toString

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

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

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

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