Class ProjectDemandServiceSupply
Original entity name from the Odata EDM: A_ProjectDemandServiceSupply_Type
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classHelper class to allow for fluent creation of ProjectDemandServiceSupply instances. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ProjectDemandServiceSupplySelectableSelector for all available fields of ProjectDemandServiceSupply.static final ProjectDemandServiceSupplyField<UUID>Use with available fluent helpers to apply the ProjectDemandServiceSupplyUUID field to query operations.static final ProjectDemandServiceSupplyField<UUID>Use with available fluent helpers to apply the ProjectDemandServiceUUID field to query operations.static final ProjectDemandServiceSupplyField<UUID>Use with available fluent helpers to apply the ProjectDemandUUID field to query operations.static final ProjectDemandServiceSupplyField<String>Use with available fluent helpers to apply the PurchaseRequisition field to query operations.static final ProjectDemandServiceSupplyField<String>Use with available fluent helpers to apply the PurchaseRequisitionItem field to query operations.static final ProjectDemandServiceSupplyOneToOneLink<ProjectDemand>Use with available fluent helpers to apply the to_Root navigation property to query operations.static final ProjectDemandServiceSupplyOneToOneLink<ProjectDemandService>Use with available fluent helpers to apply the to_Service navigation property to query operations.Fields inherited from class com.sap.cloud.sdk.datamodel.odata.helper.VdmObject
changedOriginalFields -
Constructor Summary
ConstructorsConstructorDescriptionProjectDemandServiceSupply(UUID projectDemandServiceSupplyUUID, UUID projectDemandServiceUUID, UUID projectDemandUUID, String purchaseRequisition, String purchaseRequisitionItem, ProjectDemandService toService, ProjectDemand toRoot) -
Method Summary
Modifier and TypeMethodDescriptionvoidattachToService(String servicePath, HttpDestinationProperties destination) builder()protected booleanbooleanFetches the ProjectDemand entity (one to one) associated with this entity.Fetches the ProjectDemandService entity (one to one) associated with this entity.static <T,DomainT>
ProjectDemandServiceSupplyField<T>field(String fieldName, TypeConverter<T, DomainT> typeConverter) Use with available fluent helpers to apply an extension field to query operations.static <T> ProjectDemandServiceSupplyField<T>Use with available fluent helpers to apply an extension field to query operations.protected voidprotected Stringprotected StringgetKey()(Key Field) Constraints: Not nullableConstraints: noneConstraints: noneConstraints: Not nullable, Maximum length: 10Constraints: Not nullable, Maximum length: 5io.vavr.control.Option<ProjectDemand>Retrieval of associated ProjectDemand entity (one to one).Retrieval of associated ProjectDemand entity (one to one).io.vavr.control.Option<ProjectDemandService>Retrieval of associated ProjectDemandService entity (one to one).Retrieval of associated ProjectDemandService entity (one to one).getType()inthashCode()voidsetProjectDemandServiceSupplyUUID(UUID projectDemandServiceSupplyUUID) (Key Field) Constraints: Not nullablevoidsetProjectDemandServiceUUID(UUID projectDemandServiceUUID) Constraints: nonevoidsetProjectDemandUUID(UUID projectDemandUUID) Constraints: nonevoidsetPurchaseRequisition(String purchaseRequisition) Constraints: Not nullable, Maximum length: 10voidsetPurchaseRequisitionItem(String purchaseRequisitionItem) Constraints: Not nullable, Maximum length: 5voidsetRoot(ProjectDemand value) Overwrites the associated ProjectDemand entity for the loaded navigation property to_Root.voidsetService(ProjectDemandService value) Overwrites the associated ProjectDemandService entity for the loaded navigation property to_Service.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 ProjectDemandServiceSupply. -
PROJECT_DEMAND_SERVICE_SUPPLY_UUID
Use with available fluent helpers to apply the ProjectDemandServiceSupplyUUID field to query operations. -
PROJECT_DEMAND_SERVICE_UUID
Use with available fluent helpers to apply the ProjectDemandServiceUUID field to query operations. -
PROJECT_DEMAND_UUID
Use with available fluent helpers to apply the ProjectDemandUUID field to query operations. -
PURCHASE_REQUISITION
Use with available fluent helpers to apply the PurchaseRequisition field to query operations. -
PURCHASE_REQUISITION_ITEM
Use with available fluent helpers to apply the PurchaseRequisitionItem field to query operations. -
TO_SERVICE
Use with available fluent helpers to apply the to_Service navigation property to query operations. -
TO_ROOT
Use with available fluent helpers to apply the to_Root navigation property to query operations.
-
-
Constructor Details
-
ProjectDemandServiceSupply
public ProjectDemandServiceSupply() -
ProjectDemandServiceSupply
public ProjectDemandServiceSupply(@Nullable UUID projectDemandServiceSupplyUUID, @Nullable UUID projectDemandServiceUUID, @Nullable UUID projectDemandUUID, @Nullable String purchaseRequisition, @Nullable String purchaseRequisitionItem, @Nullable ProjectDemandService toService, @Nullable ProjectDemand toRoot)
-
-
Method Details
-
getType
- Specified by:
getTypein classVdmObject<ProjectDemandServiceSupply>
-
setProjectDemandServiceSupplyUUID
(Key Field) Constraints: Not nullableOriginal property name from the Odata EDM: ProjectDemandServiceSupplyUUID
- Parameters:
projectDemandServiceSupplyUUID- Global Identification for Service Supply
-
setProjectDemandServiceUUID
Constraints: noneOriginal property name from the Odata EDM: ProjectDemandServiceUUID
- Parameters:
projectDemandServiceUUID- Global Identification for Service Demand
-
setProjectDemandUUID
Constraints: noneOriginal property name from the Odata EDM: ProjectDemandUUID
- Parameters:
projectDemandUUID- Global Identification of a Project Demand
-
setPurchaseRequisition
Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: PurchaseRequisition
- Parameters:
purchaseRequisition- Purchase Requisition Number
-
setPurchaseRequisitionItem
Constraints: Not nullable, Maximum length: 5Original property name from the Odata EDM: PurchaseRequisitionItem
- Parameters:
purchaseRequisitionItem- Purchase Requisition Item Number
-
getEntityCollection
- Specified by:
getEntityCollectionin classVdmEntity<ProjectDemandServiceSupply>
-
getKey
- Overrides:
getKeyin classVdmObject<ProjectDemandServiceSupply>
-
toMapOfFields
- Overrides:
toMapOfFieldsin classVdmObject<ProjectDemandServiceSupply>
-
fromMap
- Overrides:
fromMapin classVdmObject<ProjectDemandServiceSupply>
-
field
@Nonnull public static <T> ProjectDemandServiceSupplyField<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> ProjectDemandServiceSupplyField<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<ProjectDemandServiceSupply>
-
setServicePathForFetch
- Overrides:
setServicePathForFetchin classVdmEntity<ProjectDemandServiceSupply>
-
attachToService
public void attachToService(@Nullable String servicePath, @Nonnull HttpDestinationProperties destination) - Overrides:
attachToServicein classVdmEntity<ProjectDemandServiceSupply>
-
getDefaultServicePath
- Overrides:
getDefaultServicePathin classVdmEntity<ProjectDemandServiceSupply>
-
fetchService
Fetches the ProjectDemandService entity (one to one) associated with this entity. This corresponds to the OData navigation property to_Service.Please note: This method will not cache or persist the query results.
- Returns:
- The single associated ProjectDemandService 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.
-
getServiceOrFetch
Retrieval of associated ProjectDemandService entity (one to one). This corresponds to the OData navigation property to_Service.If the navigation property to_Service of a queried ProjectDemandServiceSupply 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 ProjectDemandService 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.
-
getServiceIfPresent
Retrieval of associated ProjectDemandService entity (one to one). This corresponds to the OData navigation property to_Service.If the navigation property for an entity ProjectDemandServiceSupply 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_Service is already loaded, the result will contain
the ProjectDemandService entity. If not, an
Optionwith result stateemptyis returned.
-
setService
Overwrites the associated ProjectDemandService entity for the loaded navigation property to_Service.- Parameters:
value- New ProjectDemandService entity.
-
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 ProjectDemandServiceSupply 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 ProjectDemandServiceSupply 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.
-
builder
-
getProjectDemandServiceSupplyUUID
(Key Field) Constraints: Not nullableOriginal property name from the Odata EDM: ProjectDemandServiceSupplyUUID
- Returns:
- Global Identification for Service Supply
-
getProjectDemandServiceUUID
Constraints: noneOriginal property name from the Odata EDM: ProjectDemandServiceUUID
- Returns:
- Global Identification for Service Demand
-
getProjectDemandUUID
Constraints: noneOriginal property name from the Odata EDM: ProjectDemandUUID
- Returns:
- Global Identification of a Project Demand
-
getPurchaseRequisition
Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: PurchaseRequisition
- Returns:
- Purchase Requisition Number
-
getPurchaseRequisitionItem
Constraints: Not nullable, Maximum length: 5Original property name from the Odata EDM: PurchaseRequisitionItem
- Returns:
- Purchase Requisition Item Number
-
toString
- Overrides:
toStringin classVdmObject<ProjectDemandServiceSupply>
-
equals
- Overrides:
equalsin classVdmEntity<ProjectDemandServiceSupply>
-
canEqual
- Overrides:
canEqualin classVdmEntity<ProjectDemandServiceSupply>
-
hashCode
public int hashCode()- Overrides:
hashCodein classVdmEntity<ProjectDemandServiceSupply>
-