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> |
CHANGED_BY
Use with available fluent helpers to apply the ChangedBy field to query operations.
|
static EntityField<Workpackage,Calendar> |
CHANGED_ON
Use with available fluent helpers to apply the ChangedOn 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,String> |
PROJECT_NAME
Use with available fluent helpers to apply the ProjectName 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(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 |
---|---|
static Workpackage.WorkpackageBuilder |
builder() |
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 |
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.
|
String |
getProjectID()
Constraints: Not nullable, Maximum length: 40
|
String |
getProjectName()
Constraints: Not nullable, Maximum length: 40
|
Class<Workpackage> |
getType() |
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() |
List<PlanData> |
planDataSet()
Fetches the PlanData entities (one to many) associated with this entity.
|
void |
planDataSet(List<PlanData> value)
Overwrites the list of associated PlanData entities for the loaded navigation property PlanDataSet.
|
void |
planDataSet(PlanData... entity)
Adds elements to the list of associated PlanData entities.
|
List<PlanData> |
planDataSetOrFetch()
Retrieval of associated PlanData entities (one to many).
|
com.google.common.base.Optional<List<PlanData>> |
planDataSetOrNull()
Retrieval of associated PlanData entities (one to many).
|
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 |
setProjectID(String projectID)
Constraints: Not nullable, Maximum length: 40
|
void |
setProjectName(String projectName)
Constraints: Not nullable, Maximum length: 40
|
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() |
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,Calendar> CHANGED_ON
public static final EntityField<Workpackage,String> PROJECT_ID
public static final EntityField<Workpackage,String> CHANGED_BY
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
public static final EntityField<Workpackage,String> PROJECT_NAME
@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 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<PlanData> planDataSet() 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<PlanData> planDataSetOrFetch() 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
public com.google.common.base.Optional<List<PlanData>> planDataSetOrNull()
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 planDataSet(@NonNull List<PlanData> value) 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.
value
- List of PlanData entities.com.sap.cloud.sdk.odatav2.connectivity.ODataException
public void planDataSet(PlanData... entity) 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.
entity
- Array of PlanData entities.com.sap.cloud.sdk.odatav2.connectivity.ODataException
@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 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.