Class EngmntProjRsceDmndDistr
Original entity name from the Odata EDM: A_EngmntProjRsceDmndDistrType
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classHelper class to allow for fluent creation of EngmntProjRsceDmndDistr instances. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final EngmntProjRsceDmndDistrSelectableSelector for all available fields of EngmntProjRsceDmndDistr.static final EngmntProjRsceDmndDistrField<String>Use with available fluent helpers to apply the CalendarMonth field to query operations.static final EngmntProjRsceDmndDistrField<String>Use with available fluent helpers to apply the CalendarYear field to query operations.static final EngmntProjRsceDmndDistrField<String>Use with available fluent helpers to apply the Currency field to query operations.static final EngmntProjRsceDmndDistrField<BigDecimal>Use with available fluent helpers to apply the DemandCostAmt field to query operations.static final EngmntProjRsceDmndDistrField<BigDecimal>Use with available fluent helpers to apply the DemandRevAmt field to query operations.static final EngmntProjRsceDmndDistrField<BigDecimal>Use with available fluent helpers to apply the Quantity field to query operations.static final EngmntProjRsceDmndDistrField<String>Use with available fluent helpers to apply the ResourceDemand field to query operations.static final EngmntProjRsceDmndDistrOneToOneLink<EngmntProjRsceDmnd>Use with available fluent helpers to apply the to_ResourceDemand navigation property to query operations.static final EngmntProjRsceDmndDistrField<String>Use with available fluent helpers to apply the UnitOfMeasure field to query operations.static final EngmntProjRsceDmndDistrField<String>Use with available fluent helpers to apply the Version field to query operations.static final EngmntProjRsceDmndDistrField<String>Use with available fluent helpers to apply the WorkPackage field to query operations.Fields inherited from class com.sap.cloud.sdk.datamodel.odata.helper.VdmObject
changedOriginalFields -
Constructor Summary
ConstructorsConstructorDescriptionEngmntProjRsceDmndDistr(String workPackage, String resourceDemand, String version, String calendarMonth, String calendarYear, String unitOfMeasure, BigDecimal quantity, String currency, BigDecimal demandCostAmt, BigDecimal demandRevAmt, EngmntProjRsceDmnd toResourceDemand) -
Method Summary
Modifier and TypeMethodDescriptionvoidattachToService(String servicePath, HttpDestinationProperties destination) builder()protected booleanbooleanFetches the EngmntProjRsceDmnd entity (one to one) associated with this entity.static <T,DomainT>
EngmntProjRsceDmndDistrField<T>field(String fieldName, TypeConverter<T, DomainT> typeConverter) Use with available fluent helpers to apply an extension field to query operations.static <T> EngmntProjRsceDmndDistrField<T>Use with available fluent helpers to apply an extension field to query operations.protected void(Key Field) Constraints: Not nullable, Maximum length: 3(Key Field) Constraints: Not nullable, Maximum length: 4Constraints: Not nullable, Maximum length: 5protected StringConstraints: Not nullable, Precision: 18, Scale: 3Constraints: Not nullable, Precision: 18, Scale: 3protected StringgetKey()Constraints: Not nullable, Precision: 15, Scale: 3(Key Field) Constraints: Not nullable, Maximum length: 24io.vavr.control.Option<EngmntProjRsceDmnd>Retrieval of associated EngmntProjRsceDmnd entity (one to one).Retrieval of associated EngmntProjRsceDmnd entity (one to one).getType()Constraints: Not nullable, Maximum length: 3(Key Field) Constraints: Not nullable, Maximum length: 28(Key Field) Constraints: Not nullable, Maximum length: 50inthashCode()voidsetCalendarMonth(String calendarMonth) (Key Field) Constraints: Not nullable, Maximum length: 3voidsetCalendarYear(String calendarYear) (Key Field) Constraints: Not nullable, Maximum length: 4voidsetCurrency(String currency) Constraints: Not nullable, Maximum length: 5voidsetDemandCostAmt(BigDecimal demandCostAmt) Constraints: Not nullable, Precision: 18, Scale: 3voidsetDemandRevAmt(BigDecimal demandRevAmt) Constraints: Not nullable, Precision: 18, Scale: 3voidsetQuantity(BigDecimal quantity) Constraints: Not nullable, Precision: 15, Scale: 3voidOverwrites the associated EngmntProjRsceDmnd entity for the loaded navigation property to_ResourceDemand.voidsetResourceDemand(String resourceDemand) (Key Field) Constraints: Not nullable, Maximum length: 24protected voidsetServicePathForFetch(String servicePathForFetch) voidsetUnitOfMeasure(String unitOfMeasure) Constraints: Not nullable, Maximum length: 3voidsetVersion(String version) (Key Field) Constraints: Not nullable, Maximum length: 28voidsetWorkPackage(String workPackage) (Key Field) Constraints: Not nullable, Maximum length: 50toString()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 EngmntProjRsceDmndDistr. -
WORK_PACKAGE
Use with available fluent helpers to apply the WorkPackage field to query operations. -
RESOURCE_DEMAND
Use with available fluent helpers to apply the ResourceDemand field to query operations. -
VERSION
Use with available fluent helpers to apply the Version field to query operations. -
CALENDAR_MONTH
Use with available fluent helpers to apply the CalendarMonth field to query operations. -
CALENDAR_YEAR
Use with available fluent helpers to apply the CalendarYear 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. -
CURRENCY
Use with available fluent helpers to apply the Currency field to query operations. -
DEMAND_COST_AMT
Use with available fluent helpers to apply the DemandCostAmt field to query operations. -
DEMAND_REV_AMT
Use with available fluent helpers to apply the DemandRevAmt field to query operations. -
TO_RESOURCE_DEMAND
Use with available fluent helpers to apply the to_ResourceDemand navigation property to query operations.
-
-
Constructor Details
-
EngmntProjRsceDmndDistr
public EngmntProjRsceDmndDistr() -
EngmntProjRsceDmndDistr
public EngmntProjRsceDmndDistr(@Nullable String workPackage, @Nullable String resourceDemand, @Nullable String version, @Nullable String calendarMonth, @Nullable String calendarYear, @Nullable String unitOfMeasure, @Nullable BigDecimal quantity, @Nullable String currency, @Nullable BigDecimal demandCostAmt, @Nullable BigDecimal demandRevAmt, @Nullable EngmntProjRsceDmnd toResourceDemand)
-
-
Method Details
-
getType
- Specified by:
getTypein classVdmObject<EngmntProjRsceDmndDistr>
-
setWorkPackage
(Key Field) Constraints: Not nullable, Maximum length: 50Original property name from the Odata EDM: WorkPackage
- Parameters:
workPackage- Work Package ID
-
setResourceDemand
(Key Field) Constraints: Not nullable, Maximum length: 24Original property name from the Odata EDM: ResourceDemand
- Parameters:
resourceDemand- Resource Demand ID
-
setVersion
(Key Field) Constraints: Not nullable, Maximum length: 28Original property name from the Odata EDM: Version
- Parameters:
version- Plan Version ID
-
setCalendarMonth
(Key Field) Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: CalendarMonth
- Parameters:
calendarMonth- Calendar Month
-
setCalendarYear
(Key Field) Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: CalendarYear
- Parameters:
calendarYear- Calendar Year
-
setUnitOfMeasure
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: UnitOfMeasure
- Parameters:
unitOfMeasure- Unit of Measure
-
setQuantity
Constraints: Not nullable, Precision: 15, Scale: 3Original property name from the Odata EDM: Quantity
- Parameters:
quantity- Total Quantity
-
setCurrency
Constraints: Not nullable, Maximum length: 5Original property name from the Odata EDM: Currency
- Parameters:
currency- Plan Currency
-
setDemandCostAmt
Constraints: Not nullable, Precision: 18, Scale: 3Original property name from the Odata EDM: DemandCostAmt
- Parameters:
demandCostAmt- Demand Cost Amount
-
setDemandRevAmt
Constraints: Not nullable, Precision: 18, Scale: 3Original property name from the Odata EDM: DemandRevAmt
- Parameters:
demandRevAmt- Demand Revenue Amount
-
getEntityCollection
- Specified by:
getEntityCollectionin classVdmEntity<EngmntProjRsceDmndDistr>
-
getKey
- Overrides:
getKeyin classVdmObject<EngmntProjRsceDmndDistr>
-
toMapOfFields
- Overrides:
toMapOfFieldsin classVdmObject<EngmntProjRsceDmndDistr>
-
fromMap
- Overrides:
fromMapin classVdmObject<EngmntProjRsceDmndDistr>
-
field
@Nonnull public static <T> EngmntProjRsceDmndDistrField<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> EngmntProjRsceDmndDistrField<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<EngmntProjRsceDmndDistr>
-
setServicePathForFetch
- Overrides:
setServicePathForFetchin classVdmEntity<EngmntProjRsceDmndDistr>
-
attachToService
public void attachToService(@Nullable String servicePath, @Nonnull HttpDestinationProperties destination) - Overrides:
attachToServicein classVdmEntity<EngmntProjRsceDmndDistr>
-
getDefaultServicePath
- Overrides:
getDefaultServicePathin classVdmEntity<EngmntProjRsceDmndDistr>
-
fetchResourceDemand
Fetches the EngmntProjRsceDmnd entity (one to one) 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:
- The single associated EngmntProjRsceDmnd 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.
-
getResourceDemandOrFetch
Retrieval of associated EngmntProjRsceDmnd entity (one to one). This corresponds to the OData navigation property to_ResourceDemand.If the navigation property to_ResourceDemand of a queried EngmntProjRsceDmndDistr 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 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.
-
getResourceDemandIfPresent
Retrieval of associated EngmntProjRsceDmnd entity (one to one). This corresponds to the OData navigation property to_ResourceDemand.If the navigation property for an entity EngmntProjRsceDmndDistr 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 entity. If not, an
Optionwith result stateemptyis returned.
-
setResourceDemand
Overwrites the associated EngmntProjRsceDmnd entity for the loaded navigation property to_ResourceDemand.- Parameters:
value- New EngmntProjRsceDmnd entity.
-
builder
-
getWorkPackage
(Key Field) Constraints: Not nullable, Maximum length: 50Original property name from the Odata EDM: WorkPackage
- Returns:
- Work Package ID
-
getResourceDemand
(Key Field) Constraints: Not nullable, Maximum length: 24Original property name from the Odata EDM: ResourceDemand
- Returns:
- Resource Demand ID
-
getVersion
(Key Field) Constraints: Not nullable, Maximum length: 28Original property name from the Odata EDM: Version
- Returns:
- Plan Version ID
-
getCalendarMonth
(Key Field) Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: CalendarMonth
- Returns:
- Calendar Month
-
getCalendarYear
(Key Field) Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: CalendarYear
- Returns:
- Calendar Year
-
getUnitOfMeasure
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: UnitOfMeasure
- Returns:
- Unit of Measure
-
getQuantity
Constraints: Not nullable, Precision: 15, Scale: 3Original property name from the Odata EDM: Quantity
- Returns:
- Total Quantity
-
getCurrency
Constraints: Not nullable, Maximum length: 5Original property name from the Odata EDM: Currency
- Returns:
- Plan Currency
-
getDemandCostAmt
Constraints: Not nullable, Precision: 18, Scale: 3Original property name from the Odata EDM: DemandCostAmt
- Returns:
- Demand Cost Amount
-
getDemandRevAmt
Constraints: Not nullable, Precision: 18, Scale: 3Original property name from the Odata EDM: DemandRevAmt
- Returns:
- Demand Revenue Amount
-
toString
- Overrides:
toStringin classVdmObject<EngmntProjRsceDmndDistr>
-
equals
- Overrides:
equalsin classVdmEntity<EngmntProjRsceDmndDistr>
-
canEqual
- Overrides:
canEqualin classVdmEntity<EngmntProjRsceDmndDistr>
-
hashCode
public int hashCode()- Overrides:
hashCodein classVdmEntity<EngmntProjRsceDmndDistr>
-