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

public class SuplrEvalScorecardRootQnaire extends VdmEntity<SuplrEvalScorecardRootQnaire>
Root Questionnaire

Original entity name from the Odata EDM: A_SuplrEvalScorecardRootQnaireType

  • Field Details

  • Constructor Details

    • SuplrEvalScorecardRootQnaire

      public SuplrEvalScorecardRootQnaire()
    • SuplrEvalScorecardRootQnaire

      public SuplrEvalScorecardRootQnaire(@Nullable UUID suplrEvalScorecardQnaireUUID, @Nullable UUID suplrEvalScorecardUUID, @Nullable Short minimalScore, @Nullable Short targetScore, @Nullable Double calculatedScore, @Nullable Integer numberOfResponses, @Nullable Short weightingFactor, @Nullable Integer suplrEvalOrdinalNumber, List<SuplrEvalSccrdStrucQnaire> toSuplrEvalSccrdStrucQnaire, @Nullable SuplrEvalScorecard toSupplierEvalScorecard)
  • Method Details

    • getType

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

      public void setSuplrEvalScorecardQnaireUUID(@Nullable UUID suplrEvalScorecardQnaireUUID)
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: SuplrEvalScorecardQnaireUUID

      Parameters:
      suplrEvalScorecardQnaireUUID - Evaluation Scorecard Questionnaire UUID
    • setSuplrEvalScorecardUUID

      public void setSuplrEvalScorecardUUID(@Nullable UUID suplrEvalScorecardUUID)
      Constraints: none

      Original property name from the Odata EDM: SuplrEvalScorecardUUID

      Parameters:
      suplrEvalScorecardUUID - Evaluation Scorecard UUID
    • setMinimalScore

      public void setMinimalScore(@Nullable Short minimalScore)
      Constraints: none

      Original property name from the Odata EDM: MinimalScore

      Parameters:
      minimalScore - Minimum Score Accepted
    • setTargetScore

      public void setTargetScore(@Nullable Short targetScore)
      Constraints: none

      Original property name from the Odata EDM: TargetScore

      Parameters:
      targetScore - Target Score
    • setCalculatedScore

      public void setCalculatedScore(@Nullable Double calculatedScore)
      Constraints: none

      Original property name from the Odata EDM: CalculatedScore

      Parameters:
      calculatedScore - Calculated Score
    • setNumberOfResponses

      public void setNumberOfResponses(@Nullable Integer numberOfResponses)
      Constraints: none

      Original property name from the Odata EDM: NumberOfResponses

      Parameters:
      numberOfResponses - Number of Responses
    • setWeightingFactor

      public void setWeightingFactor(@Nullable Short weightingFactor)
      Constraints: none

      Original property name from the Odata EDM: WeightingFactor

      Parameters:
      weightingFactor - Value of Weighting Factor
    • setSuplrEvalOrdinalNumber

      public void setSuplrEvalOrdinalNumber(@Nullable Integer suplrEvalOrdinalNumber)
      Constraints: none

      Original property name from the Odata EDM: SuplrEvalOrdinalNumber

      Parameters:
      suplrEvalOrdinalNumber - Ordinal Number Value
    • getEntityCollection

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

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

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

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

      @Nonnull public static <T> SuplrEvalScorecardRootQnaireField<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> SuplrEvalScorecardRootQnaireField<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<SuplrEvalScorecardRootQnaire>
    • setServicePathForFetch

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

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

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

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

      @Nonnull public List<SuplrEvalSccrdStrucQnaire> fetchSuplrEvalSccrdStrucQnaire()
      Fetches the SuplrEvalSccrdStrucQnaire entities (one to many) associated with this entity. This corresponds to the OData navigation property to_SuplrEvalSccrdStrucQnaire.

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

      Returns:
      List containing one or more associated SuplrEvalSccrdStrucQnaire entities. If no entities are associated then an empty list is returned.
      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.
    • getSuplrEvalSccrdStrucQnaireOrFetch

      @Nonnull public List<SuplrEvalSccrdStrucQnaire> getSuplrEvalSccrdStrucQnaireOrFetch()
      Retrieval of associated SuplrEvalSccrdStrucQnaire entities (one to many). This corresponds to the OData navigation property to_SuplrEvalSccrdStrucQnaire.

      If the navigation property to_SuplrEvalSccrdStrucQnaire of a queried SuplrEvalScorecardRootQnaire 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 SuplrEvalSccrdStrucQnaire entities.
      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.
    • getSuplrEvalSccrdStrucQnaireIfPresent

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

      If the navigation property for an entity SuplrEvalScorecardRootQnaire 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_SuplrEvalSccrdStrucQnaire is already loaded, the result will contain the SuplrEvalSccrdStrucQnaire entities. If not, an Option with result state empty is returned.
    • setSuplrEvalSccrdStrucQnaire

      public void setSuplrEvalSccrdStrucQnaire(@Nonnull List<SuplrEvalSccrdStrucQnaire> value)
      Overwrites the list of associated SuplrEvalSccrdStrucQnaire entities for the loaded navigation property to_SuplrEvalSccrdStrucQnaire.

      If the navigation property to_SuplrEvalSccrdStrucQnaire of a queried SuplrEvalScorecardRootQnaire 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 SuplrEvalSccrdStrucQnaire entities.
    • addSuplrEvalSccrdStrucQnaire

      public void addSuplrEvalSccrdStrucQnaire(SuplrEvalSccrdStrucQnaire... entity)
      Adds elements to the list of associated SuplrEvalSccrdStrucQnaire entities. This corresponds to the OData navigation property to_SuplrEvalSccrdStrucQnaire.

      If the navigation property to_SuplrEvalSccrdStrucQnaire of a queried SuplrEvalScorecardRootQnaire 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 SuplrEvalSccrdStrucQnaire entities.
    • fetchSupplierEvalScorecard

      @Nullable public SuplrEvalScorecard fetchSupplierEvalScorecard()
      Fetches the SuplrEvalScorecard entity (one to one) associated with this entity. This corresponds to the OData navigation property to_SupplierEvalScorecard.

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

      Returns:
      The single associated SuplrEvalScorecard 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.
    • getSupplierEvalScorecardOrFetch

      @Nullable public SuplrEvalScorecard getSupplierEvalScorecardOrFetch()
      Retrieval of associated SuplrEvalScorecard entity (one to one). This corresponds to the OData navigation property to_SupplierEvalScorecard.

      If the navigation property to_SupplierEvalScorecard of a queried SuplrEvalScorecardRootQnaire 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 SuplrEvalScorecard 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.
    • getSupplierEvalScorecardIfPresent

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

      If the navigation property for an entity SuplrEvalScorecardRootQnaire 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_SupplierEvalScorecard is already loaded, the result will contain the SuplrEvalScorecard entity. If not, an Option with result state empty is returned.
    • setSupplierEvalScorecard

      public void setSupplierEvalScorecard(SuplrEvalScorecard value)
      Overwrites the associated SuplrEvalScorecard entity for the loaded navigation property to_SupplierEvalScorecard.
      Parameters:
      value - New SuplrEvalScorecard entity.
    • builder

    • getSuplrEvalScorecardQnaireUUID

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

      Original property name from the Odata EDM: SuplrEvalScorecardQnaireUUID

      Returns:
      Evaluation Scorecard Questionnaire UUID
    • getSuplrEvalScorecardUUID

      @Nullable public UUID getSuplrEvalScorecardUUID()
      Constraints: none

      Original property name from the Odata EDM: SuplrEvalScorecardUUID

      Returns:
      Evaluation Scorecard UUID
    • getMinimalScore

      @Nullable public Short getMinimalScore()
      Constraints: none

      Original property name from the Odata EDM: MinimalScore

      Returns:
      Minimum Score Accepted
    • getTargetScore

      @Nullable public Short getTargetScore()
      Constraints: none

      Original property name from the Odata EDM: TargetScore

      Returns:
      Target Score
    • getCalculatedScore

      @Nullable public Double getCalculatedScore()
      Constraints: none

      Original property name from the Odata EDM: CalculatedScore

      Returns:
      Calculated Score
    • getNumberOfResponses

      @Nullable public Integer getNumberOfResponses()
      Constraints: none

      Original property name from the Odata EDM: NumberOfResponses

      Returns:
      Number of Responses
    • getWeightingFactor

      @Nullable public Short getWeightingFactor()
      Constraints: none

      Original property name from the Odata EDM: WeightingFactor

      Returns:
      Value of Weighting Factor
    • getSuplrEvalOrdinalNumber

      @Nullable public Integer getSuplrEvalOrdinalNumber()
      Constraints: none

      Original property name from the Odata EDM: SuplrEvalOrdinalNumber

      Returns:
      Ordinal Number Value
    • toString

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

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

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

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