Class ProjectDemandResource
Original entity name from the Odata EDM: A_ProjectDemandResource_Type
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classHelper class to allow for fluent creation of ProjectDemandResource instances. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ProjectDemandResourceField<String>Use with available fluent helpers to apply the ActivityType field to query operations.static final ProjectDemandResourceSelectableSelector for all available fields of ProjectDemandResource.static final ProjectDemandResourceField<String>Use with available fluent helpers to apply the CostCenter field to query operations.static final ProjectDemandResourceField<String>Use with available fluent helpers to apply the ProjDmndAssgmtStatus field to query operations.static final ProjectDemandResourceField<String>Use with available fluent helpers to apply the ProjDmndBillingControlCategory field to query operations.static final ProjectDemandResourceField<String>Use with available fluent helpers to apply the ProjDmndRequestedDeliveryOrg field to query operations.static final ProjectDemandResourceField<UUID>Use with available fluent helpers to apply the ProjectDemandUUID field to query operations.static final ProjectDemandResourceField<UUID>Use with available fluent helpers to apply the ProjectDemandWorkUUID field to query operations.static final ProjectDemandResourceField<String>Use with available fluent helpers to apply the ProjectElementWorkItem field to query operations.static final ProjectDemandResourceLink<ProjDmndResourceAssignment>Use with available fluent helpers to apply the to_ResourceAssignment navigation property to query operations.static final ProjectDemandResourceLink<ProjectDemandResourceRequest>Use with available fluent helpers to apply the to_ResourceRequest navigation property to query operations.static final ProjectDemandResourceOneToOneLink<ProjectDemand>Use with available fluent helpers to apply the to_Root navigation property to query operations.Fields inherited from class com.sap.cloud.sdk.datamodel.odata.helper.VdmObject
changedOriginalFields -
Constructor Summary
ConstructorsConstructorDescriptionProjectDemandResource(UUID projectDemandWorkUUID, UUID projectDemandUUID, String costCenter, String activityType, String projDmndAssgmtStatus, String projectElementWorkItem, String projDmndBillingControlCategory, String projDmndRequestedDeliveryOrg, ProjectDemand toRoot, List<ProjDmndResourceAssignment> toResourceAssignment, List<ProjectDemandResourceRequest> toResourceRequest) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddResourceAssignment(ProjDmndResourceAssignment... entity) Adds elements to the list of associated ProjDmndResourceAssignment entities.voidaddResourceRequest(ProjectDemandResourceRequest... entity) Adds elements to the list of associated ProjectDemandResourceRequest entities.voidattachToService(String servicePath, HttpDestinationProperties destination) builder()protected booleanbooleanFetches the ProjDmndResourceAssignment entities (one to many) associated with this entity.Fetches the ProjectDemandResourceRequest entities (one to many) associated with this entity.Fetches the ProjectDemand entity (one to one) associated with this entity.static <T,DomainT>
ProjectDemandResourceField<T>field(String fieldName, TypeConverter<T, DomainT> typeConverter) Use with available fluent helpers to apply an extension field to query operations.static <T> ProjectDemandResourceField<T>Use with available fluent helpers to apply an extension field to query operations.protected voidConstraints: Not nullable, Maximum length: 6Constraints: Not nullable, Maximum length: 10protected Stringprotected StringgetKey()Constraints: Not nullable, Maximum length: 1Constraints: Not nullable, Maximum length: 8Constraints: Not nullable, Maximum length: 5Constraints: none(Key Field) Constraints: Not nullableConstraints: Not nullable, Maximum length: 10io.vavr.control.Option<List<ProjDmndResourceAssignment>>Retrieval of associated ProjDmndResourceAssignment entities (one to many).Retrieval of associated ProjDmndResourceAssignment entities (one to many).io.vavr.control.Option<List<ProjectDemandResourceRequest>>Retrieval of associated ProjectDemandResourceRequest entities (one to many).Retrieval of associated ProjectDemandResourceRequest entities (one to many).io.vavr.control.Option<ProjectDemand>Retrieval of associated ProjectDemand entity (one to one).Retrieval of associated ProjectDemand entity (one to one).getType()inthashCode()voidsetActivityType(String activityType) Constraints: Not nullable, Maximum length: 6voidsetCostCenter(String costCenter) Constraints: Not nullable, Maximum length: 10voidsetProjDmndAssgmtStatus(String projDmndAssgmtStatus) Constraints: Not nullable, Maximum length: 1voidsetProjDmndBillingControlCategory(String projDmndBillingControlCategory) Constraints: Not nullable, Maximum length: 8voidsetProjDmndRequestedDeliveryOrg(String projDmndRequestedDeliveryOrg) Constraints: Not nullable, Maximum length: 5voidsetProjectDemandUUID(UUID projectDemandUUID) Constraints: nonevoidsetProjectDemandWorkUUID(UUID projectDemandWorkUUID) (Key Field) Constraints: Not nullablevoidsetProjectElementWorkItem(String projectElementWorkItem) Constraints: Not nullable, Maximum length: 10voidOverwrites the list of associated ProjDmndResourceAssignment entities for the loaded navigation property to_ResourceAssignment.voidOverwrites the list of associated ProjectDemandResourceRequest entities for the loaded navigation property to_ResourceRequest.voidsetRoot(ProjectDemand value) Overwrites the associated ProjectDemand entity for the loaded navigation property to_Root.protected voidsetServicePathForFetch(String servicePathForFetch) toString()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 ProjectDemandResource. -
PROJECT_DEMAND_WORK_UUID
Use with available fluent helpers to apply the ProjectDemandWorkUUID field to query operations. -
PROJECT_DEMAND_UUID
Use with available fluent helpers to apply the ProjectDemandUUID field to query operations. -
COST_CENTER
Use with available fluent helpers to apply the CostCenter field to query operations. -
ACTIVITY_TYPE
Use with available fluent helpers to apply the ActivityType field to query operations. -
PROJ_DMND_ASSGMT_STATUS
Use with available fluent helpers to apply the ProjDmndAssgmtStatus field to query operations. -
PROJECT_ELEMENT_WORK_ITEM
Use with available fluent helpers to apply the ProjectElementWorkItem field to query operations. -
PROJ_DMND_BILLING_CONTROL_CATEGORY
Use with available fluent helpers to apply the ProjDmndBillingControlCategory field to query operations. -
PROJ_DMND_REQUESTED_DELIVERY_ORG
Use with available fluent helpers to apply the ProjDmndRequestedDeliveryOrg field to query operations. -
TO_ROOT
Use with available fluent helpers to apply the to_Root navigation property to query operations. -
TO_RESOURCE_ASSIGNMENT
Use with available fluent helpers to apply the to_ResourceAssignment navigation property to query operations. -
TO_RESOURCE_REQUEST
Use with available fluent helpers to apply the to_ResourceRequest navigation property to query operations.
-
-
Constructor Details
-
ProjectDemandResource
public ProjectDemandResource() -
ProjectDemandResource
public ProjectDemandResource(@Nullable UUID projectDemandWorkUUID, @Nullable UUID projectDemandUUID, @Nullable String costCenter, @Nullable String activityType, @Nullable String projDmndAssgmtStatus, @Nullable String projectElementWorkItem, @Nullable String projDmndBillingControlCategory, @Nullable String projDmndRequestedDeliveryOrg, @Nullable ProjectDemand toRoot, List<ProjDmndResourceAssignment> toResourceAssignment, List<ProjectDemandResourceRequest> toResourceRequest)
-
-
Method Details
-
getType
- Specified by:
getTypein classVdmObject<ProjectDemandResource>
-
setProjectDemandWorkUUID
(Key Field) Constraints: Not nullableOriginal property name from the Odata EDM: ProjectDemandWorkUUID
- Parameters:
projectDemandWorkUUID- Global Identification of a Resource Demand
-
setProjectDemandUUID
Constraints: noneOriginal property name from the Odata EDM: ProjectDemandUUID
- Parameters:
projectDemandUUID- Global Identification of a Project Demand
-
setCostCenter
Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: CostCenter
- Parameters:
costCenter- Cost Center
-
setActivityType
Constraints: Not nullable, Maximum length: 6Original property name from the Odata EDM: ActivityType
- Parameters:
activityType- Activity Type
-
setProjDmndAssgmtStatus
Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: ProjDmndAssgmtStatus
- Parameters:
projDmndAssgmtStatus- Assignment Status of a Resource Demand
-
setProjectElementWorkItem
Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: ProjectElementWorkItem
- Parameters:
projectElementWorkItem- ID of the Work Item to Which a Resource Demand is Related
-
setProjDmndBillingControlCategory
Constraints: Not nullable, Maximum length: 8Original property name from the Odata EDM: ProjDmndBillingControlCategory
- Parameters:
projDmndBillingControlCategory- Billing Control Category
-
setProjDmndRequestedDeliveryOrg
Constraints: Not nullable, Maximum length: 5Original property name from the Odata EDM: ProjDmndRequestedDeliveryOrg
- Parameters:
projDmndRequestedDeliveryOrg- Delivery Organization from Which a Resource is Required
-
getEntityCollection
- Specified by:
getEntityCollectionin classVdmEntity<ProjectDemandResource>
-
getKey
- Overrides:
getKeyin classVdmObject<ProjectDemandResource>
-
toMapOfFields
- Overrides:
toMapOfFieldsin classVdmObject<ProjectDemandResource>
-
fromMap
- Overrides:
fromMapin classVdmObject<ProjectDemandResource>
-
field
@Nonnull public static <T> ProjectDemandResourceField<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> ProjectDemandResourceField<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<ProjectDemandResource>
-
setServicePathForFetch
- Overrides:
setServicePathForFetchin classVdmEntity<ProjectDemandResource>
-
attachToService
public void attachToService(@Nullable String servicePath, @Nonnull HttpDestinationProperties destination) - Overrides:
attachToServicein classVdmEntity<ProjectDemandResource>
-
getDefaultServicePath
- Overrides:
getDefaultServicePathin classVdmEntity<ProjectDemandResource>
-
fetchRoot
Fetches the ProjectDemand entity (one to one) associated with this entity. This corresponds to the OData navigation property to_Root.Please note: This method will not cache or persist the query results.
- Returns:
- The single associated ProjectDemand 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.
-
getRootOrFetch
Retrieval of associated ProjectDemand entity (one to one). This corresponds to the OData navigation property to_Root.If the navigation property to_Root of a queried ProjectDemandResource 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 ProjectDemand 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.
-
getRootIfPresent
Retrieval of associated ProjectDemand entity (one to one). This corresponds to the OData navigation property to_Root.If the navigation property for an entity ProjectDemandResource 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_Root is already loaded, the result will contain the
ProjectDemand entity. If not, an
Optionwith result stateemptyis returned.
-
setRoot
Overwrites the associated ProjectDemand entity for the loaded navigation property to_Root.- Parameters:
value- New ProjectDemand entity.
-
fetchResourceAssignment
Fetches the ProjDmndResourceAssignment entities (one to many) associated with this entity. This corresponds to the OData navigation property to_ResourceAssignment.Please note: This method will not cache or persist the query results.
- Returns:
- List containing one or more associated ProjDmndResourceAssignment 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.
-
getResourceAssignmentOrFetch
Retrieval of associated ProjDmndResourceAssignment entities (one to many). This corresponds to the OData navigation property to_ResourceAssignment.If the navigation property to_ResourceAssignment of a queried ProjectDemandResource 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 ProjDmndResourceAssignment 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.
-
getResourceAssignmentIfPresent
@Nonnull public io.vavr.control.Option<List<ProjDmndResourceAssignment>> getResourceAssignmentIfPresent()Retrieval of associated ProjDmndResourceAssignment entities (one to many). This corresponds to the OData navigation property to_ResourceAssignment.If the navigation property for an entity ProjectDemandResource 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_ResourceAssignment is already loaded, the result
will contain the ProjDmndResourceAssignment entities. If not, an
Optionwith result stateemptyis returned.
-
setResourceAssignment
Overwrites the list of associated ProjDmndResourceAssignment entities for the loaded navigation property to_ResourceAssignment.If the navigation property to_ResourceAssignment of a queried ProjectDemandResource 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 ProjDmndResourceAssignment entities.
-
addResourceAssignment
Adds elements to the list of associated ProjDmndResourceAssignment entities. This corresponds to the OData navigation property to_ResourceAssignment.If the navigation property to_ResourceAssignment of a queried ProjectDemandResource 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 ProjDmndResourceAssignment entities.
-
fetchResourceRequest
Fetches the ProjectDemandResourceRequest entities (one to many) associated with this entity. This corresponds to the OData navigation property to_ResourceRequest.Please note: This method will not cache or persist the query results.
- Returns:
- List containing one or more associated ProjectDemandResourceRequest 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.
-
getResourceRequestOrFetch
Retrieval of associated ProjectDemandResourceRequest entities (one to many). This corresponds to the OData navigation property to_ResourceRequest.If the navigation property to_ResourceRequest of a queried ProjectDemandResource 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 ProjectDemandResourceRequest 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.
-
getResourceRequestIfPresent
@Nonnull public io.vavr.control.Option<List<ProjectDemandResourceRequest>> getResourceRequestIfPresent()Retrieval of associated ProjectDemandResourceRequest entities (one to many). This corresponds to the OData navigation property to_ResourceRequest.If the navigation property for an entity ProjectDemandResource 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_ResourceRequest is already loaded, the result will
contain the ProjectDemandResourceRequest entities. If not, an
Optionwith result stateemptyis returned.
-
setResourceRequest
Overwrites the list of associated ProjectDemandResourceRequest entities for the loaded navigation property to_ResourceRequest.If the navigation property to_ResourceRequest of a queried ProjectDemandResource 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 ProjectDemandResourceRequest entities.
-
addResourceRequest
Adds elements to the list of associated ProjectDemandResourceRequest entities. This corresponds to the OData navigation property to_ResourceRequest.If the navigation property to_ResourceRequest of a queried ProjectDemandResource 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 ProjectDemandResourceRequest entities.
-
builder
-
getProjectDemandWorkUUID
(Key Field) Constraints: Not nullableOriginal property name from the Odata EDM: ProjectDemandWorkUUID
- Returns:
- Global Identification of a Resource Demand
-
getProjectDemandUUID
Constraints: noneOriginal property name from the Odata EDM: ProjectDemandUUID
- Returns:
- Global Identification of a Project Demand
-
getCostCenter
Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: CostCenter
- Returns:
- Cost Center
-
getActivityType
Constraints: Not nullable, Maximum length: 6Original property name from the Odata EDM: ActivityType
- Returns:
- Activity Type
-
getProjDmndAssgmtStatus
Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: ProjDmndAssgmtStatus
- Returns:
- Assignment Status of a Resource Demand
-
getProjectElementWorkItem
Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: ProjectElementWorkItem
- Returns:
- ID of the Work Item to Which a Resource Demand is Related
-
getProjDmndBillingControlCategory
Constraints: Not nullable, Maximum length: 8Original property name from the Odata EDM: ProjDmndBillingControlCategory
- Returns:
- Billing Control Category
-
getProjDmndRequestedDeliveryOrg
Constraints: Not nullable, Maximum length: 5Original property name from the Odata EDM: ProjDmndRequestedDeliveryOrg
- Returns:
- Delivery Organization from Which a Resource is Required
-
toString
- Overrides:
toStringin classVdmObject<ProjectDemandResource>
-
equals
- Overrides:
equalsin classVdmEntity<ProjectDemandResource>
-
canEqual
- Overrides:
canEqualin classVdmEntity<ProjectDemandResource>
-
hashCode
public int hashCode()- Overrides:
hashCodein classVdmEntity<ProjectDemandResource>
-