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

public class CompanySubstance extends VdmEntity<CompanySubstance> implements VdmEntitySet
Company Substance

Original entity name from the Odata EDM: CompanySubstance_Type

  • Field Details

  • Constructor Details

  • Method Details

    • getType

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

      public void setCompanySubstanceUUID(@Nullable UUID companySubstanceUUID)
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: CompanySubstanceUUID

      Parameters:
      companySubstanceUUID - Substance
    • setCompanySubstance

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

      Original property name from the Odata EDM: CompanySubstance

      Parameters:
      companySubstance - Internal Number
    • setCompanySubstanceInternalName

      public void setCompanySubstanceInternalName(@Nullable String companySubstanceInternalName)
      Constraints: Not nullable, Maximum length: 255

      Original property name from the Odata EDM: CompanySubstanceInternalName

      Parameters:
      companySubstanceInternalName - Internal Substance Name
    • setResponsibleUnit

      public void setResponsibleUnit(@Nullable String responsibleUnit)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: ResponsibleUnit

      Parameters:
      responsibleUnit - Responsible Unit
    • setPolymerIsBsdOnOECDDef

      public void setPolymerIsBsdOnOECDDef(@Nullable Boolean polymerIsBsdOnOECDDef)
      Constraints: Not nullable

      Original property name from the Odata EDM: PolymerIsBsdOnOECDDef

      Parameters:
      polymerIsBsdOnOECDDef - Polymer Based on OECD Definition
    • setListedSubstanceUUID

      public void setListedSubstanceUUID(@Nullable UUID listedSubstanceUUID)
      Constraints: Nullable

      Original property name from the Odata EDM: ListedSubstanceUUID

      Parameters:
      listedSubstanceUUID - Listed Substance UUID
    • setListedSubstance

      public void setListedSubstance(@Nullable String listedSubstance)
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: ListedSubstance

      Parameters:
      listedSubstance - Listed Substance
    • setCASNumber

      public void setCASNumber(@Nullable String cASNumber)
      Constraints: Not nullable, Maximum length: 20

      Original property name from the Odata EDM: CASNumber

      Parameters:
      cASNumber - CAS Number
    • setECNumber

      public void setECNumber(@Nullable String eCNumber)
      Constraints: Not nullable, Maximum length: 9

      Original property name from the Odata EDM: ECNumber

      Parameters:
      eCNumber - Listed Substance EC Number
    • setMolecularFormula

      public void setMolecularFormula(@Nullable String molecularFormula)
      Constraints: Not nullable, Maximum length: 60

      Original property name from the Odata EDM: MolecularFormula

      Parameters:
      molecularFormula - Molecular Formula
    • 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<CompanySubstance>
    • getKey

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

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

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

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

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

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

      If the navigation property for an entity CompanySubstance 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 _CompanySubstanceText is already loaded, the result will contain the CompanySubstanceText entities. If not, an Option with result state empty is returned.
    • setCompanySubstanceText

      public void setCompanySubstanceText(@Nonnull List<CompanySubstanceText> value)
      Overwrites the list of associated CompanySubstanceText entities for the loaded navigation property _CompanySubstanceText.

      If the navigation property _CompanySubstanceText of a queried CompanySubstance 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 CompanySubstanceText entities.
    • addCompanySubstanceText

      public void addCompanySubstanceText(CompanySubstanceText... entity)
      Adds elements to the list of associated CompanySubstanceText entities. This corresponds to the OData navigation property _CompanySubstanceText.

      If the navigation property _CompanySubstanceText of a queried CompanySubstance 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 CompanySubstanceText entities.
    • getCompanySubstanceVarAssgmtIfPresent

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

      If the navigation property for an entity CompanySubstance 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 _CompanySubstanceVarAssgmt is already loaded, the result will contain the CompanySubstanceVarAssgmt entities. If not, an Option with result state empty is returned.
    • setCompanySubstanceVarAssgmt

      public void setCompanySubstanceVarAssgmt(@Nonnull List<CompanySubstanceVarAssgmt> value)
      Overwrites the list of associated CompanySubstanceVarAssgmt entities for the loaded navigation property _CompanySubstanceVarAssgmt.

      If the navigation property _CompanySubstanceVarAssgmt of a queried CompanySubstance 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 CompanySubstanceVarAssgmt entities.
    • addCompanySubstanceVarAssgmt

      public void addCompanySubstanceVarAssgmt(CompanySubstanceVarAssgmt... entity)
      Adds elements to the list of associated CompanySubstanceVarAssgmt entities. This corresponds to the OData navigation property _CompanySubstanceVarAssgmt.

      If the navigation property _CompanySubstanceVarAssgmt of a queried CompanySubstance 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 CompanySubstanceVarAssgmt entities.
    • createOrUpdateCompanySubstance

      @Nonnull public static BoundAction.CollectionToSingle<CompanySubstance,CompanySubstance> createOrUpdateCompanySubstance(@Nonnull String companySubstance, @Nonnull String responsibleUnit, @Nonnull Collection<D_CoSubstCrteOrUpdtTextP> _CompanySubstanceTexts, @Nonnull Collection<D_CoSubstCrteOrUpdtLstdSubstP> _ListedSubstances, @Nonnull String companySubstanceInternalName, @Nonnull Boolean polymerIsBsdOnOECDDef)
      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

      _CompanySubstanceTexts - Constraints: Not nullable

      Original parameter name from the Odata EDM: _CompanySubstanceTexts

      companySubstanceInternalName - Constraints: Not nullable, Maximum length: 255

      Original parameter name from the Odata EDM: CompanySubstanceInternalName

      _ListedSubstances - Constraints: Not nullable

      Original parameter name from the Odata EDM: _ListedSubstances

      responsibleUnit - Constraints: Not nullable, Maximum length: 10

      Original parameter name from the Odata EDM: ResponsibleUnit

      polymerIsBsdOnOECDDef - Constraints: Not nullable

      Original parameter name from the Odata EDM: PolymerIsBsdOnOECDDef

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

      @Nonnull public static BoundAction.CollectionToSingle<CompanySubstance,CompanySubstance> createWithListedSubstance(@Nonnull String companySubstance, @Nonnull String responsibleUnit, @Nonnull String listedSubstanceName, @Nonnull Collection<D_CoSubstCrteWthLstdSubstTextP> _CompanySubstanceTexts, @Nonnull String companySubstanceInternalName, @Nonnull Boolean polymerIsBsdOnOECDDef, @Nonnull String cASNumber, @Nonnull String eCNumber, @Nonnull String molecularFormula)
      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

      eCNumber - Constraints: Not nullable, Maximum length: 9

      Original parameter name from the Odata EDM: ECNumber

      listedSubstanceName - Constraints: Not nullable, Maximum length: 1333

      Original parameter name from the Odata EDM: ListedSubstanceName

      _CompanySubstanceTexts - Constraints: Not nullable

      Original parameter name from the Odata EDM: _CompanySubstanceTexts

      molecularFormula - Constraints: Not nullable, Maximum length: 60

      Original parameter name from the Odata EDM: MolecularFormula

      companySubstanceInternalName - Constraints: Not nullable, Maximum length: 255

      Original parameter name from the Odata EDM: CompanySubstanceInternalName

      cASNumber - Constraints: Not nullable, Maximum length: 20

      Original parameter name from the Odata EDM: CASNumber

      responsibleUnit - Constraints: Not nullable, Maximum length: 10

      Original parameter name from the Odata EDM: ResponsibleUnit

      polymerIsBsdOnOECDDef - Constraints: Not nullable

      Original parameter name from the Odata EDM: PolymerIsBsdOnOECDDef

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

      @Nonnull public static BoundAction.CollectionToSingle<CompanySubstance,Void> validateWithListedSubstance(@Nonnull String companySubstance, @Nonnull String responsibleUnit, @Nonnull String listedSubstanceName, @Nonnull Collection<D_CoSubstCrteWthLstdSubstTextP> _CompanySubstanceTexts, @Nonnull String companySubstanceInternalName, @Nonnull Boolean polymerIsBsdOnOECDDef, @Nonnull String cASNumber, @Nonnull String eCNumber, @Nonnull String molecularFormula)
      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

      eCNumber - Constraints: Not nullable, Maximum length: 9

      Original parameter name from the Odata EDM: ECNumber

      listedSubstanceName - Constraints: Not nullable, Maximum length: 1333

      Original parameter name from the Odata EDM: ListedSubstanceName

      _CompanySubstanceTexts - Constraints: Not nullable

      Original parameter name from the Odata EDM: _CompanySubstanceTexts

      molecularFormula - Constraints: Not nullable, Maximum length: 60

      Original parameter name from the Odata EDM: MolecularFormula

      companySubstanceInternalName - Constraints: Not nullable, Maximum length: 255

      Original parameter name from the Odata EDM: CompanySubstanceInternalName

      cASNumber - Constraints: Not nullable, Maximum length: 20

      Original parameter name from the Odata EDM: CASNumber

      responsibleUnit - Constraints: Not nullable, Maximum length: 10

      Original parameter name from the Odata EDM: ResponsibleUnit

      polymerIsBsdOnOECDDef - Constraints: Not nullable

      Original parameter name from the Odata EDM: PolymerIsBsdOnOECDDef

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

      @Nonnull public static BoundAction.CollectionToSingle<CompanySubstance,Void> validateCompanySubstance(@Nonnull String companySubstance, @Nonnull String responsibleUnit, @Nonnull Collection<D_CoSubstCrteOrUpdtTextP> _CompanySubstanceTexts, @Nonnull Collection<D_CoSubstCrteOrUpdtLstdSubstP> _ListedSubstances, @Nonnull String companySubstanceInternalName, @Nonnull Boolean polymerIsBsdOnOECDDef)
      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

      _CompanySubstanceTexts - Constraints: Not nullable

      Original parameter name from the Odata EDM: _CompanySubstanceTexts

      companySubstanceInternalName - Constraints: Not nullable, Maximum length: 255

      Original parameter name from the Odata EDM: CompanySubstanceInternalName

      _ListedSubstances - Constraints: Not nullable

      Original parameter name from the Odata EDM: _ListedSubstances

      responsibleUnit - Constraints: Not nullable, Maximum length: 10

      Original parameter name from the Odata EDM: ResponsibleUnit

      polymerIsBsdOnOECDDef - Constraints: Not nullable

      Original parameter name from the Odata EDM: PolymerIsBsdOnOECDDef

      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 CompanySubstance.CompanySubstanceBuilder builder()
    • getCompanySubstanceUUID

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

      Original property name from the Odata EDM: CompanySubstanceUUID

      Returns:
      Substance
    • getCompanySubstance

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

      Original property name from the Odata EDM: CompanySubstance

      Returns:
      Internal Number
    • getCompanySubstanceInternalName

      @Nullable public String getCompanySubstanceInternalName()
      Constraints: Not nullable, Maximum length: 255

      Original property name from the Odata EDM: CompanySubstanceInternalName

      Returns:
      Internal Substance Name
    • getResponsibleUnit

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

      Original property name from the Odata EDM: ResponsibleUnit

      Returns:
      Responsible Unit
    • getPolymerIsBsdOnOECDDef

      @Nullable public Boolean getPolymerIsBsdOnOECDDef()
      Constraints: Not nullable

      Original property name from the Odata EDM: PolymerIsBsdOnOECDDef

      Returns:
      Polymer Based on OECD Definition
    • getListedSubstanceUUID

      @Nullable public UUID getListedSubstanceUUID()
      Constraints: Nullable

      Original property name from the Odata EDM: ListedSubstanceUUID

      Returns:
      Listed Substance UUID
    • getListedSubstance

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

      Original property name from the Odata EDM: ListedSubstance

      Returns:
      Listed Substance
    • getCASNumber

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

      Original property name from the Odata EDM: CASNumber

      Returns:
      CAS Number
    • getECNumber

      @Nullable public String getECNumber()
      Constraints: Not nullable, Maximum length: 9

      Original property name from the Odata EDM: ECNumber

      Returns:
      Listed Substance EC Number
    • getMolecularFormula

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

      Original property name from the Odata EDM: MolecularFormula

      Returns:
      Molecular Formula
    • 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<CompanySubstance>
    • equals

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

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

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

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