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

public class PlanData extends VdmEntity<PlanData>
Plan Data

Original entity name from the Odata EDM: PlanData

  • Field Details

    • ALL_FIELDS

      public static final PlanDataSelectable ALL_FIELDS
      Selector for all available fields of PlanData.
    • BILLING_CONTROL_CATEGORY

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

      public static final PlanDataField<String> BILLING_CONTROL_CATEGORY_ID
      Use with available fluent helpers to apply the BillingControlCategoryID field to query operations.
    • EMPLOYEE_NAME

      public static final PlanDataField<String> EMPLOYEE_NAME
      Use with available fluent helpers to apply the EmployeeName field to query operations.
    • WPNAME

      public static final PlanDataField<String> WPNAME
      Use with available fluent helpers to apply the Wpname field to query operations.
    • PROJECT_ID

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

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

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

      public static final PlanDataField<String> RES_TYPE_TEXT
      Use with available fluent helpers to apply the ResTypeText field to query operations.
    • RESOURCE_ID

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

      public static final PlanDataField<String> RESOURCE_TEXT
      Use with available fluent helpers to apply the ResourceText field to query operations.
    • UOM

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

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

      public static final PlanDataField<String> PERIOD
      Use with available fluent helpers to apply the Period field to query operations.
    • FC_YEAR

      public static final PlanDataField<String> FC_YEAR
      Use with available fluent helpers to apply the FcYear field to query operations.
    • EMPLOYEE

      public static final PlanDataField<String> EMPLOYEE
      Use with available fluent helpers to apply the Employee field to query operations.
    • CONFIRMED

      public static final PlanDataField<String> CONFIRMED
      Use with available fluent helpers to apply the Confirmed field to query operations.
    • WORKITEM_ID

      public static final PlanDataField<String> WORKITEM_ID
      Use with available fluent helpers to apply the WorkitemId field to query operations.
    • WORKITEM_NAME

      public static final PlanDataField<String> WORKITEM_NAME
      Use with available fluent helpers to apply the WorkitemName field to query operations.
    • EFFORT

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

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

      public static final PlanDataField<String> DELVRY_SERV_ORG_T
      Use with available fluent helpers to apply the DelvryServOrgT field to query operations.
    • TO_STAFF_DATA

      public static final PlanDataLink<StaffingData> TO_STAFF_DATA
      Use with available fluent helpers to apply the ToStaffData navigation property to query operations.
  • Constructor Details

    • PlanData

      public PlanData()
    • PlanData

      public PlanData(@Nullable String billingControlCategory, @Nullable String billingControlCategoryID, @Nullable String employeeName, @Nullable String wpname, @Nullable String projectID, @Nullable String resType, @Nullable String workPackageID, @Nullable String resTypeText, @Nullable String resourceId, @Nullable String resourceText, @Nullable String uom, @Nullable String version, @Nullable String period, @Nullable String fcYear, @Nullable String employee, @Nullable String confirmed, @Nullable String workitemId, @Nullable String workitemName, @Nullable BigDecimal effort, @Nullable String delvryServOrg, @Nullable String delvryServOrgT, List<StaffingData> toStaffData)
  • Method Details

    • getType

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

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

      Original property name from the Odata EDM: BillingControlCategory

      Parameters:
      billingControlCategory - Billing Category
    • setBillingControlCategoryID

      public void setBillingControlCategoryID(@Nullable String billingControlCategoryID)
      Constraints: Not nullable, Maximum length: 8

      Original property name from the Odata EDM: BillingControlCategoryID

      Parameters:
      billingControlCategoryID - Billing Category ID
    • setEmployeeName

      public void setEmployeeName(@Nullable String employeeName)
      Constraints: none

      Original property name from the Odata EDM: EmployeeName

      Parameters:
      employeeName - Employee Name
    • setWpname

      public void setWpname(@Nullable String wpname)
      Constraints: Not nullable, Maximum length: 60

      Original property name from the Odata EDM: Wpname

      Parameters:
      wpname - Work Package Name
    • 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
    • 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
    • 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
    • setResTypeText

      public void setResTypeText(@Nullable String resTypeText)
      Constraints: none

      Original property name from the Odata EDM: ResTypeText

      Parameters:
      resTypeText - Resource Type Desc.
    • 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
    • setResourceText

      public void setResourceText(@Nullable String resourceText)
      Constraints: none

      Original property name from the Odata EDM: ResourceText

      Parameters:
      resourceText - Resource Desc.
    • 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
    • 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 - Version ID
    • setPeriod

      public void setPeriod(@Nullable String period)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: Period

      Parameters:
      period - Month
    • setFcYear

      public void setFcYear(@Nullable String fcYear)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: FcYear

      Parameters:
      fcYear - Year
    • setEmployee

      public void setEmployee(@Nullable String employee)
      (Key Field) Constraints: Not nullable, Maximum length: 8

      Original property name from the Odata EDM: Employee

      Parameters:
      employee - Employee ID
    • setConfirmed

      public void setConfirmed(@Nullable String confirmed)
      (Key Field) Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: Confirmed

      Parameters:
      confirmed - Resource is Confirmed
    • setWorkitemId

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

      Original property name from the Odata EDM: WorkitemId

      Parameters:
      workitemId - Work Item ID
    • setWorkitemName

      public void setWorkitemName(@Nullable String workitemName)
      Constraints: none

      Original property name from the Odata EDM: WorkitemName

      Parameters:
      workitemName - Work Item Desc.
    • setEffort

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

      Original property name from the Odata EDM: Effort

      Parameters:
      effort - Planned Effort
    • 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
    • setDelvryServOrgT

      public void setDelvryServOrgT(@Nullable String delvryServOrgT)
      Constraints: none

      Original property name from the Odata EDM: DelvryServOrgT

      Parameters:
      delvryServOrgT - Delivery Org. Desc.
    • getEntityCollection

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

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

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

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

      @Nonnull public static <T> PlanDataField<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> PlanDataField<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<PlanData>
    • setServicePathForFetch

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

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

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

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

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

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

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

      @Nonnull public List<StaffingData> getStaffDataOrFetch()
      Retrieval of associated StaffingData entities (one to many). This corresponds to the OData navigation property ToStaffData.

      If the navigation property ToStaffData of a queried PlanData 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 StaffingData 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.
    • getStaffDataIfPresent

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

      If the navigation property for an entity PlanData 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 ToStaffData is already loaded, the result will contain the StaffingData entities. If not, an Option with result state empty is returned.
    • setStaffData

      public void setStaffData(@Nonnull List<StaffingData> value)
      Overwrites the list of associated StaffingData entities for the loaded navigation property ToStaffData.

      If the navigation property ToStaffData of a queried PlanData 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 StaffingData entities.
    • addStaffData

      public void addStaffData(StaffingData... entity)
      Adds elements to the list of associated StaffingData entities. This corresponds to the OData navigation property ToStaffData.

      If the navigation property ToStaffData of a queried PlanData 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 StaffingData entities.
    • builder

      @Nonnull public static PlanData.PlanDataBuilder builder()
    • getBillingControlCategory

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

      Original property name from the Odata EDM: BillingControlCategory

      Returns:
      Billing Category
    • getBillingControlCategoryID

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

      Original property name from the Odata EDM: BillingControlCategoryID

      Returns:
      Billing Category ID
    • getEmployeeName

      @Nullable public String getEmployeeName()
      Constraints: none

      Original property name from the Odata EDM: EmployeeName

      Returns:
      Employee Name
    • getWpname

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

      Original property name from the Odata EDM: Wpname

      Returns:
      Work Package Name
    • getProjectID

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

      Original property name from the Odata EDM: ProjectID

      Returns:
      Project ID
    • 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
    • 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
    • getResTypeText

      @Nullable public String getResTypeText()
      Constraints: none

      Original property name from the Odata EDM: ResTypeText

      Returns:
      Resource Type Desc.
    • getResourceId

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

      Original property name from the Odata EDM: ResourceId

      Returns:
      Resource ID
    • getResourceText

      @Nullable public String getResourceText()
      Constraints: none

      Original property name from the Odata EDM: ResourceText

      Returns:
      Resource Desc.
    • getUom

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

      Original property name from the Odata EDM: Uom

      Returns:
      Unit of Measure
    • getVersion

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

      Original property name from the Odata EDM: Version

      Returns:
      Version ID
    • getPeriod

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

      Original property name from the Odata EDM: Period

      Returns:
      Month
    • getFcYear

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

      Original property name from the Odata EDM: FcYear

      Returns:
      Year
    • getEmployee

      @Nullable public String getEmployee()
      (Key Field) Constraints: Not nullable, Maximum length: 8

      Original property name from the Odata EDM: Employee

      Returns:
      Employee ID
    • getConfirmed

      @Nullable public String getConfirmed()
      (Key Field) Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: Confirmed

      Returns:
      Resource is Confirmed
    • getWorkitemId

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

      Original property name from the Odata EDM: WorkitemId

      Returns:
      Work Item ID
    • getWorkitemName

      @Nullable public String getWorkitemName()
      Constraints: none

      Original property name from the Odata EDM: WorkitemName

      Returns:
      Work Item Desc.
    • getEffort

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

      Original property name from the Odata EDM: Effort

      Returns:
      Planned Effort
    • 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
    • getDelvryServOrgT

      @Nullable public String getDelvryServOrgT()
      Constraints: none

      Original property name from the Odata EDM: DelvryServOrgT

      Returns:
      Delivery Org. Desc.
    • toString

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

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

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

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