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

public class EngmntProjRsceSup extends VdmEntity<EngmntProjRsceSup>
Resource Supplies

Original entity name from the Odata EDM: A_EngmntProjRsceSupType

  • Field Details

    • ALL_FIELDS

      public static final EngmntProjRsceSupSelectable ALL_FIELDS
      Selector for all available fields of EngmntProjRsceSup.
    • WORK_PACKAGE

      public static final EngmntProjRsceSupField<String> WORK_PACKAGE
      Use with available fluent helpers to apply the WorkPackage field to query operations.
    • RESOURCE_DEMAND

      public static final EngmntProjRsceSupField<String> RESOURCE_DEMAND
      Use with available fluent helpers to apply the ResourceDemand field to query operations.
    • RESOURCE_SUPPLY

      public static final EngmntProjRsceSupField<String> RESOURCE_SUPPLY
      Use with available fluent helpers to apply the ResourceSupply field to query operations.
    • VERSION

      public static final EngmntProjRsceSupField<String> VERSION
      Use with available fluent helpers to apply the Version field to query operations.
    • ENGAGEMENT_PROJECT

      public static final EngmntProjRsceSupField<String> ENGAGEMENT_PROJECT
      Use with available fluent helpers to apply the EngagementProject field to query operations.
    • DELIVERY_ORGANIZATION

      public static final EngmntProjRsceSupField<String> DELIVERY_ORGANIZATION
      Use with available fluent helpers to apply the DeliveryOrganization field to query operations.
    • WORKFORCE_PERSON_USER_ID

      public static final EngmntProjRsceSupField<String> WORKFORCE_PERSON_USER_ID
      Use with available fluent helpers to apply the WorkforcePersonUserID field to query operations.
    • COUNTRY2_DIGIT_ISO_CODE

      public static final EngmntProjRsceSupField<String> COUNTRY2_DIGIT_ISO_CODE
      Use with available fluent helpers to apply the Country2DigitISOCode field to query operations.
    • KEY_DATE

      public static final EngmntProjRsceSupField<LocalDateTime> KEY_DATE
      Use with available fluent helpers to apply the KeyDate field to query operations.
    • PERSON_WORK_AGREEMENT

      public static final EngmntProjRsceSupField<String> PERSON_WORK_AGREEMENT
      Use with available fluent helpers to apply the PersonWorkAgreement field to query operations.
    • UNIT_OF_MEASURE

      public static final EngmntProjRsceSupField<String> UNIT_OF_MEASURE
      Use with available fluent helpers to apply the UnitOfMeasure field to query operations.
    • CURRENCY

      public static final EngmntProjRsceSupField<String> CURRENCY
      Use with available fluent helpers to apply the Currency field to query operations.
    • QUANTITY

      public static final EngmntProjRsceSupField<BigDecimal> QUANTITY
      Use with available fluent helpers to apply the Quantity field to query operations.
    • SUPPLY_COST_AMT

      public static final EngmntProjRsceSupField<BigDecimal> SUPPLY_COST_AMT
      Use with available fluent helpers to apply the SupplyCostAmt field to query operations.
    • SUPPLY_REVN_AMT

      public static final EngmntProjRsceSupField<BigDecimal> SUPPLY_REVN_AMT
      Use with available fluent helpers to apply the SupplyRevnAmt field to query operations.
    • TO_RESOURCE_DEMAND

      public static final EngmntProjRsceSupOneToOneLink<EngmntProjRsceDmnd> TO_RESOURCE_DEMAND
      Use with available fluent helpers to apply the to_ResourceDemand navigation property to query operations.
    • TO_RESOURCE_SUPPLY_DISTRIBUTION

      public static final EngmntProjRsceSupLink<EngmntProjRsceSupDistr> TO_RESOURCE_SUPPLY_DISTRIBUTION
      Use with available fluent helpers to apply the to_ResourceSupplyDistribution navigation property to query operations.
  • Constructor Details

  • Method Details

    • getType

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

      public void setWorkPackage(@Nullable String workPackage)
      (Key Field) Constraints: Not nullable, Maximum length: 50

      Original property name from the Odata EDM: WorkPackage

      Parameters:
      workPackage - Work Package ID
    • setResourceDemand

      public void setResourceDemand(@Nullable String resourceDemand)
      (Key Field) Constraints: Not nullable, Maximum length: 24

      Original property name from the Odata EDM: ResourceDemand

      Parameters:
      resourceDemand - Resource Demand ID
    • setResourceSupply

      public void setResourceSupply(@Nullable String resourceSupply)
      (Key Field) Constraints: Not nullable, Maximum length: 24

      Original property name from the Odata EDM: ResourceSupply

      Parameters:
      resourceSupply - Resource Supply ID
    • setVersion

      public void setVersion(@Nullable String version)
      (Key Field) Constraints: Not nullable, Maximum length: 28

      Original property name from the Odata EDM: Version

      Parameters:
      version - Plan Version ID
    • setEngagementProject

      public void setEngagementProject(@Nullable String engagementProject)
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: EngagementProject

      Parameters:
      engagementProject - Engagement Project ID
    • setDeliveryOrganization

      public void setDeliveryOrganization(@Nullable String deliveryOrganization)
      Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: DeliveryOrganization

      Parameters:
      deliveryOrganization - Delivery Organization
    • setWorkforcePersonUserID

      public void setWorkforcePersonUserID(@Nullable String workforcePersonUserID)
      Constraints: Not nullable, Maximum length: 100

      Original property name from the Odata EDM: WorkforcePersonUserID

      Parameters:
      workforcePersonUserID - User ID
    • setCountry2DigitISOCode

      public void setCountry2DigitISOCode(@Nullable String country2DigitISOCode)
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: Country2DigitISOCode

      Parameters:
      country2DigitISOCode - Country/Region
    • setKeyDate

      public void setKeyDate(@Nullable LocalDateTime keyDate)
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: KeyDate

      Parameters:
      keyDate - Date
    • setPersonWorkAgreement

      public void setPersonWorkAgreement(@Nullable String personWorkAgreement)
      Constraints: Not nullable, Maximum length: 8

      Original property name from the Odata EDM: PersonWorkAgreement

      Parameters:
      personWorkAgreement - Personnel Number
    • setUnitOfMeasure

      public void setUnitOfMeasure(@Nullable String unitOfMeasure)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: UnitOfMeasure

      Parameters:
      unitOfMeasure - Unit of Measure
    • setCurrency

      public void setCurrency(@Nullable String currency)
      Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: Currency

      Parameters:
      currency - Plan Currency
    • setQuantity

      public void setQuantity(@Nullable BigDecimal quantity)
      Constraints: Not nullable, Precision: 15, Scale: 3

      Original property name from the Odata EDM: Quantity

      Parameters:
      quantity - The quantity to set.
    • setSupplyCostAmt

      public void setSupplyCostAmt(@Nullable BigDecimal supplyCostAmt)
      Constraints: Not nullable, Precision: 18, Scale: 3

      Original property name from the Odata EDM: SupplyCostAmt

      Parameters:
      supplyCostAmt - Supply Cost Amount
    • setSupplyRevnAmt

      public void setSupplyRevnAmt(@Nullable BigDecimal supplyRevnAmt)
      Constraints: Not nullable, Precision: 18, Scale: 3

      Original property name from the Odata EDM: SupplyRevnAmt

      Parameters:
      supplyRevnAmt - Supply Revenue Amount
    • getEntityCollection

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

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

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

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

      @Nonnull public static <T> EngmntProjRsceSupField<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> EngmntProjRsceSupField<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<EngmntProjRsceSup>
    • setServicePathForFetch

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

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

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

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

      @Nullable public EngmntProjRsceDmnd fetchResourceDemand()
      Fetches the EngmntProjRsceDmnd entity (one to one) associated with this entity. This corresponds to the OData navigation property to_ResourceDemand.

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

      Returns:
      The single associated EngmntProjRsceDmnd 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.
    • getResourceDemandOrFetch

      @Nullable public EngmntProjRsceDmnd getResourceDemandOrFetch()
      Retrieval of associated EngmntProjRsceDmnd entity (one to one). This corresponds to the OData navigation property to_ResourceDemand.

      If the navigation property to_ResourceDemand of a queried EngmntProjRsceSup 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 EngmntProjRsceDmnd 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.
    • getResourceDemandIfPresent

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

      If the navigation property for an entity EngmntProjRsceSup 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_ResourceDemand is already loaded, the result will contain the EngmntProjRsceDmnd entity. If not, an Option with result state empty is returned.
    • setResourceDemand

      public void setResourceDemand(EngmntProjRsceDmnd value)
      Overwrites the associated EngmntProjRsceDmnd entity for the loaded navigation property to_ResourceDemand.
      Parameters:
      value - New EngmntProjRsceDmnd entity.
    • fetchResourceSupplyDistribution

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

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

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

      @Nonnull public List<EngmntProjRsceSupDistr> getResourceSupplyDistributionOrFetch()
      Retrieval of associated EngmntProjRsceSupDistr entities (one to many). This corresponds to the OData navigation property to_ResourceSupplyDistribution.

      If the navigation property to_ResourceSupplyDistribution of a queried EngmntProjRsceSup 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 EngmntProjRsceSupDistr 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.
    • getResourceSupplyDistributionIfPresent

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

      If the navigation property for an entity EngmntProjRsceSup 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_ResourceSupplyDistribution is already loaded, the result will contain the EngmntProjRsceSupDistr entities. If not, an Option with result state empty is returned.
    • setResourceSupplyDistribution

      public void setResourceSupplyDistribution(@Nonnull List<EngmntProjRsceSupDistr> value)
      Overwrites the list of associated EngmntProjRsceSupDistr entities for the loaded navigation property to_ResourceSupplyDistribution.

      If the navigation property to_ResourceSupplyDistribution of a queried EngmntProjRsceSup 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 EngmntProjRsceSupDistr entities.
    • addResourceSupplyDistribution

      public void addResourceSupplyDistribution(EngmntProjRsceSupDistr... entity)
      Adds elements to the list of associated EngmntProjRsceSupDistr entities. This corresponds to the OData navigation property to_ResourceSupplyDistribution.

      If the navigation property to_ResourceSupplyDistribution of a queried EngmntProjRsceSup 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 EngmntProjRsceSupDistr entities.
    • builder

      @Nonnull public static EngmntProjRsceSup.EngmntProjRsceSupBuilder builder()
    • getWorkPackage

      @Nullable public String getWorkPackage()
      (Key Field) Constraints: Not nullable, Maximum length: 50

      Original property name from the Odata EDM: WorkPackage

      Returns:
      Work Package ID
    • getResourceDemand

      @Nullable public String getResourceDemand()
      (Key Field) Constraints: Not nullable, Maximum length: 24

      Original property name from the Odata EDM: ResourceDemand

      Returns:
      Resource Demand ID
    • getResourceSupply

      @Nullable public String getResourceSupply()
      (Key Field) Constraints: Not nullable, Maximum length: 24

      Original property name from the Odata EDM: ResourceSupply

      Returns:
      Resource Supply ID
    • getVersion

      @Nullable public String getVersion()
      (Key Field) Constraints: Not nullable, Maximum length: 28

      Original property name from the Odata EDM: Version

      Returns:
      Plan Version ID
    • getEngagementProject

      @Nullable public String getEngagementProject()
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: EngagementProject

      Returns:
      Engagement Project ID
    • getDeliveryOrganization

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

      Original property name from the Odata EDM: DeliveryOrganization

      Returns:
      Delivery Organization
    • getWorkforcePersonUserID

      @Nullable public String getWorkforcePersonUserID()
      Constraints: Not nullable, Maximum length: 100

      Original property name from the Odata EDM: WorkforcePersonUserID

      Returns:
      User ID
    • getCountry2DigitISOCode

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

      Original property name from the Odata EDM: Country2DigitISOCode

      Returns:
      Country/Region
    • getKeyDate

      @Nullable public LocalDateTime getKeyDate()
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: KeyDate

      Returns:
      Date
    • getPersonWorkAgreement

      @Nullable public String getPersonWorkAgreement()
      Constraints: Not nullable, Maximum length: 8

      Original property name from the Odata EDM: PersonWorkAgreement

      Returns:
      Personnel Number
    • getUnitOfMeasure

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

      Original property name from the Odata EDM: UnitOfMeasure

      Returns:
      Unit of Measure
    • getCurrency

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

      Original property name from the Odata EDM: Currency

      Returns:
      Plan Currency
    • getQuantity

      @Nullable public BigDecimal getQuantity()
      Constraints: Not nullable, Precision: 15, Scale: 3

      Original property name from the Odata EDM: Quantity

      Returns:
      The quantity contained in this entity.
    • getSupplyCostAmt

      @Nullable public BigDecimal getSupplyCostAmt()
      Constraints: Not nullable, Precision: 18, Scale: 3

      Original property name from the Odata EDM: SupplyCostAmt

      Returns:
      Supply Cost Amount
    • getSupplyRevnAmt

      @Nullable public BigDecimal getSupplyRevnAmt()
      Constraints: Not nullable, Precision: 18, Scale: 3

      Original property name from the Odata EDM: SupplyRevnAmt

      Returns:
      Supply Revenue Amount
    • toString

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

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

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

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