public class WorkPackage extends VdmEntity<WorkPackage>
Modifier and Type | Class and Description |
---|---|
static class |
WorkPackage.WorkPackageBuilder |
Modifier and Type | Field and Description |
---|---|
static WorkPackageSelectable |
ALL_FIELDS
Selector for all available fields of WorkPackage.
|
static WorkPackageField<String> |
DESCRIPTION
Use with available fluent helpers to apply the Description field to query operations.
|
static WorkPackageField<String> |
PROJECT_ID
Use with available fluent helpers to apply the ProjectID field to query operations.
|
static WorkPackageLink<Demand> |
TO_DEMAND_SET
Use with available fluent helpers to apply the DemandSet 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(String projectID,
String description,
String workPackageID,
String workPackageName,
Calendar wPStartDate,
Calendar wPEndDate,
ErpConfigContext erpConfigContext,
List<WorkItem> toWorkItemSet,
List<Demand> toDemandSet) |
Modifier and Type | Method and Description |
---|---|
void |
addDemandSet(Demand... entity)
Adds elements to the list of associated Demand entities.
|
void |
addWorkItemSet(WorkItem... entity)
Adds elements to the list of associated WorkItem entities.
|
static WorkPackage.WorkPackageBuilder |
builder() |
boolean |
equals(Object o) |
List<Demand> |
fetchDemandSet()
Fetches the Demand 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.
|
List<Demand> |
getDemandSetOrFetch()
Retrieval of associated Demand entities (one to many).
|
com.google.common.base.Optional<List<Demand>> |
getDemandSetOrNull()
Retrieval of associated Demand entities (one to many).
|
String |
getDescription()
Constraints: none
|
ErpConfigContext |
getErpConfigContext()
Convienence field for reusing the same ERP system context with multiple queries (e.g.
|
String |
getProjectID()
(Key Field) 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()
(Key Field) Constraints: Not nullable, Maximum length: 60
|
Calendar |
getWPEndDate()
Constraints: Not nullable, Precision: 7
|
Calendar |
getWPStartDate()
Constraints: Not nullable, Precision: 7
|
int |
hashCode() |
void |
setDemandSet(List<Demand> value)
Overwrites the list of associated Demand entities for the loaded navigation property DemandSet.
|
void |
setDescription(String description)
Constraints: none
|
void |
setErpConfigContext(ErpConfigContext erpConfigContext)
Convienence field for reusing the same ERP system context with multiple queries (e.g.
|
void |
setProjectID(String projectID)
(Key Field) 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)
(Key Field) 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 WorkPackageSelectable ALL_FIELDS
public static final WorkPackageField<String> PROJECT_ID
public static final WorkPackageField<String> DESCRIPTION
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 WorkPackageLink<WorkItem> TO_WORK_ITEM_SET
public static final WorkPackageLink<Demand> TO_DEMAND_SET
@Generated(value="lombok") public WorkPackage()
@ConstructorProperties(value={"projectID","description","workPackageID","workPackageName","wPStartDate","wPEndDate","erpConfigContext","toWorkItemSet","toDemandSet"}) @Generated(value="lombok") public WorkPackage(@Nullable String projectID, @Nullable String description, @Nullable String workPackageID, @Nullable String workPackageName, @Nullable Calendar wPStartDate, @Nullable Calendar wPEndDate, @Nullable ErpConfigContext erpConfigContext, List<WorkItem> toWorkItemSet, List<Demand> toDemandSet)
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<Demand> fetchDemandSet() 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<Demand> getDemandSetOrFetch() throws com.sap.cloud.sdk.odatav2.connectivity.ODataException
If the navigation property DemandSet 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<Demand>> getDemandSetOrNull()
If the navigation property DemandSet 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 setDemandSet(@NonNull List<Demand> value)
If the navigation property DemandSet 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 Demand entities.public void addDemandSet(Demand... entity)
If the navigation property DemandSet 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 Demand entities.@Generated(value="lombok") public static WorkPackage.WorkPackageBuilder builder()
@Nullable @Generated(value="lombok") public String getProjectID()
@Nullable @Generated(value="lombok") public String getDescription()
@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 ErpConfigContext getErpConfigContext()
@Generated(value="lombok") public void setProjectID(@Nullable String projectID)
projectID
- @Generated(value="lombok") public void setDescription(@Nullable String description)
description
- @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 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 © 2018 SAP SE. All rights reserved.