public class WorkPackage extends Entity<WorkPackage>
Modifier and Type | Class and Description |
---|---|
static class |
WorkPackage.WorkPackageBuilder |
Modifier and Type | Field and Description |
---|---|
static EntityField<WorkPackage,String> |
DESCRIPTION
Use with available fluent helpers to apply the Description field to query operations.
|
static EntityField<WorkPackage,String> |
PROJECT_ID
Use with available fluent helpers to apply the ProjectID field to query operations.
|
static EntityField<WorkPackage,Calendar> |
W_P_END_DATE
Use with available fluent helpers to apply the WPEndDate field to query operations.
|
static EntityField<WorkPackage,Calendar> |
W_P_START_DATE
Use with available fluent helpers to apply the WPStartDate field to query operations.
|
static EntityField<WorkPackage,String> |
WORK_PACKAGE_ID
Use with available fluent helpers to apply the WorkPackageID field to query operations.
|
static EntityField<WorkPackage,String> |
WORK_PACKAGE_NAME
Use with available fluent helpers to apply the WorkPackageName 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 |
---|---|
static WorkPackage.WorkPackageBuilder |
builder() |
List<Demand> |
demandSet()
Fetches the Demand entities (one to many) associated with this entity.
|
void |
demandSet(Demand... entity)
Adds elements to the list of associated Demand entities.
|
void |
demandSet(List<Demand> value)
Overwrites the list of associated Demand entities for the loaded navigation property DemandSet.
|
List<Demand> |
demandSetOrFetch()
Retrieval of associated Demand entities (one to many).
|
com.google.common.base.Optional<List<Demand>> |
demandSetOrNull()
Retrieval of associated Demand entities (one to many).
|
boolean |
equals(Object o) |
static <T> EntityField<WorkPackage,T> |
field(String fieldName,
Class<T> fieldType)
Use with available fluent helpers to apply an extension field to query operations.
|
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() |
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 |
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 |
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() |
List<WorkItem> |
workItemSet()
Fetches the WorkItem entities (one to many) associated with this entity.
|
void |
workItemSet(List<WorkItem> value)
Overwrites the list of associated WorkItem entities for the loaded navigation property WorkItemSet.
|
void |
workItemSet(WorkItem... entity)
Adds elements to the list of associated WorkItem entities.
|
List<WorkItem> |
workItemSetOrFetch()
Retrieval of associated WorkItem entities (one to many).
|
com.google.common.base.Optional<List<WorkItem>> |
workItemSetOrNull()
Retrieval of associated WorkItem entities (one to many).
|
getCustomField, getCustomField, getCustomFieldNames, getCustomFields, hasCustomField, hasCustomField, setCustomField
public static final EntityField<WorkPackage,String> PROJECT_ID
public static final EntityField<WorkPackage,String> DESCRIPTION
public static final EntityField<WorkPackage,String> WORK_PACKAGE_ID
public static final EntityField<WorkPackage,String> WORK_PACKAGE_NAME
public static final EntityField<WorkPackage,Calendar> W_P_START_DATE
public static final EntityField<WorkPackage,Calendar> W_P_END_DATE
@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 Entity<WorkPackage>
public static <T> EntityField<WorkPackage,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> workItemSet() 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
public List<WorkItem> workItemSetOrFetch() 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
public com.google.common.base.Optional<List<WorkItem>> workItemSetOrNull()
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 workItemSet(@NonNull List<WorkItem> value) 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.
value
- List of WorkItem entities.com.sap.cloud.sdk.odatav2.connectivity.ODataException
public void workItemSet(WorkItem... entity) 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.
entity
- Array of WorkItem entities.com.sap.cloud.sdk.odatav2.connectivity.ODataException
public List<Demand> demandSet() 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
public List<Demand> demandSetOrFetch() 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
public com.google.common.base.Optional<List<Demand>> demandSetOrNull()
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 demandSet(@NonNull List<Demand> value) 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.
value
- List of Demand entities.com.sap.cloud.sdk.odatav2.connectivity.ODataException
public void demandSet(Demand... entity) 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.
entity
- Array of Demand entities.com.sap.cloud.sdk.odatav2.connectivity.ODataException
@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 Entity<WorkPackage>
@Generated(value="lombok") public boolean equals(Object o)
equals
in class Entity<WorkPackage>
@Generated(value="lombok") public int hashCode()
hashCode
in class Entity<WorkPackage>
Copyright © 2017 SAP SE. All rights reserved.