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

public class PolymerComposition extends VdmEntity<PolymerComposition> implements VdmEntitySet
Polymer Composition

Original entity name from the Odata EDM: PolymerComposition_Type

  • Field Details

  • Constructor Details

  • Method Details

    • getType

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

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

      Original property name from the Odata EDM: ChmlCompositionUUID

      Parameters:
      chmlCompositionUUID - Chemical Composition
    • setCompanySubstance

      public void setCompanySubstance(@Nullable String companySubstance)
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: CompanySubstance

      Parameters:
      companySubstance - Related Substance of the Composition
    • setPolymerCompositionName

      public void setPolymerCompositionName(@Nullable String polymerCompositionName)
      Constraints: Not nullable, Maximum length: 132

      Original property name from the Odata EDM: PolymerCompositionName

      Parameters:
      polymerCompositionName - Polymer Composition Name
    • 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<PolymerComposition>
    • getKey

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

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

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

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

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

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

      If the navigation property for an entity PolymerComposition 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 PolymerComponent entities. If not, an Option with result state empty is returned.
    • setComponent

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

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

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

      If the navigation property _Component of a queried PolymerComposition 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 PolymerComponent entities.
    • createAndReleaseVersion

      @Nonnull public static BoundAction.CollectionToSingle<PolymerComposition,PolymerComposition> createAndReleaseVersion(@Nonnull String companySubstance, @Nonnull String polymerCompositionName, @Nonnull Collection<D_PolymerCmpstnCreateCompP> _Components)
      Action that can be applied to a collection of entities of this class.

      Parameters:
      companySubstance - Constraints: Not nullable, Maximum length: 12

      Original parameter name from the Odata EDM: CompanySubstance

      _Components - Constraints: Not nullable

      Original parameter name from the Odata EDM: _Components

      polymerCompositionName - Constraints: Not nullable, Maximum length: 132

      Original parameter name from the Odata EDM: PolymerCompositionName

      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<PolymerComposition,Void> validate(@Nonnull String companySubstance, @Nonnull String polymerCompositionName, @Nonnull Collection<D_PolymerCmpstnCreateCompP> _Components)
      Action that can be applied to a collection of entities of this class.

      Parameters:
      companySubstance - Constraints: Not nullable, Maximum length: 12

      Original parameter name from the Odata EDM: CompanySubstance

      _Components - Constraints: Not nullable

      Original parameter name from the Odata EDM: _Components

      polymerCompositionName - Constraints: Not nullable, Maximum length: 132

      Original parameter name from the Odata EDM: PolymerCompositionName

      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

      @Nonnull public static PolymerComposition.PolymerCompositionBuilder builder()
    • getChmlCompositionUUID

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

      Original property name from the Odata EDM: ChmlCompositionUUID

      Returns:
      Chemical Composition
    • getCompanySubstance

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

      Original property name from the Odata EDM: CompanySubstance

      Returns:
      Related Substance of the Composition
    • getPolymerCompositionName

      @Nullable public String getPolymerCompositionName()
      Constraints: Not nullable, Maximum length: 132

      Original property name from the Odata EDM: PolymerCompositionName

      Returns:
      Polymer Composition Name
    • 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<PolymerComposition>
    • equals

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

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

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

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