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

public class Demand extends VdmEntity<Demand>
Demands

Original entity name from the Odata EDM: Demand

  • Field Details

    • ALL_FIELDS

      public static final DemandSelectable ALL_FIELDS
      Selector for all available fields of Demand.
    • BILLING_CONTROL_CATEGORY

      public static final DemandField<String> BILLING_CONTROL_CATEGORY
      Use with available fluent helpers to apply the BillingControlCategory field to query operations.
    • PROJECT_ID

      public static final DemandField<String> PROJECT_ID
      Use with available fluent helpers to apply the ProjectID field to query operations.
    • UOM

      public static final DemandField<String> UOM
      Use with available fluent helpers to apply the Uom field to query operations.
    • SKILLS

      public static final DemandField<String> SKILLS
      Use with available fluent helpers to apply the Skills field to query operations.
    • WORK_PACKAGE_ID

      public static final DemandField<String> WORK_PACKAGE_ID
      Use with available fluent helpers to apply the WorkPackageID field to query operations.
    • EXPENSE_COST

      public static final DemandField<BigDecimal> EXPENSE_COST
      Use with available fluent helpers to apply the ExpenseCost field to query operations.
    • WORK_PACKAGE_NAME

      public static final DemandField<String> WORK_PACKAGE_NAME
      Use with available fluent helpers to apply the WorkPackageName field to query operations.
    • EXPENSE_REVENUE

      public static final DemandField<BigDecimal> EXPENSE_REVENUE
      Use with available fluent helpers to apply the ExpenseRevenue field to query operations.
    • RES_TYPE

      public static final DemandField<String> RES_TYPE
      Use with available fluent helpers to apply the ResType field to query operations.
    • RESOURCE_ID

      public static final DemandField<String> RESOURCE_ID
      Use with available fluent helpers to apply the ResourceId field to query operations.
    • WORKITEM

      public static final DemandField<String> WORKITEM
      Use with available fluent helpers to apply the Workitem field to query operations.
    • EFFORT

      public static final DemandField<BigDecimal> EFFORT
      Use with available fluent helpers to apply the Effort field to query operations.
    • DELVRY_SERV_ORG

      public static final DemandField<String> DELVRY_SERV_ORG
      Use with available fluent helpers to apply the DelvryServOrg field to query operations.
  • Constructor Details

    • Demand

      public Demand()
    • Demand

      public Demand(@Nullable String billingControlCategory, @Nullable String projectID, @Nullable String uom, @Nullable String skills, @Nullable String workPackageID, @Nullable BigDecimal expenseCost, @Nullable String workPackageName, @Nullable BigDecimal expenseRevenue, @Nullable String resType, @Nullable String resourceId, @Nullable String workitem, @Nullable BigDecimal effort, @Nullable String delvryServOrg)
  • Method Details

    • getType

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

      public void setBillingControlCategory(@Nullable String billingControlCategory)
      Constraints: Not nullable, Maximum length: 8

      Original property name from the Odata EDM: BillingControlCategory

      Parameters:
      billingControlCategory - Billing Control Category
    • setProjectID

      public void setProjectID(@Nullable String projectID)
      (Key Field) Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: ProjectID

      Parameters:
      projectID - Project ID
    • setUom

      public void setUom(@Nullable String uom)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: Uom

      Parameters:
      uom - Unit of Measure
    • setSkills

      public void setSkills(@Nullable String skills)
      Constraints: none

      Original property name from the Odata EDM: Skills

      Parameters:
      skills - Skills (Comma Separated)
    • setWorkPackageID

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

      Original property name from the Odata EDM: WorkPackageID

      Parameters:
      workPackageID - Work Package ID
    • setExpenseCost

      public void setExpenseCost(@Nullable BigDecimal expenseCost)
      Constraints: Not nullable, Precision: 18, Scale: 2

      Original property name from the Odata EDM: ExpenseCost

      Parameters:
      expenseCost - Expense (Cost)
    • setWorkPackageName

      public void setWorkPackageName(@Nullable String workPackageName)
      (Key Field) Constraints: Not nullable, Maximum length: 60

      Original property name from the Odata EDM: WorkPackageName

      Parameters:
      workPackageName - Work Package Name
    • setExpenseRevenue

      public void setExpenseRevenue(@Nullable BigDecimal expenseRevenue)
      Constraints: Not nullable, Precision: 18, Scale: 2

      Original property name from the Odata EDM: ExpenseRevenue

      Parameters:
      expenseRevenue - Expense (Revenue)
    • setResType

      public void setResType(@Nullable String resType)
      (Key Field) Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: ResType

      Parameters:
      resType - Resource Type ID
    • setResourceId

      public void setResourceId(@Nullable String resourceId)
      (Key Field) Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: ResourceId

      Parameters:
      resourceId - Resource ID
    • setWorkitem

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

      Original property name from the Odata EDM: Workitem

      Parameters:
      workitem - Work Item ID
    • setEffort

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

      Original property name from the Odata EDM: Effort

      Parameters:
      effort - Total Quantity
    • setDelvryServOrg

      public void setDelvryServOrg(@Nullable String delvryServOrg)
      (Key Field) Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: DelvryServOrg

      Parameters:
      delvryServOrg - Delivery Org. ID
    • getEntityCollection

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

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

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

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

      @Nonnull public static <T> DemandField<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> DemandField<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<Demand>
    • setServicePathForFetch

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

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

      protected String getDefaultServicePath()
      Overrides:
      getDefaultServicePath in class VdmEntity<Demand>
    • builder

      @Nonnull public static Demand.DemandBuilder builder()
    • getBillingControlCategory

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

      Original property name from the Odata EDM: BillingControlCategory

      Returns:
      Billing Control Category
    • getProjectID

      @Nullable public String getProjectID()
      (Key Field) Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: ProjectID

      Returns:
      Project ID
    • getUom

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

      Original property name from the Odata EDM: Uom

      Returns:
      Unit of Measure
    • getSkills

      @Nullable public String getSkills()
      Constraints: none

      Original property name from the Odata EDM: Skills

      Returns:
      Skills (Comma Separated)
    • getWorkPackageID

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

      Original property name from the Odata EDM: WorkPackageID

      Returns:
      Work Package ID
    • getExpenseCost

      @Nullable public BigDecimal getExpenseCost()
      Constraints: Not nullable, Precision: 18, Scale: 2

      Original property name from the Odata EDM: ExpenseCost

      Returns:
      Expense (Cost)
    • getWorkPackageName

      @Nullable public String getWorkPackageName()
      (Key Field) Constraints: Not nullable, Maximum length: 60

      Original property name from the Odata EDM: WorkPackageName

      Returns:
      Work Package Name
    • getExpenseRevenue

      @Nullable public BigDecimal getExpenseRevenue()
      Constraints: Not nullable, Precision: 18, Scale: 2

      Original property name from the Odata EDM: ExpenseRevenue

      Returns:
      Expense (Revenue)
    • getResType

      @Nullable public String getResType()
      (Key Field) Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: ResType

      Returns:
      Resource Type ID
    • getResourceId

      @Nullable public String getResourceId()
      (Key Field) Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: ResourceId

      Returns:
      Resource ID
    • getWorkitem

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

      Original property name from the Odata EDM: Workitem

      Returns:
      Work Item ID
    • getEffort

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

      Original property name from the Odata EDM: Effort

      Returns:
      Total Quantity
    • getDelvryServOrg

      @Nullable public String getDelvryServOrg()
      (Key Field) Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: DelvryServOrg

      Returns:
      Delivery Org. ID
    • toString

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

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

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

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