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<String>Use with available fluent helpers to apply the ChangedBy field to query operations.static final WorkpackageField<ZonedDateTime>Use with available fluent helpers to apply the ChangedOn field to query operations.static final WorkpackageField<String>Use with available fluent helpers to apply the ProjectID field to query operations.static final WorkpackageField<String>Use with available fluent helpers to apply the ProjectName field to query operations.static final WorkpackageField<String>Use with available fluent helpers to apply the Quantity field to query operations.static final WorkpackageLink<PlanData>Use with available fluent helpers to apply the PlanDataSet 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 UnitOfMeasure 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<String>Use with available fluent helpers to apply the WorkPackageUnitText 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 workPackageUnitText, String workPackageType, String unitOfMeasure, String quantity, ZonedDateTime changedOn, String projectID, String changedBy, String workPackageID, String workPackageName, LocalDateTime wPStartDate, LocalDateTime wPEndDate, String projectName, List<WorkPackageFunction> toWorkPackageFunctionSet, List<WorkItem> toWorkItemSet, List<PlanData> toPlanDataSet) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPlanDataSet(PlanData... entity) Adds elements to the list of associated PlanData 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 PlanData 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, Maximum length: 12Constraints: Not nullable, Precision: 7protected Stringprotected StringgetKey()Retrieval of associated PlanData entities (one to many).Retrieval of associated PlanData entities (one to many).Constraints: Not nullable, Maximum length: 40Constraints: Not nullable, Maximum length: 40Constraints: Not nullable, Maximum length: 15getType()Constraints: Not nullable, Maximum length: 30Retrieval 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: 50Constraints: Not nullable, Maximum length: 60Constraints: Not nullable, Maximum length: 1Constraints: Not nullable, Maximum length: 40Constraints: Not nullable, Precision: 7Constraints: Not nullable, Precision: 7inthashCode()voidsetChangedBy(String changedBy) Constraints: Not nullable, Maximum length: 12voidsetChangedOn(ZonedDateTime changedOn) Constraints: Not nullable, Precision: 7voidsetPlanDataSet(List<PlanData> value) Overwrites the list of associated PlanData entities for the loaded navigation property PlanDataSet.voidsetProjectID(String projectID) Constraints: Not nullable, Maximum length: 40voidsetProjectName(String projectName) Constraints: Not nullable, Maximum length: 40voidsetQuantity(String quantity) Constraints: Not nullable, Maximum length: 15protected voidsetServicePathForFetch(String servicePathForFetch) voidsetUnitOfMeasure(String unitOfMeasure) Constraints: Not nullable, Maximum length: 30voidsetWorkItemSet(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) Constraints: Not nullable, Maximum length: 60voidsetWorkPackageType(String workPackageType) Constraints: Not nullable, Maximum length: 1voidsetWorkPackageUnitText(String workPackageUnitText) Constraints: Not nullable, Maximum length: 40voidsetWPEndDate(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. -
WORK_PACKAGE_UNIT_TEXT
Use with available fluent helpers to apply the WorkPackageUnitText field to query operations. -
WORK_PACKAGE_TYPE
Use with available fluent helpers to apply the WorkPackageType field to query operations. -
UNIT_OF_MEASURE
Use with available fluent helpers to apply the UnitOfMeasure field to query operations. -
QUANTITY
Use with available fluent helpers to apply the Quantity field to query operations. -
CHANGED_ON
Use with available fluent helpers to apply the ChangedOn field to query operations. -
PROJECT_ID
Use with available fluent helpers to apply the ProjectID field to query operations. -
CHANGED_BY
Use with available fluent helpers to apply the ChangedBy 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. -
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. -
PROJECT_NAME
Use with available fluent helpers to apply the ProjectName field to query operations. -
TO_WORK_PACKAGE_FUNCTION_SET
Use with available fluent helpers to apply the WorkPackageFunctionSet navigation property to query operations. -
TO_WORK_ITEM_SET
Use with available fluent helpers to apply the WorkItemSet navigation property to query operations. -
TO_PLAN_DATA_SET
Use with available fluent helpers to apply the PlanDataSet navigation property to query operations.
-
-
Constructor Details
-
Workpackage
public Workpackage() -
Workpackage
public Workpackage(@Nullable String workPackageUnitText, @Nullable String workPackageType, @Nullable String unitOfMeasure, @Nullable String quantity, @Nullable ZonedDateTime changedOn, @Nullable String projectID, @Nullable String changedBy, @Nullable String workPackageID, @Nullable String workPackageName, @Nullable LocalDateTime wPStartDate, @Nullable LocalDateTime wPEndDate, @Nullable String projectName, List<WorkPackageFunction> toWorkPackageFunctionSet, List<WorkItem> toWorkItemSet, List<PlanData> toPlanDataSet)
-
-
Method Details
-
getType
- Specified by:
getTypein classVdmObject<Workpackage>
-
setWorkPackageUnitText
Constraints: Not nullable, Maximum length: 40Original property name from the Odata EDM: WorkPackageUnitText
- Parameters:
workPackageUnitText- Work Package Unit Text
-
setWorkPackageType
Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: WorkPackageType
- Parameters:
workPackageType- Work Package Type
-
setUnitOfMeasure
Constraints: Not nullable, Maximum length: 30Original property name from the Odata EDM: UnitOfMeasure
- Parameters:
unitOfMeasure- Unit Of Measure
-
setQuantity
Constraints: Not nullable, Maximum length: 15Original property name from the Odata EDM: Quantity
- Parameters:
quantity- Quantity
-
setChangedOn
Constraints: Not nullable, Precision: 7Original property name from the Odata EDM: ChangedOn
- Parameters:
changedOn- Changed on
-
setProjectID
Constraints: Not nullable, Maximum length: 40Original property name from the Odata EDM: ProjectID
- Parameters:
projectID- Project ID
-
setChangedBy
Constraints: Not nullable, Maximum length: 12Original property name from the Odata EDM: ChangedBy
- Parameters:
changedBy- Changed By
-
setWorkPackageID
(Key Field) Constraints: Not nullable, Maximum length: 50Original property name from the Odata EDM: WorkPackageID
- Parameters:
workPackageID- Work Package ID
-
setWorkPackageName
Constraints: Not nullable, Maximum length: 60Original property name from the Odata EDM: WorkPackageName
- Parameters:
workPackageName- Work Package Name
-
setWPStartDate
Constraints: Not nullable, Precision: 7Original property name from the Odata EDM: WPStartDate
- Parameters:
wPStartDate- Work Package Start Date
-
setWPEndDate
Constraints: Not nullable, Precision: 7Original property name from the Odata EDM: WPEndDate
- Parameters:
wPEndDate- Work Package EndDate
-
setProjectName
Constraints: Not nullable, Maximum length: 40Original property name from the Odata EDM: ProjectName
- Parameters:
projectName- Project Name
-
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>
-
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.
-
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.
-
fetchPlanDataSet
Fetches the PlanData entities (one to many) associated with this entity. This corresponds to the OData navigation property PlanDataSet.Please note: This method will not cache or persist the query results.
- Returns:
- List containing one or more associated PlanData 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.
-
getPlanDataSetOrFetch
Retrieval of associated PlanData entities (one to many). This corresponds to the OData navigation property PlanDataSet.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.
- Returns:
- List of associated PlanData 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.
-
getPlanDataSetIfPresent
Retrieval of associated PlanData entities (one to many). This corresponds to the OData navigation property PlanDataSet.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 PlanDataSet is already loaded, the result will contain
the PlanData entities. If not, an
Optionwith result stateemptyis returned.
-
setPlanDataSet
Overwrites the list of associated PlanData entities for the loaded navigation property PlanDataSet.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.
- Parameters:
value- List of PlanData entities.
-
addPlanDataSet
Adds elements to the list of associated PlanData entities. This corresponds to the OData navigation property PlanDataSet.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.
- Parameters:
entity- Array of PlanData entities.
-
builder
-
getWorkPackageUnitText
Constraints: Not nullable, Maximum length: 40Original property name from the Odata EDM: WorkPackageUnitText
- Returns:
- Work Package Unit Text
-
getWorkPackageType
Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: WorkPackageType
- Returns:
- Work Package Type
-
getUnitOfMeasure
Constraints: Not nullable, Maximum length: 30Original property name from the Odata EDM: UnitOfMeasure
- Returns:
- Unit Of Measure
-
getQuantity
Constraints: Not nullable, Maximum length: 15Original property name from the Odata EDM: Quantity
- Returns:
- Quantity
-
getChangedOn
Constraints: Not nullable, Precision: 7Original property name from the Odata EDM: ChangedOn
- Returns:
- Changed on
-
getProjectID
Constraints: Not nullable, Maximum length: 40Original property name from the Odata EDM: ProjectID
- Returns:
- Project ID
-
getChangedBy
Constraints: Not nullable, Maximum length: 12Original property name from the Odata EDM: ChangedBy
- Returns:
- Changed By
-
getWorkPackageID
(Key Field) Constraints: Not nullable, Maximum length: 50Original property name from the Odata EDM: WorkPackageID
- Returns:
- Work Package ID
-
getWorkPackageName
Constraints: Not nullable, Maximum length: 60Original property name from the Odata EDM: WorkPackageName
- Returns:
- Work Package Name
-
getWPStartDate
Constraints: Not nullable, Precision: 7Original property name from the Odata EDM: WPStartDate
- Returns:
- Work Package Start Date
-
getWPEndDate
Constraints: Not nullable, Precision: 7Original property name from the Odata EDM: WPEndDate
- Returns:
- Work Package EndDate
-
getProjectName
Constraints: Not nullable, Maximum length: 40Original property name from the Odata EDM: ProjectName
- Returns:
- Project Name
-
toString
- Overrides:
toStringin classVdmObject<Workpackage>
-
equals
- Overrides:
equalsin classVdmEntity<Workpackage>
-
canEqual
- Overrides:
canEqualin classVdmEntity<Workpackage>
-
hashCode
public int hashCode()- Overrides:
hashCodein classVdmEntity<Workpackage>
-