public class Workpackage extends VdmEntity<Workpackage>
Modifier and Type | Class and Description |
---|---|
static class |
Workpackage.WorkpackageBuilder |
Modifier and Type | Field and Description |
---|---|
static EntityFieldAll<Workpackage> |
ALL_FIELDS
Selector for all available fields of Workpackage.
|
static WorkpackageField<String> |
CHANGED_BY
Use with available fluent helpers to apply the ChangedBy field to query operations.
|
static WorkpackageField<Calendar> |
CHANGED_ON
Use with available fluent helpers to apply the ChangedOn field to query operations.
|
static WorkpackageField<String> |
PROJECT_ID
Use with available fluent helpers to apply the ProjectID field to query operations.
|
static WorkpackageField<String> |
PROJECT_NAME
Use with available fluent helpers to apply the ProjectName field to query operations.
|
static WorkpackageLink<PlanData> |
TO_PLAN_DATA_SET
Use with available fluent helpers to apply the PlanDataSet navigation property to query operations.
|
static WorkpackageLink<WorkItem> |
TO_WORK_ITEM_SET
Use with available fluent helpers to apply the WorkItemSet navigation property to query operations.
|
static WorkpackageField<String> |
WORK_PACKAGE_ID
Use with available fluent helpers to apply the WorkPackageID field to query operations.
|
static WorkpackageField<String> |
WORK_PACKAGE_NAME
Use with available fluent helpers to apply the WorkPackageName field to query operations.
|
static WorkpackageField<Calendar> |
WP_END_DATE
Use with available fluent helpers to apply the WPEndDate field to query operations.
|
static WorkpackageField<Calendar> |
WP_START_DATE
Use with available fluent helpers to apply the WPStartDate field to query operations.
|
Constructor and Description |
---|
Workpackage() |
Workpackage(Calendar changedOn,
String projectID,
String changedBy,
String workPackageID,
String workPackageName,
Calendar wPStartDate,
Calendar wPEndDate,
String projectName,
ErpConfigContext erpConfigContext,
List<WorkItem> toWorkItemSet,
List<PlanData> toPlanDataSet) |
Modifier and Type | Method and Description |
---|---|
void |
addPlanDataSet(PlanData... entity)
Adds elements to the list of associated PlanData entities.
|
void |
addWorkItemSet(WorkItem... entity)
Adds elements to the list of associated WorkItem entities.
|
static Workpackage.WorkpackageBuilder |
builder() |
boolean |
equals(Object o) |
List<PlanData> |
fetchPlanDataSet()
Fetches the PlanData entities (one to many) associated with this entity.
|
List<WorkItem> |
fetchWorkItemSet()
Fetches the WorkItem entities (one to many) associated with this entity.
|
static <T> WorkpackageField<T> |
field(String fieldName,
Class<T> fieldType)
Use with available fluent helpers to apply an extension field to query operations.
|
String |
getChangedBy()
Constraints: Not nullable, Maximum length: 12
|
Calendar |
getChangedOn()
Constraints: Not nullable, Precision: 7
|
ErpConfigContext |
getErpConfigContext()
Convienence field for reusing the same ERP system context with multiple queries (e.g.
|
List<PlanData> |
getPlanDataSetOrFetch()
Retrieval of associated PlanData entities (one to many).
|
com.google.common.base.Optional<List<PlanData>> |
getPlanDataSetOrNull()
Retrieval of associated PlanData entities (one to many).
|
String |
getProjectID()
Constraints: Not nullable, Maximum length: 40
|
String |
getProjectName()
Constraints: Not nullable, Maximum length: 40
|
Class<Workpackage> |
getType() |
List<WorkItem> |
getWorkItemSetOrFetch()
Retrieval of associated WorkItem entities (one to many).
|
com.google.common.base.Optional<List<WorkItem>> |
getWorkItemSetOrNull()
Retrieval of associated WorkItem entities (one to many).
|
String |
getWorkPackageID()
(Key Field) Constraints: Not nullable, Maximum length: 50
|
String |
getWorkPackageName()
Constraints: Not nullable, Maximum length: 60
|
Calendar |
getWPEndDate()
Constraints: Not nullable, Precision: 7
|
Calendar |
getWPStartDate()
Constraints: Not nullable, Precision: 7
|
int |
hashCode() |
void |
setChangedBy(String changedBy)
Constraints: Not nullable, Maximum length: 12
|
void |
setChangedOn(Calendar changedOn)
Constraints: Not nullable, Precision: 7
|
void |
setErpConfigContext(ErpConfigContext erpConfigContext)
Convienence field for reusing the same ERP system context with multiple queries (e.g.
|
void |
setPlanDataSet(List<PlanData> value)
Overwrites the list of associated PlanData entities for the loaded navigation property PlanDataSet.
|
void |
setProjectID(String projectID)
Constraints: Not nullable, Maximum length: 40
|
void |
setProjectName(String projectName)
Constraints: Not nullable, Maximum length: 40
|
void |
setWorkItemSet(List<WorkItem> value)
Overwrites the list of associated WorkItem entities for the loaded navigation property WorkItemSet.
|
void |
setWorkPackageID(String workPackageID)
(Key Field) Constraints: Not nullable, Maximum length: 50
|
void |
setWorkPackageName(String workPackageName)
Constraints: Not nullable, Maximum length: 60
|
void |
setWPEndDate(Calendar wPEndDate)
Constraints: Not nullable, Precision: 7
|
void |
setWPStartDate(Calendar wPStartDate)
Constraints: Not nullable, Precision: 7
|
String |
toString() |
getCustomField, getCustomField, getCustomFieldNames, getCustomFields, hasCustomField, hasCustomField, setCustomField, setCustomField
public static final EntityFieldAll<Workpackage> ALL_FIELDS
public static final WorkpackageField<Calendar> CHANGED_ON
public static final WorkpackageField<String> PROJECT_ID
public static final WorkpackageField<String> CHANGED_BY
public static final WorkpackageField<String> WORK_PACKAGE_ID
public static final WorkpackageField<String> WORK_PACKAGE_NAME
public static final WorkpackageField<Calendar> WP_START_DATE
public static final WorkpackageField<Calendar> WP_END_DATE
public static final WorkpackageField<String> PROJECT_NAME
public static final WorkpackageLink<WorkItem> TO_WORK_ITEM_SET
public static final WorkpackageLink<PlanData> TO_PLAN_DATA_SET
@Generated(value="lombok") public Workpackage()
@ConstructorProperties(value={"changedOn","projectID","changedBy","workPackageID","workPackageName","wPStartDate","wPEndDate","projectName","erpConfigContext","toWorkItemSet","toPlanDataSet"}) @Generated(value="lombok") public Workpackage(@Nullable Calendar changedOn, @Nullable String projectID, @Nullable String changedBy, @Nullable String workPackageID, @Nullable String workPackageName, @Nullable Calendar wPStartDate, @Nullable Calendar wPEndDate, @Nullable String projectName, @Nullable ErpConfigContext erpConfigContext, List<WorkItem> toWorkItemSet, List<PlanData> toPlanDataSet)
public Class<Workpackage> getType()
getType
in class VdmObject<Workpackage>
public static <T> WorkpackageField<T> field(String fieldName, Class<T> fieldType)
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.public List<WorkItem> fetchWorkItemSet() 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.public List<WorkItem> getWorkItemSetOrFetch() throws com.sap.cloud.sdk.odatav2.connectivity.ODataException
If the navigation property WorkItemSet of a queried Workpackage 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.public com.google.common.base.Optional<List<WorkItem>> getWorkItemSetOrNull()
If the navigation property WorkItemSet for an entity Workpackage has not been resolved yet, this method will not query further information. Instead its Optional result state will be null.
public void setWorkItemSet(@NonNull List<WorkItem> value)
If the navigation property WorkItemSet of a queried Workpackage 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 WorkItem entities.public void addWorkItemSet(WorkItem... entity)
If the navigation property WorkItemSet of a queried Workpackage 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 WorkItem entities.public List<PlanData> fetchPlanDataSet() 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.public List<PlanData> getPlanDataSetOrFetch() throws com.sap.cloud.sdk.odatav2.connectivity.ODataException
If the navigation property PlanDataSet of a queried Workpackage 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.public com.google.common.base.Optional<List<PlanData>> getPlanDataSetOrNull()
If the navigation property PlanDataSet for an entity Workpackage has not been resolved yet, this method will not query further information. Instead its Optional result state will be null.
public void setPlanDataSet(@NonNull List<PlanData> value)
If the navigation property PlanDataSet of a queried Workpackage 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 PlanData entities.public void addPlanDataSet(PlanData... entity)
If the navigation property PlanDataSet of a queried Workpackage 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 PlanData entities.@Generated(value="lombok") public static Workpackage.WorkpackageBuilder builder()
@Nullable @Generated(value="lombok") public Calendar getChangedOn()
@Nullable @Generated(value="lombok") public String getProjectID()
@Nullable @Generated(value="lombok") public String getChangedBy()
@Nullable @Generated(value="lombok") public String getWorkPackageID()
@Nullable @Generated(value="lombok") public String getWorkPackageName()
@Nullable @Generated(value="lombok") public Calendar getWPStartDate()
Provides the planning horizon. By default, the dates are taken from the assigned master project.
@Nullable @Generated(value="lombok") public Calendar getWPEndDate()
Provides the planning horizon. By default, the dates are taken from the assigned master project.
@Nullable @Generated(value="lombok") public String getProjectName()
@Nullable @Generated(value="lombok") public ErpConfigContext getErpConfigContext()
@Generated(value="lombok") public void setChangedOn(@Nullable Calendar changedOn)
changedOn
- @Generated(value="lombok") public void setProjectID(@Nullable String projectID)
projectID
- @Generated(value="lombok") public void setChangedBy(@Nullable String changedBy)
changedBy
- @Generated(value="lombok") public void setWorkPackageID(@Nullable String workPackageID)
workPackageID
- @Generated(value="lombok") public void setWorkPackageName(@Nullable String workPackageName)
workPackageName
- @Generated(value="lombok") public void setWPStartDate(@Nullable Calendar wPStartDate)
Provides the planning horizon. By default, the dates are taken from the assigned master project.
wPStartDate
- @Generated(value="lombok") public void setWPEndDate(@Nullable Calendar wPEndDate)
Provides the planning horizon. By default, the dates are taken from the assigned master project.
wPEndDate
- @Generated(value="lombok") public void setProjectName(@Nullable String projectName)
projectName
- @Generated(value="lombok") public void setErpConfigContext(@Nullable ErpConfigContext erpConfigContext)
erpConfigContext
- @Generated(value="lombok") public String toString()
toString
in class VdmObject<Workpackage>
@Generated(value="lombok") public boolean equals(Object o)
equals
in class VdmObject<Workpackage>
@Generated(value="lombok") public int hashCode()
hashCode
in class VdmObject<Workpackage>
Copyright © 2017 SAP SE. All rights reserved.