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

public class ProductAnalyticalComposition extends VdmEntity<ProductAnalyticalComposition> implements VdmEntitySet
Product Analytical Composition

Original entity name from the Odata EDM: ProductAnalyticalComposition_Type

  • Field Details

  • Constructor Details

  • Method Details

    • getType

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

      public void setProdCmplncLegalArea(@Nullable String prodCmplncLegalArea)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: ProdCmplncLegalArea

      Parameters:
      prodCmplncLegalArea - Legal Area
    • 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
    • setChmlCmplncProdCatztnPhrs

      public void setChmlCmplncProdCatztnPhrs(@Nullable String chmlCmplncProdCatztnPhrs)
      Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: ChmlCmplncProdCatztnPhrs

      Parameters:
      chmlCmplncProdCatztnPhrs - Chemical Product Categorization
    • 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<ProductAnalyticalComposition>
    • getKey

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

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

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

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

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

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

      If the navigation property for an entity ProductAnalyticalComposition 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 _Component is already loaded, the result will contain the ProductAnalyticalComponent entities. If not, an Option with result state empty is returned.
    • setComponent

      public void setComponent(@Nonnull List<ProductAnalyticalComponent> value)
      Overwrites the list of associated ProductAnalyticalComponent entities for the loaded navigation property _Component.

      If the navigation property _Component of a queried ProductAnalyticalComposition 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 ProductAnalyticalComponent entities.
    • addComponent

      public void addComponent(ProductAnalyticalComponent... entity)
      Adds elements to the list of associated ProductAnalyticalComponent entities. This corresponds to the OData navigation property _Component.

      If the navigation property _Component of a queried ProductAnalyticalComposition 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 ProductAnalyticalComponent entities.
    • validate

      @Nonnull public static BoundAction.CollectionToSingle<ProductAnalyticalComposition,Void> validate(@Nonnull String chemicalComplianceInfo, @Nonnull Collection<D_ProdAnlytlCmpstnCreateCompP> _Components, @Nonnull String prodCmplncLegalArea, @Nonnull String chmlCmplncProdCatztnPhrs)
      Action that can be applied to a collection of entities of this class.

      Parameters:
      _Components - Constraints: Not nullable

      Original parameter name from the Odata EDM: _Components

      chemicalComplianceInfo - Constraints: Not nullable, Maximum length: 12

      Original parameter name from the Odata EDM: ChemicalComplianceInfo

      chmlCmplncProdCatztnPhrs - Constraints: Not nullable, Maximum length: 30

      Original parameter name from the Odata EDM: ChmlCmplncProdCatztnPhrs

      prodCmplncLegalArea - Constraints: Not nullable, Maximum length: 10

      Original parameter name from the Odata EDM: ProdCmplncLegalArea

      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.
    • createAndReleaseVersion

      @Nonnull public static BoundAction.CollectionToSingle<ProductAnalyticalComposition,ProductAnalyticalComposition> createAndReleaseVersion(@Nonnull String chemicalComplianceInfo, @Nonnull Collection<D_ProdAnlytlCmpstnCreateCompP> _Components, @Nonnull String prodCmplncLegalArea, @Nonnull String chmlCmplncProdCatztnPhrs)
      Action that can be applied to a collection of entities of this class.

      Parameters:
      _Components - Constraints: Not nullable

      Original parameter name from the Odata EDM: _Components

      chemicalComplianceInfo - Constraints: Not nullable, Maximum length: 12

      Original parameter name from the Odata EDM: ChemicalComplianceInfo

      chmlCmplncProdCatztnPhrs - Constraints: Not nullable, Maximum length: 30

      Original parameter name from the Odata EDM: ChmlCmplncProdCatztnPhrs

      prodCmplncLegalArea - Constraints: Not nullable, Maximum length: 10

      Original parameter name from the Odata EDM: ProdCmplncLegalArea

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

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

      Original property name from the Odata EDM: ProdCmplncLegalArea

      Returns:
      Legal Area
    • 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
    • getChmlCmplncProdCatztnPhrs

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

      Original property name from the Odata EDM: ChmlCmplncProdCatztnPhrs

      Returns:
      Chemical Product Categorization
    • 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<ProductAnalyticalComposition>
    • equals

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

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

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

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