Class WorkPackage
Original entity name from the Odata EDM: WorkPackage
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classHelper class to allow for fluent creation of WorkPackage instances. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final WorkPackageSelectableSelector for all available fields of WorkPackage.static final WorkPackageField<ZonedDateTime>Use with available fluent helpers to apply the ChangedOn field to query operations.static final WorkPackageField<LocalDateTime>Use with available fluent helpers to apply the CreatedOn field to query operations.static final WorkPackageField<String>Use with available fluent helpers to apply the Description field to query operations.static final WorkPackageField<String>Use with available fluent helpers to apply the ProjectID field to query operations.static final WorkPackageLink<Demand>Use with available fluent helpers to apply the DemandSet navigation property to query operations.static final WorkPackageOneToOneLink<Project>Use with available fluent helpers to apply the to_Project navigation property to query operations.static final WorkPackageLink<EngmntProjRsceDmnd>Use with available fluent helpers to apply the to_ResourceDemand navigation property to query operations.static final WorkPackageLink<WorkItem>Use with available fluent helpers to apply the WorkItemSet navigation property to query operations.static final WorkPackageLink<WorkPackageFunction>Use with available fluent helpers to apply the WorkPackageFunctionSet navigation property to query operations.static final WorkPackageField<String>Use with available fluent helpers to apply the UnitId field to query operations.static final WorkPackageField<BigDecimal>Use with available fluent helpers to apply the UnitQuantity field to query operations.static final WorkPackageField<String>Use with available fluent helpers to apply the WorkPackageID field to query operations.static final WorkPackageField<String>Use with available fluent helpers to apply the WorkPackageName field to query operations.static final WorkPackageField<String>Use with available fluent helpers to apply the WorkPackageType field to query operations.static final WorkPackageField<LocalDateTime>Use with available fluent helpers to apply the WPEndDate field to query operations.static final WorkPackageField<LocalDateTime>Use with available fluent helpers to apply the WPStartDate field to query operations.Fields inherited from class com.sap.cloud.sdk.datamodel.odata.helper.VdmObject
changedOriginalFields -
Constructor Summary
ConstructorsConstructorDescriptionWorkPackage(String projectID, String workPackageID, String workPackageName, String description, LocalDateTime wPStartDate, LocalDateTime wPEndDate, String workPackageType, BigDecimal unitQuantity, String unitId, LocalDateTime createdOn, ZonedDateTime changedOn, List<EngmntProjRsceDmnd> toResourceDemand, Project toProject, List<WorkItem> toWorkItemSet, List<Demand> toDemandSet, List<WorkPackageFunction> toWorkPackageFunctionSet) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDemandSet(Demand... entity) Adds elements to the list of associated Demand entities.voidaddResourceDemand(EngmntProjRsceDmnd... entity) Adds elements to the list of associated EngmntProjRsceDmnd entities.voidaddWorkItemSet(WorkItem... entity) Adds elements to the list of associated WorkItem entities.voidaddWorkPackageFunctionSet(WorkPackageFunction... entity) Adds elements to the list of associated WorkPackageFunction entities.voidattachToService(String servicePath, HttpDestinationProperties destination) builder()protected booleanbooleanFetches the Demand entities (one to many) associated with this entity.Fetches the Project entity (one to one) associated with this entity.Fetches the EngmntProjRsceDmnd entities (one to many) associated with this entity.Fetches the WorkItem entities (one to many) associated with this entity.Fetches the WorkPackageFunction entities (one to many) associated with this entity.static <T,DomainT>
WorkPackageField<T>field(String fieldName, TypeConverter<T, DomainT> typeConverter) Use with available fluent helpers to apply an extension field to query operations.static <T> WorkPackageField<T>Use with available fluent helpers to apply an extension field to query operations.protected voidConstraints: Not nullable, Precision: 7Constraints: Not nullable, Precision: 7protected StringRetrieval of associated Demand entities (one to many).Retrieval of associated Demand entities (one to many).Constraints: noneprotected StringgetKey()(Key Field) Constraints: Not nullable, Maximum length: 40io.vavr.control.Option<Project>Retrieval of associated Project entity (one to one).Retrieval of associated Project entity (one to one).io.vavr.control.Option<List<EngmntProjRsceDmnd>>Retrieval of associated EngmntProjRsceDmnd entities (one to many).Retrieval of associated EngmntProjRsceDmnd entities (one to many).getType()Constraints: Not nullable, Maximum length: 40Constraints: Not nullable, Precision: 15, Scale: 3Retrieval of associated WorkItem entities (one to many).Retrieval of associated WorkItem entities (one to many).io.vavr.control.Option<List<WorkPackageFunction>>Retrieval of associated WorkPackageFunction entities (one to many).Retrieval of associated WorkPackageFunction entities (one to many).(Key Field) Constraints: Not nullable, Maximum length: 50(Key Field) Constraints: Not nullable, Maximum length: 60Constraints: Not nullable, Maximum length: 1Constraints: Not nullable, Precision: 7Constraints: Not nullable, Precision: 7inthashCode()voidsetChangedOn(ZonedDateTime changedOn) Constraints: Not nullable, Precision: 7voidsetCreatedOn(LocalDateTime createdOn) Constraints: Not nullable, Precision: 7voidsetDemandSet(List<Demand> value) Overwrites the list of associated Demand entities for the loaded navigation property DemandSet.voidsetDescription(String description) Constraints: nonevoidsetProject(Project value) Overwrites the associated Project entity for the loaded navigation property to_Project.voidsetProjectID(String projectID) (Key Field) Constraints: Not nullable, Maximum length: 40voidsetResourceDemand(List<EngmntProjRsceDmnd> value) Overwrites the list of associated EngmntProjRsceDmnd entities for the loaded navigation property to_ResourceDemand.protected voidsetServicePathForFetch(String servicePathForFetch) voidConstraints: Not nullable, Maximum length: 40voidsetUnitQuantity(BigDecimal unitQuantity) Constraints: Not nullable, Precision: 15, Scale: 3voidsetWorkItemSet(List<WorkItem> value) Overwrites the list of associated WorkItem entities for the loaded navigation property WorkItemSet.voidOverwrites the list of associated WorkPackageFunction entities for the loaded navigation property WorkPackageFunctionSet.voidsetWorkPackageID(String workPackageID) (Key Field) Constraints: Not nullable, Maximum length: 50voidsetWorkPackageName(String workPackageName) (Key Field) Constraints: Not nullable, Maximum length: 60voidsetWorkPackageType(String workPackageType) Constraints: Not nullable, Maximum length: 1voidsetWPEndDate(LocalDateTime wPEndDate) Constraints: Not nullable, Precision: 7voidsetWPStartDate(LocalDateTime wPStartDate) Constraints: Not nullable, Precision: 7toString()Methods inherited from class com.sap.cloud.sdk.datamodel.odata.helper.VdmEntity
fetchFieldAsList, fetchFieldAsSingle, getServicePathForFetch, getVersionIdentifier, setDestinationForFetch, setVersionIdentifierMethods inherited from class com.sap.cloud.sdk.datamodel.odata.helper.VdmObject
getChangedFields, getCustomField, getCustomField, getCustomFieldNames, getCustomFields, getSetOfCustomFields, getSetOfFields, getSetOfNavigationProperties, hasCustomField, hasCustomField, rememberChangedField, resetChangedFields, setCustomField, setCustomField, toMap, toMapOfCustomFields
-
Field Details
-
ALL_FIELDS
Selector for all available fields of WorkPackage. -
PROJECT_ID
Use with available fluent helpers to apply the ProjectID field to query operations. -
WORK_PACKAGE_ID
Use with available fluent helpers to apply the WorkPackageID field to query operations. -
WORK_PACKAGE_NAME
Use with available fluent helpers to apply the WorkPackageName field to query operations. -
DESCRIPTION
Use with available fluent helpers to apply the Description field to query operations. -
WP_START_DATE
Use with available fluent helpers to apply the WPStartDate field to query operations. -
WP_END_DATE
Use with available fluent helpers to apply the WPEndDate field to query operations. -
WORK_PACKAGE_TYPE
Use with available fluent helpers to apply the WorkPackageType field to query operations. -
UNIT_QUANTITY
Use with available fluent helpers to apply the UnitQuantity field to query operations. -
UNIT_ID
Use with available fluent helpers to apply the UnitId field to query operations. -
CREATED_ON
Use with available fluent helpers to apply the CreatedOn field to query operations. -
CHANGED_ON
Use with available fluent helpers to apply the ChangedOn field to query operations. -
TO_RESOURCE_DEMAND
Use with available fluent helpers to apply the to_ResourceDemand navigation property to query operations. -
TO_PROJECT
Use with available fluent helpers to apply the to_Project navigation property to query operations. -
TO_WORK_ITEM_SET
Use with available fluent helpers to apply the WorkItemSet navigation property to query operations. -
TO_DEMAND_SET
Use with available fluent helpers to apply the DemandSet navigation property to query operations. -
TO_WORK_PACKAGE_FUNCTION_SET
Use with available fluent helpers to apply the WorkPackageFunctionSet navigation property to query operations.
-
-
Constructor Details
-
WorkPackage
public WorkPackage() -
WorkPackage
public WorkPackage(@Nullable String projectID, @Nullable String workPackageID, @Nullable String workPackageName, @Nullable String description, @Nullable LocalDateTime wPStartDate, @Nullable LocalDateTime wPEndDate, @Nullable String workPackageType, @Nullable BigDecimal unitQuantity, @Nullable String unitId, @Nullable LocalDateTime createdOn, @Nullable ZonedDateTime changedOn, List<EngmntProjRsceDmnd> toResourceDemand, @Nullable Project toProject, List<WorkItem> toWorkItemSet, List<Demand> toDemandSet, List<WorkPackageFunction> toWorkPackageFunctionSet)
-
-
Method Details
-
getType
- Specified by:
getTypein classVdmObject<WorkPackage>
-
setProjectID
(Key Field) Constraints: Not nullable, Maximum length: 40Original property name from the Odata EDM: ProjectID
- Parameters:
projectID- Project ID
-
setWorkPackageID
(Key Field) Constraints: Not nullable, Maximum length: 50Original property name from the Odata EDM: WorkPackageID
- Parameters:
workPackageID- Work Package ID
-
setWorkPackageName
(Key Field) Constraints: Not nullable, Maximum length: 60Original property name from the Odata EDM: WorkPackageName
- Parameters:
workPackageName- Work Package Name
-
setDescription
Constraints: noneOriginal property name from the Odata EDM: Description
- Parameters:
description- Work Package Desc.
-
setWPStartDate
Constraints: Not nullable, Precision: 7Original property name from the Odata EDM: WPStartDate
- Parameters:
wPStartDate- Start Date
-
setWPEndDate
Constraints: Not nullable, Precision: 7Original property name from the Odata EDM: WPEndDate
- Parameters:
wPEndDate- End Date
-
setWorkPackageType
Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: WorkPackageType
- Parameters:
workPackageType- Work Package Type
-
setUnitQuantity
Constraints: Not nullable, Precision: 15, Scale: 3Original property name from the Odata EDM: UnitQuantity
- Parameters:
unitQuantity- Total Quantity
-
setUnitId
Constraints: Not nullable, Maximum length: 40Original property name from the Odata EDM: UnitId
- Parameters:
unitId- Resource ID
-
setCreatedOn
Constraints: Not nullable, Precision: 7Original property name from the Odata EDM: CreatedOn
- Parameters:
createdOn- Created On
-
setChangedOn
Constraints: Not nullable, Precision: 7Original property name from the Odata EDM: ChangedOn
- Parameters:
changedOn- Changed On
-
getEntityCollection
- Specified by:
getEntityCollectionin classVdmEntity<WorkPackage>
-
getKey
- Overrides:
getKeyin classVdmObject<WorkPackage>
-
toMapOfFields
- Overrides:
toMapOfFieldsin classVdmObject<WorkPackage>
-
fromMap
- Overrides:
fromMapin classVdmObject<WorkPackage>
-
field
@Nonnull public static <T> WorkPackageField<T> field(@Nonnull String fieldName, @Nonnull Class<T> fieldType) Use with available fluent helpers to apply an extension field to query operations.- Type Parameters:
T- The type of the extension field when performing value comparisons.- Parameters:
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.- Returns:
- A representation of an extension field from this entity.
-
field
@Nonnull public static <T,DomainT> WorkPackageField<T> field(@Nonnull String fieldName, @Nonnull TypeConverter<T, DomainT> typeConverter) Use with available fluent helpers to apply an extension field to query operations.- Type Parameters:
T- The type of the extension field when performing value comparisons.DomainT- The type of the extension field as returned by the OData service.- Parameters:
typeConverter- A TypeConverter<T, DomainT> instance whose first generic type matches the Java type of the fieldfieldName- The name of the extension field as returned by the OData service.- Returns:
- A representation of an extension field from this entity, holding a reference to the given TypeConverter.
-
getDestinationForFetch
- Overrides:
getDestinationForFetchin classVdmEntity<WorkPackage>
-
setServicePathForFetch
- Overrides:
setServicePathForFetchin classVdmEntity<WorkPackage>
-
attachToService
public void attachToService(@Nullable String servicePath, @Nonnull HttpDestinationProperties destination) - Overrides:
attachToServicein classVdmEntity<WorkPackage>
-
getDefaultServicePath
- Overrides:
getDefaultServicePathin classVdmEntity<WorkPackage>
-
fetchResourceDemand
Fetches the EngmntProjRsceDmnd entities (one to many) associated with this entity. This corresponds to the OData navigation property to_ResourceDemand.Please note: This method will not cache or persist the query results.
- Returns:
- List containing one or more associated EngmntProjRsceDmnd entities. If no entities are associated then an empty list is returned.
- Throws:
com.sap.cloud.sdk.datamodel.odata.client.exception.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.
-
getResourceDemandOrFetch
Retrieval of associated EngmntProjRsceDmnd entities (one to many). This corresponds to the OData navigation property to_ResourceDemand.If the navigation property to_ResourceDemand 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.
- Returns:
- List of associated EngmntProjRsceDmnd entities.
- Throws:
com.sap.cloud.sdk.datamodel.odata.client.exception.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.
-
getResourceDemandIfPresent
Retrieval of associated EngmntProjRsceDmnd entities (one to many). This corresponds to the OData navigation property to_ResourceDemand.If the navigation property for an entity WorkPackage has not been resolved yet, this method will not query further information. Instead its
Optionresult state will beempty.- Returns:
- If the information for navigation property to_ResourceDemand is already loaded, the result will
contain the EngmntProjRsceDmnd entities. If not, an
Optionwith result stateemptyis returned.
-
setResourceDemand
Overwrites the list of associated EngmntProjRsceDmnd entities for the loaded navigation property to_ResourceDemand.If the navigation property to_ResourceDemand 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.
- Parameters:
value- List of EngmntProjRsceDmnd entities.
-
addResourceDemand
Adds elements to the list of associated EngmntProjRsceDmnd entities. This corresponds to the OData navigation property to_ResourceDemand.If the navigation property to_ResourceDemand 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.
- Parameters:
entity- Array of EngmntProjRsceDmnd entities.
-
fetchProject
Fetches the Project entity (one to one) associated with this entity. This corresponds to the OData navigation property to_Project.Please note: This method will not cache or persist the query results.
- Returns:
- The single associated Project entity, or
nullif an entity is not associated. - Throws:
com.sap.cloud.sdk.datamodel.odata.client.exception.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.
-
getProjectOrFetch
Retrieval of associated Project entity (one to one). This corresponds to the OData navigation property to_Project.If the navigation property to_Project 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.
- Returns:
- List of associated Project entity.
- Throws:
com.sap.cloud.sdk.datamodel.odata.client.exception.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.
-
getProjectIfPresent
Retrieval of associated Project entity (one to one). This corresponds to the OData navigation property to_Project.If the navigation property for an entity WorkPackage has not been resolved yet, this method will not query further information. Instead its
Optionresult state will beempty.- Returns:
- If the information for navigation property to_Project is already loaded, the result will contain
the Project entity. If not, an
Optionwith result stateemptyis returned.
-
setProject
Overwrites the associated Project entity for the loaded navigation property to_Project.- Parameters:
value- New Project entity.
-
fetchWorkItemSet
Fetches the WorkItem entities (one to many) associated with this entity. This corresponds to the OData navigation property WorkItemSet.Please note: This method will not cache or persist the query results.
- Returns:
- List containing one or more associated WorkItem entities. If no entities are associated then an empty list is returned.
- Throws:
com.sap.cloud.sdk.datamodel.odata.client.exception.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.
-
getWorkItemSetOrFetch
Retrieval of associated WorkItem entities (one to many). This corresponds to the OData navigation property WorkItemSet.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.
- Returns:
- List of associated WorkItem entities.
- Throws:
com.sap.cloud.sdk.datamodel.odata.client.exception.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.
-
getWorkItemSetIfPresent
Retrieval of associated WorkItem entities (one to many). This corresponds to the OData navigation property WorkItemSet.If the navigation property for an entity WorkPackage has not been resolved yet, this method will not query further information. Instead its
Optionresult state will beempty.- Returns:
- If the information for navigation property WorkItemSet is already loaded, the result will contain
the WorkItem entities. If not, an
Optionwith result stateemptyis returned.
-
setWorkItemSet
Overwrites the list of associated WorkItem entities for the loaded navigation property WorkItemSet.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.
- Parameters:
value- List of WorkItem entities.
-
addWorkItemSet
Adds elements to the list of associated WorkItem entities. This corresponds to the OData navigation property WorkItemSet.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.
- Parameters:
entity- Array of WorkItem entities.
-
fetchDemandSet
Fetches the Demand entities (one to many) associated with this entity. This corresponds to the OData navigation property DemandSet.Please note: This method will not cache or persist the query results.
- Returns:
- List containing one or more associated Demand entities. If no entities are associated then an empty list is returned.
- Throws:
com.sap.cloud.sdk.datamodel.odata.client.exception.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.
-
getDemandSetOrFetch
Retrieval of associated Demand entities (one to many). This corresponds to the OData navigation property DemandSet.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.
- Returns:
- List of associated Demand entities.
- Throws:
com.sap.cloud.sdk.datamodel.odata.client.exception.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.
-
getDemandSetIfPresent
Retrieval of associated Demand entities (one to many). This corresponds to the OData navigation property DemandSet.If the navigation property for an entity WorkPackage has not been resolved yet, this method will not query further information. Instead its
Optionresult state will beempty.- Returns:
- If the information for navigation property DemandSet is already loaded, the result will contain
the Demand entities. If not, an
Optionwith result stateemptyis returned.
-
setDemandSet
Overwrites the list of associated Demand entities for the loaded navigation property DemandSet.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.
- Parameters:
value- List of Demand entities.
-
addDemandSet
Adds elements to the list of associated Demand entities. This corresponds to the OData navigation property DemandSet.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.
- Parameters:
entity- Array of Demand entities.
-
fetchWorkPackageFunctionSet
Fetches the WorkPackageFunction entities (one to many) associated with this entity. This corresponds to the OData navigation property WorkPackageFunctionSet.Please note: This method will not cache or persist the query results.
- Returns:
- List containing one or more associated WorkPackageFunction entities. If no entities are associated then an empty list is returned.
- Throws:
com.sap.cloud.sdk.datamodel.odata.client.exception.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.
-
getWorkPackageFunctionSetOrFetch
Retrieval of associated WorkPackageFunction entities (one to many). This corresponds to the OData navigation property WorkPackageFunctionSet.If the navigation property WorkPackageFunctionSet 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.
- Returns:
- List of associated WorkPackageFunction entities.
- Throws:
com.sap.cloud.sdk.datamodel.odata.client.exception.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.
-
getWorkPackageFunctionSetIfPresent
@Nonnull public io.vavr.control.Option<List<WorkPackageFunction>> getWorkPackageFunctionSetIfPresent()Retrieval of associated WorkPackageFunction entities (one to many). This corresponds to the OData navigation property WorkPackageFunctionSet.If the navigation property for an entity WorkPackage has not been resolved yet, this method will not query further information. Instead its
Optionresult state will beempty.- Returns:
- If the information for navigation property WorkPackageFunctionSet is already loaded, the result
will contain the WorkPackageFunction entities. If not, an
Optionwith result stateemptyis returned.
-
setWorkPackageFunctionSet
Overwrites the list of associated WorkPackageFunction entities for the loaded navigation property WorkPackageFunctionSet.If the navigation property WorkPackageFunctionSet 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.
- Parameters:
value- List of WorkPackageFunction entities.
-
addWorkPackageFunctionSet
Adds elements to the list of associated WorkPackageFunction entities. This corresponds to the OData navigation property WorkPackageFunctionSet.If the navigation property WorkPackageFunctionSet 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.
- Parameters:
entity- Array of WorkPackageFunction entities.
-
builder
-
getProjectID
(Key Field) Constraints: Not nullable, Maximum length: 40Original property name from the Odata EDM: ProjectID
- Returns:
- Project ID
-
getWorkPackageID
(Key Field) Constraints: Not nullable, Maximum length: 50Original property name from the Odata EDM: WorkPackageID
- Returns:
- Work Package ID
-
getWorkPackageName
(Key Field) Constraints: Not nullable, Maximum length: 60Original property name from the Odata EDM: WorkPackageName
- Returns:
- Work Package Name
-
getDescription
Constraints: noneOriginal property name from the Odata EDM: Description
- Returns:
- Work Package Desc.
-
getWPStartDate
Constraints: Not nullable, Precision: 7Original property name from the Odata EDM: WPStartDate
- Returns:
- Start Date
-
getWPEndDate
Constraints: Not nullable, Precision: 7Original property name from the Odata EDM: WPEndDate
- Returns:
- End Date
-
getWorkPackageType
Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: WorkPackageType
- Returns:
- Work Package Type
-
getUnitQuantity
Constraints: Not nullable, Precision: 15, Scale: 3Original property name from the Odata EDM: UnitQuantity
- Returns:
- Total Quantity
-
getUnitId
Constraints: Not nullable, Maximum length: 40Original property name from the Odata EDM: UnitId
- Returns:
- Resource ID
-
getCreatedOn
Constraints: Not nullable, Precision: 7Original property name from the Odata EDM: CreatedOn
- Returns:
- Created On
-
getChangedOn
Constraints: Not nullable, Precision: 7Original property name from the Odata EDM: ChangedOn
- Returns:
- Changed On
-
toString
- Overrides:
toStringin classVdmObject<WorkPackage>
-
equals
- Overrides:
equalsin classVdmEntity<WorkPackage>
-
canEqual
- Overrides:
canEqualin classVdmEntity<WorkPackage>
-
hashCode
public int hashCode()- Overrides:
hashCodein classVdmEntity<WorkPackage>
-