java.lang.Object
com.sap.cloud.sdk.datamodel.odatav4.core.VdmObject<EntityT>
com.sap.cloud.sdk.datamodel.odatav4.core.VdmEntity<ProductMaterialBsdComposition>
com.sap.cloud.sdk.s4hana.datamodel.odatav4.namespaces.productmaterialbasedcomposition.ProductMaterialBsdComposition
All Implemented Interfaces:
VdmEntitySet

public class ProductMaterialBsdComposition extends VdmEntity<ProductMaterialBsdComposition> implements VdmEntitySet
Product Material-Based Compostion

Original entity name from the Odata EDM: ProductMaterialBsdComposition_Type

  • Field Details

  • Constructor Details

  • Method Details

    • getType

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

      public void setChmlCompositionUUID(@Nullable UUID chmlCompositionUUID)
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: ChmlCompositionUUID

      Parameters:
      chmlCompositionUUID - Chemical Composition
    • setChemicalComplianceInfo

      public void setChemicalComplianceInfo(@Nullable String chemicalComplianceInfo)
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: ChemicalComplianceInfo

      Parameters:
      chemicalComplianceInfo - Chemical Compliance Information
    • setChmlCompositionStatus

      public void setChmlCompositionStatus(@Nullable String chmlCompositionStatus)
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: ChmlCompositionStatus

      Parameters:
      chmlCompositionStatus - Processing Status for Chemical Composition
    • setValidityStartDateTime

      public void setValidityStartDateTime(@Nullable OffsetDateTime validityStartDateTime)
      Constraints: Nullable

      Original property name from the Odata EDM: ValidityStartDateTime

      Parameters:
      validityStartDateTime - Valid-From Date Time Stamp
    • setValidityEndDateTime

      public void setValidityEndDateTime(@Nullable OffsetDateTime validityEndDateTime)
      Constraints: Nullable

      Original property name from the Odata EDM: ValidityEndDateTime

      Parameters:
      validityEndDateTime - Valid-To Date Time Stamp
    • set_Messages

      public void set_Messages(@Nullable Collection<SAP__Message> _Messages)
      Constraints: Not nullable

      Original property name from the Odata EDM: SAP__Messages

      Parameters:
      _Messages - The _Messages to set.
    • getEntityCollection

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

      @Nonnull protected ODataEntityKey getKey()
      Overrides:
      getKey in class VdmObject<ProductMaterialBsdComposition>
    • toMapOfFields

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

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

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

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

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

      If the navigation property for an entity ProductMaterialBsdComposition 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 _AfterProductionComponent is already loaded, the result will contain the ProdMatlBsdAfterProdnComp entities. If not, an Option with result state empty is returned.
    • setAfterProductionComponent

      public void setAfterProductionComponent(@Nonnull List<ProdMatlBsdAfterProdnComp> value)
      Overwrites the list of associated ProdMatlBsdAfterProdnComp entities for the loaded navigation property _AfterProductionComponent.

      If the navigation property _AfterProductionComponent of a queried ProductMaterialBsdComposition 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 ProdMatlBsdAfterProdnComp entities.
    • addAfterProductionComponent

      public void addAfterProductionComponent(ProdMatlBsdAfterProdnComp... entity)
      Adds elements to the list of associated ProdMatlBsdAfterProdnComp entities. This corresponds to the OData navigation property _AfterProductionComponent.

      If the navigation property _AfterProductionComponent of a queried ProductMaterialBsdComposition 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 ProdMatlBsdAfterProdnComp entities.
    • getBeforeProductionComponentIfPresent

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

      If the navigation property for an entity ProductMaterialBsdComposition 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 _BeforeProductionComponent is already loaded, the result will contain the ProdMatlBsdBeforeProdnComp entities. If not, an Option with result state empty is returned.
    • setBeforeProductionComponent

      public void setBeforeProductionComponent(@Nonnull List<ProdMatlBsdBeforeProdnComp> value)
      Overwrites the list of associated ProdMatlBsdBeforeProdnComp entities for the loaded navigation property _BeforeProductionComponent.

      If the navigation property _BeforeProductionComponent of a queried ProductMaterialBsdComposition 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 ProdMatlBsdBeforeProdnComp entities.
    • addBeforeProductionComponent

      public void addBeforeProductionComponent(ProdMatlBsdBeforeProdnComp... entity)
      Adds elements to the list of associated ProdMatlBsdBeforeProdnComp entities. This corresponds to the OData navigation property _BeforeProductionComponent.

      If the navigation property _BeforeProductionComponent of a queried ProductMaterialBsdComposition 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 ProdMatlBsdBeforeProdnComp entities.
    • getProducedSubstanceIfPresent

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

      If the navigation property for an entity ProductMaterialBsdComposition 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 _ProducedSubstance is already loaded, the result will contain the ProdMatlBsdProducedSubst entities. If not, an Option with result state empty is returned.
    • setProducedSubstance

      public void setProducedSubstance(@Nonnull List<ProdMatlBsdProducedSubst> value)
      Overwrites the list of associated ProdMatlBsdProducedSubst entities for the loaded navigation property _ProducedSubstance.

      If the navigation property _ProducedSubstance of a queried ProductMaterialBsdComposition 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 ProdMatlBsdProducedSubst entities.
    • addProducedSubstance

      public void addProducedSubstance(ProdMatlBsdProducedSubst... entity)
      Adds elements to the list of associated ProdMatlBsdProducedSubst entities. This corresponds to the OData navigation property _ProducedSubstance.

      If the navigation property _ProducedSubstance of a queried ProductMaterialBsdComposition 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 ProdMatlBsdProducedSubst entities.
    • createAndReleaseVersion

      @Nonnull public static BoundAction.CollectionToSingle<ProductMaterialBsdComposition,ProductMaterialBsdComposition> createAndReleaseVersion(@Nonnull String chemicalComplianceInfo, @Nonnull Collection<D_ProdMatlBsdCmpstnCrteAfterP> _AfterProductionComponent, @Nonnull Collection<D_ProdMatlBsdCmpstnCrteBeforeP> _BeforeProductionComponent, @Nonnull Collection<D_ProdMatlBsdCmpstnCrteSubstP> _ProducedSubstance)
      Action that can be applied to a collection of entities of this class.

      Parameters:
      _ProducedSubstance - Constraints: Not nullable

      Original parameter name from the Odata EDM: _ProducedSubstance

      chemicalComplianceInfo - Constraints: Not nullable, Maximum length: 12

      Original parameter name from the Odata EDM: ChemicalComplianceInfo

      _BeforeProductionComponent - Constraints: Not nullable

      Original parameter name from the Odata EDM: _BeforeProductionComponent

      _AfterProductionComponent - Constraints: Not nullable

      Original parameter name from the Odata EDM: _AfterProductionComponent

      Returns:
      Action object prepared with the given parameters to be applied to a collection of entities of this class.

      To execute it use the service.forEntity(entity).applyAction(thisAction) API.
    • validate

      @Nonnull public static BoundAction.CollectionToSingle<ProductMaterialBsdComposition,Void> validate(@Nonnull String chemicalComplianceInfo, @Nonnull Collection<D_ProdMatlBsdCmpstnCrteAfterP> _AfterProductionComponent, @Nonnull Collection<D_ProdMatlBsdCmpstnCrteBeforeP> _BeforeProductionComponent, @Nonnull Collection<D_ProdMatlBsdCmpstnCrteSubstP> _ProducedSubstance)
      Action that can be applied to a collection of entities of this class.

      Parameters:
      _ProducedSubstance - Constraints: Not nullable

      Original parameter name from the Odata EDM: _ProducedSubstance

      chemicalComplianceInfo - Constraints: Not nullable, Maximum length: 12

      Original parameter name from the Odata EDM: ChemicalComplianceInfo

      _BeforeProductionComponent - Constraints: Not nullable

      Original parameter name from the Odata EDM: _BeforeProductionComponent

      _AfterProductionComponent - Constraints: Not nullable

      Original parameter name from the Odata EDM: _AfterProductionComponent

      Returns:
      Action object prepared with the given parameters to be applied to a collection of entities of this class.

      To execute it use the service.forEntity(entity).applyAction(thisAction) API.
    • builder

    • getChmlCompositionUUID

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

      Original property name from the Odata EDM: ChmlCompositionUUID

      Returns:
      Chemical Composition
    • getChemicalComplianceInfo

      @Nullable public String getChemicalComplianceInfo()
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: ChemicalComplianceInfo

      Returns:
      Chemical Compliance Information
    • getChmlCompositionStatus

      @Nullable public String getChmlCompositionStatus()
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: ChmlCompositionStatus

      Returns:
      Processing Status for Chemical Composition
    • getValidityStartDateTime

      @Nullable public OffsetDateTime getValidityStartDateTime()
      Constraints: Nullable

      Original property name from the Odata EDM: ValidityStartDateTime

      Returns:
      Valid-From Date Time Stamp
    • getValidityEndDateTime

      @Nullable public OffsetDateTime getValidityEndDateTime()
      Constraints: Nullable

      Original property name from the Odata EDM: ValidityEndDateTime

      Returns:
      Valid-To Date Time Stamp
    • get_Messages

      @Nullable public Collection<SAP__Message> get_Messages()
      Constraints: Not nullable

      Original property name from the Odata EDM: SAP__Messages

      Returns:
      The _Messages contained in this VdmEntity.
    • toString

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

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

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

      public int hashCode()
      Overrides:
      hashCode in class VdmEntity<ProductMaterialBsdComposition>
    • getOdataType

      public String getOdataType()
      Specified by:
      getOdataType in class VdmObject<ProductMaterialBsdComposition>