Class SpecValAssgmtInstanceWthComp

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

public class SpecValAssgmtInstanceWthComp extends VdmEntity<SpecValAssgmtInstanceWthComp>
Specification Value Assignment Instance with Composition

Original entity name from the Odata EDM: A_SpecValAssgmtInstanceWthCompType

  • Field Details

    • ALL_FIELDS

      public static final SpecValAssgmtInstanceWthCompSelectable ALL_FIELDS
      Selector for all available fields of SpecValAssgmtInstanceWthComp.
    • SPECIFICATION_INTERNAL_ID

      public static final SpecValAssgmtInstanceWthCompField<String> SPECIFICATION_INTERNAL_ID
      Use with available fluent helpers to apply the SpecificationInternalID field to query operations.
    • SPEC_VAL_ASSGMT_TYPE

      public static final SpecValAssgmtInstanceWthCompField<String> SPEC_VAL_ASSGMT_TYPE
      Use with available fluent helpers to apply the SpecValAssgmtType field to query operations.
    • SPECIFICATION_RATING

      public static final SpecValAssgmtInstanceWthCompField<String> SPECIFICATION_RATING
      Use with available fluent helpers to apply the SpecificationRating field to query operations.
    • SPECIFICATION_VALIDITY_AREA

      public static final SpecValAssgmtInstanceWthCompField<String> SPECIFICATION_VALIDITY_AREA
      Use with available fluent helpers to apply the SpecificationValidityArea field to query operations.
    • COMPONENT_SPECIFICATION_INT_ID

      public static final SpecValAssgmtInstanceWthCompField<String> COMPONENT_SPECIFICATION_INT_ID
      Use with available fluent helpers to apply the ComponentSpecificationIntID field to query operations.
    • COMPONENT_SPECIFICATION

      public static final SpecValAssgmtInstanceWthCompField<String> COMPONENT_SPECIFICATION
      Use with available fluent helpers to apply the ComponentSpecification field to query operations.
    • COMP_SPEC_COMPONENT_TYPE

      public static final SpecValAssgmtInstanceWthCompField<String> COMP_SPEC_COMPONENT_TYPE
      Use with available fluent helpers to apply the CompSpecComponentType field to query operations.
    • COMP_SPEC_LOWER_LIMIT_OPERATOR

      public static final SpecValAssgmtInstanceWthCompField<String> COMP_SPEC_LOWER_LIMIT_OPERATOR
      Use with available fluent helpers to apply the CompSpecLowerLimitOperator field to query operations.
    • COMP_SPEC_LOWER_LIMIT

      public static final SpecValAssgmtInstanceWthCompField<BigDecimal> COMP_SPEC_LOWER_LIMIT
      Use with available fluent helpers to apply the CompSpecLowerLimit field to query operations.
    • COMP_SPEC_UPPER_LIMIT_OPERATOR

      public static final SpecValAssgmtInstanceWthCompField<String> COMP_SPEC_UPPER_LIMIT_OPERATOR
      Use with available fluent helpers to apply the CompSpecUpperLimitOperator field to query operations.
    • COMP_SPEC_UPPER_LIMIT

      public static final SpecValAssgmtInstanceWthCompField<BigDecimal> COMP_SPEC_UPPER_LIMIT
      Use with available fluent helpers to apply the CompSpecUpperLimit field to query operations.
    • COMP_SPEC_QUANTITY

      public static final SpecValAssgmtInstanceWthCompField<BigDecimal> COMP_SPEC_QUANTITY
      Use with available fluent helpers to apply the CompSpecQuantity field to query operations.
    • COMP_SPEC_UNIT

      public static final SpecValAssgmtInstanceWthCompField<String> COMP_SPEC_UNIT
      Use with available fluent helpers to apply the CompSpecUnit field to query operations.
    • COMP_SPEC_SORT_SEQUENCE

      public static final SpecValAssgmtInstanceWthCompField<String> COMP_SPEC_SORT_SEQUENCE
      Use with available fluent helpers to apply the CompSpecSortSequence field to query operations.
    • COMP_SPEC_EXCEPTION_CODE

      public static final SpecValAssgmtInstanceWthCompField<String> COMP_SPEC_EXCEPTION_CODE
      Use with available fluent helpers to apply the CompSpecExceptionCode field to query operations.
    • SPECIFICATION_AUTHZN_GROUP

      public static final SpecValAssgmtInstanceWthCompField<String> SPECIFICATION_AUTHZN_GROUP
      Use with available fluent helpers to apply the SpecificationAuthznGroup field to query operations.
    • SPECIFICATION_TYPE

      public static final SpecValAssgmtInstanceWthCompField<String> SPECIFICATION_TYPE
      Use with available fluent helpers to apply the SpecificationType field to query operations.
    • TO_SUBSTANCE_IDENTIFIER

      public static final SpecValAssgmtInstanceWthCompLink<SpecIdentifier> TO_SUBSTANCE_IDENTIFIER
      Use with available fluent helpers to apply the to_SubstanceIdentifier navigation property to query operations.
  • Constructor Details

    • SpecValAssgmtInstanceWthComp

      public SpecValAssgmtInstanceWthComp()
    • SpecValAssgmtInstanceWthComp

      public SpecValAssgmtInstanceWthComp(@Nullable String specificationInternalID, @Nullable String specValAssgmtType, @Nullable String specificationRating, @Nullable String specificationValidityArea, @Nullable String componentSpecificationIntID, @Nullable String componentSpecification, @Nullable String compSpecComponentType, @Nullable String compSpecLowerLimitOperator, @Nullable BigDecimal compSpecLowerLimit, @Nullable String compSpecUpperLimitOperator, @Nullable BigDecimal compSpecUpperLimit, @Nullable BigDecimal compSpecQuantity, @Nullable String compSpecUnit, @Nullable String compSpecSortSequence, @Nullable String compSpecExceptionCode, @Nullable String specificationAuthznGroup, @Nullable String specificationType, List<SpecIdentifier> toSubstanceIdentifier)
  • Method Details

    • getType

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

      public void setSpecificationInternalID(@Nullable String specificationInternalID)
      (Key Field) Constraints: Not nullable, Maximum length: 20

      Original property name from the Odata EDM: SpecificationInternalID

      Parameters:
      specificationInternalID - Sequential Number of Data Record
    • setSpecValAssgmtType

      public void setSpecValAssgmtType(@Nullable String specValAssgmtType)
      (Key Field) Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: SpecValAssgmtType

      Parameters:
      specValAssgmtType - Value Assignment Type
    • setSpecificationRating

      public void setSpecificationRating(@Nullable String specificationRating)
      (Key Field) Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: SpecificationRating

      Parameters:
      specificationRating - Rating
    • setSpecificationValidityArea

      public void setSpecificationValidityArea(@Nullable String specificationValidityArea)
      (Key Field) Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: SpecificationValidityArea

      Parameters:
      specificationValidityArea - Validity Area
    • setComponentSpecificationIntID

      public void setComponentSpecificationIntID(@Nullable String componentSpecificationIntID)
      (Key Field) Constraints: Not nullable, Maximum length: 20

      Original property name from the Odata EDM: ComponentSpecificationIntID

      Parameters:
      componentSpecificationIntID - Reference to Specification Header of a Component
    • setComponentSpecification

      public void setComponentSpecification(@Nullable String componentSpecification)
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: ComponentSpecification

      Parameters:
      componentSpecification - Specification
    • setCompSpecComponentType

      public void setCompSpecComponentType(@Nullable String compSpecComponentType)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: CompSpecComponentType

      Parameters:
      compSpecComponentType - Component Type
    • setCompSpecLowerLimitOperator

      public void setCompSpecLowerLimitOperator(@Nullable String compSpecLowerLimitOperator)
      Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: CompSpecLowerLimitOperator

      Parameters:
      compSpecLowerLimitOperator - Operator for Lower Limit
    • setCompSpecLowerLimit

      public void setCompSpecLowerLimit(@Nullable BigDecimal compSpecLowerLimit)
      Constraints: Not nullable, Precision: 10, Scale: 4

      Original property name from the Odata EDM: CompSpecLowerLimit

      Parameters:
      compSpecLowerLimit - Lower Limit of a Component Proportion
    • setCompSpecUpperLimitOperator

      public void setCompSpecUpperLimitOperator(@Nullable String compSpecUpperLimitOperator)
      Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: CompSpecUpperLimitOperator

      Parameters:
      compSpecUpperLimitOperator - Operator for Upper Limit
    • setCompSpecUpperLimit

      public void setCompSpecUpperLimit(@Nullable BigDecimal compSpecUpperLimit)
      Constraints: Not nullable, Precision: 10, Scale: 4

      Original property name from the Odata EDM: CompSpecUpperLimit

      Parameters:
      compSpecUpperLimit - Upper limit of a component proportion
    • setCompSpecQuantity

      public void setCompSpecQuantity(@Nullable BigDecimal compSpecQuantity)
      Constraints: Not nullable, Precision: 10, Scale: 4

      Original property name from the Odata EDM: CompSpecQuantity

      Parameters:
      compSpecQuantity - Target Value or Actual Value of a Component
    • setCompSpecUnit

      public void setCompSpecUnit(@Nullable String compSpecUnit)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: CompSpecUnit

      Parameters:
      compSpecUnit - Unit for Quantity Specification
    • setCompSpecSortSequence

      public void setCompSpecSortSequence(@Nullable String compSpecSortSequence)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: CompSpecSortSequence

      Parameters:
      compSpecSortSequence - Sort Order
    • setCompSpecExceptionCode

      public void setCompSpecExceptionCode(@Nullable String compSpecExceptionCode)
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: CompSpecExceptionCode

      Parameters:
      compSpecExceptionCode - Exception Value of a Component
    • setSpecificationAuthznGroup

      public void setSpecificationAuthznGroup(@Nullable String specificationAuthznGroup)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: SpecificationAuthznGroup

      Parameters:
      specificationAuthznGroup - Recipe Authorization Group
    • setSpecificationType

      public void setSpecificationType(@Nullable String specificationType)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: SpecificationType

      Parameters:
      specificationType - Specification Type
    • getEntityCollection

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

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

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

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

      @Nonnull public static <T> SpecValAssgmtInstanceWthCompField<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> SpecValAssgmtInstanceWthCompField<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<SpecValAssgmtInstanceWthComp>
    • setServicePathForFetch

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

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

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

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

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

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

      Returns:
      List containing one or more associated SpecIdentifier 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.
    • getSubstanceIdentifierOrFetch

      @Nonnull public List<SpecIdentifier> getSubstanceIdentifierOrFetch()
      Retrieval of associated SpecIdentifier entities (one to many). This corresponds to the OData navigation property to_SubstanceIdentifier.

      If the navigation property to_SubstanceIdentifier of a queried SpecValAssgmtInstanceWthComp 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 SpecIdentifier 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.
    • getSubstanceIdentifierIfPresent

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

      If the navigation property for an entity SpecValAssgmtInstanceWthComp 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_SubstanceIdentifier is already loaded, the result will contain the SpecIdentifier entities. If not, an Option with result state empty is returned.
    • setSubstanceIdentifier

      public void setSubstanceIdentifier(@Nonnull List<SpecIdentifier> value)
      Overwrites the list of associated SpecIdentifier entities for the loaded navigation property to_SubstanceIdentifier.

      If the navigation property to_SubstanceIdentifier of a queried SpecValAssgmtInstanceWthComp 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 SpecIdentifier entities.
    • addSubstanceIdentifier

      public void addSubstanceIdentifier(SpecIdentifier... entity)
      Adds elements to the list of associated SpecIdentifier entities. This corresponds to the OData navigation property to_SubstanceIdentifier.

      If the navigation property to_SubstanceIdentifier of a queried SpecValAssgmtInstanceWthComp 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 SpecIdentifier entities.
    • builder

    • getSpecificationInternalID

      @Nullable public String getSpecificationInternalID()
      (Key Field) Constraints: Not nullable, Maximum length: 20

      Original property name from the Odata EDM: SpecificationInternalID

      Returns:
      Sequential Number of Data Record
    • getSpecValAssgmtType

      @Nullable public String getSpecValAssgmtType()
      (Key Field) Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: SpecValAssgmtType

      Returns:
      Value Assignment Type
    • getSpecificationRating

      @Nullable public String getSpecificationRating()
      (Key Field) Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: SpecificationRating

      Returns:
      Rating
    • getSpecificationValidityArea

      @Nullable public String getSpecificationValidityArea()
      (Key Field) Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: SpecificationValidityArea

      Returns:
      Validity Area
    • getComponentSpecificationIntID

      @Nullable public String getComponentSpecificationIntID()
      (Key Field) Constraints: Not nullable, Maximum length: 20

      Original property name from the Odata EDM: ComponentSpecificationIntID

      Returns:
      Reference to Specification Header of a Component
    • getComponentSpecification

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

      Original property name from the Odata EDM: ComponentSpecification

      Returns:
      Specification
    • getCompSpecComponentType

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

      Original property name from the Odata EDM: CompSpecComponentType

      Returns:
      Component Type
    • getCompSpecLowerLimitOperator

      @Nullable public String getCompSpecLowerLimitOperator()
      Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: CompSpecLowerLimitOperator

      Returns:
      Operator for Lower Limit
    • getCompSpecLowerLimit

      @Nullable public BigDecimal getCompSpecLowerLimit()
      Constraints: Not nullable, Precision: 10, Scale: 4

      Original property name from the Odata EDM: CompSpecLowerLimit

      Returns:
      Lower Limit of a Component Proportion
    • getCompSpecUpperLimitOperator

      @Nullable public String getCompSpecUpperLimitOperator()
      Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: CompSpecUpperLimitOperator

      Returns:
      Operator for Upper Limit
    • getCompSpecUpperLimit

      @Nullable public BigDecimal getCompSpecUpperLimit()
      Constraints: Not nullable, Precision: 10, Scale: 4

      Original property name from the Odata EDM: CompSpecUpperLimit

      Returns:
      Upper limit of a component proportion
    • getCompSpecQuantity

      @Nullable public BigDecimal getCompSpecQuantity()
      Constraints: Not nullable, Precision: 10, Scale: 4

      Original property name from the Odata EDM: CompSpecQuantity

      Returns:
      Target Value or Actual Value of a Component
    • getCompSpecUnit

      @Nullable public String getCompSpecUnit()
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: CompSpecUnit

      Returns:
      Unit for Quantity Specification
    • getCompSpecSortSequence

      @Nullable public String getCompSpecSortSequence()
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: CompSpecSortSequence

      Returns:
      Sort Order
    • getCompSpecExceptionCode

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

      Original property name from the Odata EDM: CompSpecExceptionCode

      Returns:
      Exception Value of a Component
    • getSpecificationAuthznGroup

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

      Original property name from the Odata EDM: SpecificationAuthznGroup

      Returns:
      Recipe Authorization Group
    • getSpecificationType

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

      Original property name from the Odata EDM: SpecificationType

      Returns:
      Specification Type
    • toString

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

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

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

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