Modifier and Type | Class and Description |
---|---|
static class |
PlanData.PlanDataBuilder
Helper class to allow for fluent creation of PlanData instances.
|
Modifier and Type | Field and Description |
---|---|
static PlanDataSelectable |
ALL_FIELDS
Selector for all available fields of PlanData.
|
static PlanDataField<String> |
BILLING_CONTROL_CATEGORY
Use with available fluent helpers to apply the BillingControlCategory field to query operations.
|
static PlanDataField<String> |
BILLING_CONTROL_CATEGORY_ID
Use with available fluent helpers to apply the BillingControlCategoryID field to query operations.
|
static PlanDataField<String> |
CONFIRMED
Use with available fluent helpers to apply the Confirmed field to query operations.
|
static PlanDataField<String> |
DELVRY_SERV_ORG
Use with available fluent helpers to apply the DelvryServOrg field to query operations.
|
static PlanDataField<String> |
DELVRY_SERV_ORG_T
Use with available fluent helpers to apply the DelvryServOrgT field to query operations.
|
static PlanDataField<BigDecimal> |
EFFORT
Use with available fluent helpers to apply the Effort field to query operations.
|
static PlanDataField<String> |
EMPLOYEE
Use with available fluent helpers to apply the Employee field to query operations.
|
static PlanDataField<String> |
EMPLOYEE_NAME
Use with available fluent helpers to apply the EmployeeName field to query operations.
|
static PlanDataField<String> |
FC_YEAR
Use with available fluent helpers to apply the FcYear field to query operations.
|
static PlanDataField<String> |
PERIOD
Use with available fluent helpers to apply the Period field to query operations.
|
static PlanDataField<String> |
PROJECT_ID
Use with available fluent helpers to apply the ProjectID field to query operations.
|
static PlanDataField<String> |
RES_TYPE
Use with available fluent helpers to apply the ResType field to query operations.
|
static PlanDataField<String> |
RES_TYPE_TEXT
Use with available fluent helpers to apply the ResTypeText field to query operations.
|
static PlanDataField<String> |
RESOURCE_ID
Use with available fluent helpers to apply the ResourceId field to query operations.
|
static PlanDataField<String> |
RESOURCE_TEXT
Use with available fluent helpers to apply the ResourceText field to query operations.
|
static PlanDataLink<StaffingData> |
TO_STAFF_DATA
Use with available fluent helpers to apply the ToStaffData navigation property to query operations.
|
static PlanDataField<String> |
UOM
Use with available fluent helpers to apply the Uom field to query operations.
|
static PlanDataField<String> |
VERSION
Use with available fluent helpers to apply the Version field to query operations.
|
static PlanDataField<String> |
WORK_PACKAGE_ID
Use with available fluent helpers to apply the WorkPackageID field to query operations.
|
static PlanDataField<String> |
WORKITEM_ID
Use with available fluent helpers to apply the WorkitemId field to query operations.
|
static PlanDataField<String> |
WORKITEM_NAME
Use with available fluent helpers to apply the WorkitemName field to query operations.
|
static PlanDataField<String> |
WPNAME
Use with available fluent helpers to apply the Wpname field to query operations.
|
changedOriginalFields
Constructor and Description |
---|
PlanData() |
PlanData(String billingControlCategory,
String billingControlCategoryID,
String employeeName,
String wpname,
String projectID,
String resType,
String workPackageID,
String resTypeText,
String resourceId,
String resourceText,
String uom,
String version,
String period,
String fcYear,
String employee,
String confirmed,
String workitemId,
String workitemName,
BigDecimal effort,
String delvryServOrg,
String delvryServOrgT,
List<StaffingData> toStaffData) |
Modifier and Type | Method and Description |
---|---|
void |
addStaffData(StaffingData... entity)
Adds elements to the list of associated StaffingData entities.
|
void |
attachToService(String servicePath,
HttpDestinationProperties destination)
Sets the service path and destination for the fetch commands of this entity.
|
static PlanData.PlanDataBuilder |
builder() |
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
List<StaffingData> |
fetchStaffData()
Fetches the StaffingData entities (one to many) associated with this entity.
|
static <T> PlanDataField<T> |
field(String fieldName,
Class<T> fieldType)
Use with available fluent helpers to apply an extension field to query operations.
|
static <T,DomainT> |
field(String fieldName,
TypeConverter<T,DomainT> typeConverter)
Use with available fluent helpers to apply an extension field to query operations.
|
protected void |
fromMap(Map<String,Object> inputValues) |
String |
getBillingControlCategory()
Constraints: Not nullable, Maximum length: 8
|
String |
getBillingControlCategoryID()
Constraints: Not nullable, Maximum length: 8
|
String |
getConfirmed()
(Key Field) Constraints: Not nullable, Maximum length: 1
|
protected String |
getDefaultServicePath()
Used by fluent helpers and navigation property methods to construct OData queries.
|
String |
getDelvryServOrg()
(Key Field) Constraints: Not nullable, Maximum length: 5
|
String |
getDelvryServOrgT()
Constraints: none
|
HttpDestinationProperties |
getDestinationForFetch()
Convienence field for reusing the same destination with multiple queries (e.g.
|
BigDecimal |
getEffort()
Constraints: Not nullable, Precision: 15, Scale: 3
|
String |
getEmployee()
(Key Field) Constraints: Not nullable, Maximum length: 8
|
String |
getEmployeeName()
Constraints: none
|
protected String |
getEntityCollection()
Used by fluent helpers and navigation property methods to construct OData queries.
|
String |
getFcYear()
Constraints: Not nullable, Maximum length: 4
|
protected Map<String,Object> |
getKey() |
String |
getPeriod()
Constraints: Not nullable, Maximum length: 3
|
String |
getProjectID()
(Key Field) Constraints: Not nullable, Maximum length: 40
|
String |
getResourceId()
(Key Field) Constraints: Not nullable, Maximum length: 40
|
String |
getResourceText()
Constraints: none
|
String |
getResType()
(Key Field) Constraints: Not nullable, Maximum length: 4
|
String |
getResTypeText()
Constraints: none
|
io.vavr.control.Option<List<StaffingData>> |
getStaffDataIfPresent()
Retrieval of associated StaffingData entities (one to many).
|
List<StaffingData> |
getStaffDataOrFetch()
Retrieval of associated StaffingData entities (one to many).
|
Class<PlanData> |
getType() |
String |
getUom()
Constraints: Not nullable, Maximum length: 3
|
String |
getVersion()
(Key Field) Constraints: Not nullable, Maximum length: 28
|
String |
getWorkitemId()
(Key Field) Constraints: Not nullable, Maximum length: 10
|
String |
getWorkitemName()
Constraints: none
|
String |
getWorkPackageID()
(Key Field) Constraints: Not nullable, Maximum length: 50
|
String |
getWpname()
Constraints: Not nullable, Maximum length: 60
|
int |
hashCode() |
void |
setBillingControlCategory(String billingControlCategory)
Constraints: Not nullable, Maximum length: 8
|
void |
setBillingControlCategoryID(String billingControlCategoryID)
Constraints: Not nullable, Maximum length: 8
|
void |
setConfirmed(String confirmed)
(Key Field) Constraints: Not nullable, Maximum length: 1
|
void |
setDelvryServOrg(String delvryServOrg)
(Key Field) Constraints: Not nullable, Maximum length: 5
|
void |
setDelvryServOrgT(String delvryServOrgT)
Constraints: none
|
void |
setEffort(BigDecimal effort)
Constraints: Not nullable, Precision: 15, Scale: 3
|
void |
setEmployee(String employee)
(Key Field) Constraints: Not nullable, Maximum length: 8
|
void |
setEmployeeName(String employeeName)
Constraints: none
|
void |
setFcYear(String fcYear)
Constraints: Not nullable, Maximum length: 4
|
void |
setPeriod(String period)
Constraints: Not nullable, Maximum length: 3
|
void |
setProjectID(String projectID)
(Key Field) Constraints: Not nullable, Maximum length: 40
|
void |
setResourceId(String resourceId)
(Key Field) Constraints: Not nullable, Maximum length: 40
|
void |
setResourceText(String resourceText)
Constraints: none
|
void |
setResType(String resType)
(Key Field) Constraints: Not nullable, Maximum length: 4
|
void |
setResTypeText(String resTypeText)
Constraints: none
|
protected void |
setServicePathForFetch(String servicePathForFetch)
The service path only used for the fetch commands of this entity.
|
void |
setStaffData(List<StaffingData> value)
Overwrites the list of associated StaffingData entities for the loaded navigation property
ToStaffData.
|
void |
setUom(String uom)
Constraints: Not nullable, Maximum length: 3
|
void |
setVersion(String version)
(Key Field) Constraints: Not nullable, Maximum length: 28
|
void |
setWorkitemId(String workitemId)
(Key Field) Constraints: Not nullable, Maximum length: 10
|
void |
setWorkitemName(String workitemName)
Constraints: none
|
void |
setWorkPackageID(String workPackageID)
(Key Field) Constraints: Not nullable, Maximum length: 50
|
void |
setWpname(String wpname)
Constraints: Not nullable, Maximum length: 60
|
protected Map<String,Object> |
toMapOfFields() |
protected Map<String,Object> |
toMapOfNavigationProperties() |
String |
toString() |
getServicePathForFetch, getVersionIdentifier, setDestinationForFetch, setVersionIdentifier
getChangedFields, getCustomField, getCustomField, getCustomFieldNames, getCustomFields, getSetOfCustomFields, getSetOfFields, getSetOfNavigationProperties, hasCustomField, hasCustomField, rememberChangedField, resetChangedFields, setCustomField, setCustomField, toMap, toMapOfCustomFields
public static final PlanDataSelectable ALL_FIELDS
public static final PlanDataField<String> BILLING_CONTROL_CATEGORY
public static final PlanDataField<String> BILLING_CONTROL_CATEGORY_ID
public static final PlanDataField<String> EMPLOYEE_NAME
public static final PlanDataField<String> WPNAME
public static final PlanDataField<String> PROJECT_ID
public static final PlanDataField<String> RES_TYPE
public static final PlanDataField<String> WORK_PACKAGE_ID
public static final PlanDataField<String> RES_TYPE_TEXT
public static final PlanDataField<String> RESOURCE_ID
public static final PlanDataField<String> RESOURCE_TEXT
public static final PlanDataField<String> UOM
public static final PlanDataField<String> VERSION
public static final PlanDataField<String> PERIOD
public static final PlanDataField<String> FC_YEAR
public static final PlanDataField<String> EMPLOYEE
public static final PlanDataField<String> CONFIRMED
public static final PlanDataField<String> WORKITEM_ID
public static final PlanDataField<String> WORKITEM_NAME
public static final PlanDataField<BigDecimal> EFFORT
public static final PlanDataField<String> DELVRY_SERV_ORG
public static final PlanDataField<String> DELVRY_SERV_ORG_T
public static final PlanDataLink<StaffingData> TO_STAFF_DATA
public 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)
public void setBillingControlCategory(@Nullable String billingControlCategory)
Original property name from the Odata EDM: BillingControlCategory
SeeTask-Oriented InstructionsReference Documentation for Semantic Properties of Domains
billingControlCategory
- This text appears when fixed values are displayed in the F4 help. It explains the possible input
values.public void setBillingControlCategoryID(@Nullable String billingControlCategoryID)
Original property name from the Odata EDM: BillingControlCategoryID
billingControlCategoryID
- Billing Control Categorypublic void setEmployeeName(@Nullable String employeeName)
Original property name from the Odata EDM: EmployeeName
employeeName
- Employee Namepublic void setWpname(@Nullable String wpname)
Original property name from the Odata EDM: Wpname
wpname
- Plan Item Descriptionpublic void setProjectID(@Nullable String projectID)
Original property name from the Odata EDM: ProjectID
projectID
- Identifies a customer or internal project.public void setResType(@Nullable String resType)
Original property name from the Odata EDM: ResType
Resource types are used to categorize resources while carrying out financial planning activities.
resType
- Used to uniquely identify the resource type.public void setWorkPackageID(@Nullable String workPackageID)
Original property name from the Odata EDM: WorkPackageID
workPackageID
- Plan Itempublic void setResTypeText(@Nullable String resTypeText)
Original property name from the Odata EDM: ResTypeText
resTypeText
- Resource Type Desc.public void setResourceId(@Nullable String resourceId)
Original property name from the Odata EDM: ResourceId
Resources correspond to individual entities in a project. You can assign multiple cost elements and activity types to each resource.
resourceId
- Used to uniquely identify a resource.public void setResourceText(@Nullable String resourceText)
Original property name from the Odata EDM: ResourceText
resourceText
- Resource Desc.public void setUom(@Nullable String uom)
Original property name from the Odata EDM: Uom
uom
- Unit, in which the corresponding quantity is measured.public void setVersion(@Nullable String version)
Original property name from the Odata EDM: Version
version
- A plan version is used to create different types of project estimates. Each version is associated with
different version types that categorize versions into quote, baseline, current, and forecast.public void setPeriod(@Nullable String period)
Original property name from the Odata EDM: Period
period
- Settlement periodpublic void setFcYear(@Nullable String fcYear)
Original property name from the Odata EDM: FcYear
fcYear
- Period, 12 months as a rule, for which the company is to create its inventory and balance sheet. The
fiscal year can be the same as the calendar year, but does not have to be.public void setEmployee(@Nullable String employee)
Original property name from the Odata EDM: Employee
Use this field to apply an object ID to the new object(s) you create. To do so, either enter:An exclamation mark (!). The system automatically applies a unique number to the object(s).A unique 8-digit number. You do this if you are working with a single object AND your enterprise uses its own numbering scheme ("external" numbers).
employee
- Contains a unique eight-digit numerical code that represents a specific object (for example, an
organizational unit, qualification or business event).public void setConfirmed(@Nullable String confirmed)
Original property name from the Odata EDM: Confirmed
confirmed
- Confirmation of staffed Employeepublic void setWorkitemId(@Nullable String workitemId)
Original property name from the Odata EDM: WorkitemId
workitemId
- Work Item IDpublic void setWorkitemName(@Nullable String workitemName)
Original property name from the Odata EDM: WorkitemName
workitemName
- Work Item Desc.public void setEffort(@Nullable BigDecimal effort)
Original property name from the Odata EDM: Effort
effort
- Total quantity per period.public void setDelvryServOrg(@Nullable String delvryServOrg)
Original property name from the Odata EDM: DelvryServOrg
This field links master project data with the company code and plant.
delvryServOrg
- This field links master project data with the company code and plant.public void setDelvryServOrgT(@Nullable String delvryServOrgT)
Original property name from the Odata EDM: DelvryServOrgT
delvryServOrgT
- Delivery Org. Desc.protected String getEntityCollection()
VdmEntity
getEntityCollection
in class VdmEntity<PlanData>
@Nonnull protected Map<String,Object> toMapOfFields()
toMapOfFields
in class VdmObject<PlanData>
@Nonnull public static <T> PlanDataField<T> field(@Nonnull String fieldName, @Nonnull Class<T> fieldType)
T
- The type of the extension field when performing value comparisons.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.@Nonnull public static <T,DomainT> PlanDataField<T> field(@Nonnull String fieldName, @Nonnull TypeConverter<T,DomainT> typeConverter)
T
- The type of the extension field when performing value comparisons.DomainT
- The type of the extension field as returned by the OData service.typeConverter
- A TypeConverterfieldName
- The name of the extension field as returned by the OData service.@Nullable public HttpDestinationProperties getDestinationForFetch()
VdmEntity
getDestinationForFetch
in class VdmEntity<PlanData>
protected void setServicePathForFetch(@Nullable String servicePathForFetch)
VdmEntity
Note: Use with caution, as this can easily break the fetch call on this entity. See the interface of the corresponding service for the default service path.
setServicePathForFetch
in class VdmEntity<PlanData>
public void attachToService(@Nullable String servicePath, @Nonnull HttpDestinationProperties destination)
VdmEntity
Note: Use with caution, as this can easily break the fetch calls on this entity. See the interface of the corresponding service for the default service path.
attachToService
in class VdmEntity<PlanData>
servicePath
- Optional parameter. New service path to apply to this entity and any associated entities that were
previously fetched. If a null value is provided and the service path has never been set, then the
service path will be set to the default defined in the corresponding service interface.destination
- New destination to apply to this entity and any associated entities that were previously fetched.protected String getDefaultServicePath()
VdmEntity
getDefaultServicePath
in class VdmEntity<PlanData>
protocol://hostname:port
and the OData resource name (entity set, $metadata
, etc.)@Nonnull protected Map<String,Object> toMapOfNavigationProperties()
toMapOfNavigationProperties
in class VdmObject<PlanData>
@Nonnull public List<StaffingData> fetchStaffData() throws com.sap.cloud.sdk.odatav2.connectivity.ODataException
Please note: This method will not cache or persist the query results.
com.sap.cloud.sdk.odatav2.connectivity.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.@Nonnull public List<StaffingData> getStaffDataOrFetch() throws com.sap.cloud.sdk.odatav2.connectivity.ODataException
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.
com.sap.cloud.sdk.odatav2.connectivity.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.@Nonnull public io.vavr.control.Option<List<StaffingData>> getStaffDataIfPresent()
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
.
Option
with result state empty
is
returned.public void setStaffData(@Nonnull List<StaffingData> value)
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.
value
- List of StaffingData entities.public void addStaffData(StaffingData... entity)
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.
entity
- Array of StaffingData entities.public static PlanData.PlanDataBuilder builder()
@Nullable public String getBillingControlCategory()
Original property name from the Odata EDM: BillingControlCategory
SeeTask-Oriented InstructionsReference Documentation for Semantic Properties of Domains
@Nullable public String getBillingControlCategoryID()
Original property name from the Odata EDM: BillingControlCategoryID
@Nullable public String getEmployeeName()
Original property name from the Odata EDM: EmployeeName
@Nullable public String getWpname()
Original property name from the Odata EDM: Wpname
@Nullable public String getProjectID()
Original property name from the Odata EDM: ProjectID
@Nullable public String getResType()
Original property name from the Odata EDM: ResType
Resource types are used to categorize resources while carrying out financial planning activities.
@Nullable public String getWorkPackageID()
Original property name from the Odata EDM: WorkPackageID
@Nullable public String getResTypeText()
Original property name from the Odata EDM: ResTypeText
@Nullable public String getResourceId()
Original property name from the Odata EDM: ResourceId
Resources correspond to individual entities in a project. You can assign multiple cost elements and activity types to each resource.
@Nullable public String getResourceText()
Original property name from the Odata EDM: ResourceText
@Nullable public String getUom()
Original property name from the Odata EDM: Uom
@Nullable public String getVersion()
Original property name from the Odata EDM: Version
@Nullable public String getPeriod()
Original property name from the Odata EDM: Period
@Nullable public String getFcYear()
Original property name from the Odata EDM: FcYear
@Nullable public String getEmployee()
Original property name from the Odata EDM: Employee
Use this field to apply an object ID to the new object(s) you create. To do so, either enter:An exclamation mark (!). The system automatically applies a unique number to the object(s).A unique 8-digit number. You do this if you are working with a single object AND your enterprise uses its own numbering scheme ("external" numbers).
@Nullable public String getConfirmed()
Original property name from the Odata EDM: Confirmed
@Nullable public String getWorkitemId()
Original property name from the Odata EDM: WorkitemId
@Nullable public String getWorkitemName()
Original property name from the Odata EDM: WorkitemName
@Nullable public BigDecimal getEffort()
Original property name from the Odata EDM: Effort
@Nullable public String getDelvryServOrg()
Original property name from the Odata EDM: DelvryServOrg
This field links master project data with the company code and plant.
@Nullable public String getDelvryServOrgT()
Original property name from the Odata EDM: DelvryServOrgT
Copyright © 2020 SAP SE. All rights reserved.