Class DemandAdjustments
Original entity name from the Odata EDM: A_DemandAdjustmentsType
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classHelper class to allow for fluent creation of DemandAdjustments instances. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DemandAdjustmentsField<BigDecimal>Use with available fluent helpers to apply the AdjustedAverageDailyUsage field to query operations.static final DemandAdjustmentsSelectableSelector for all available fields of DemandAdjustments.static final DemandAdjustmentsField<BigDecimal>Use with available fluent helpers to apply the AverageDailyUsage field to query operations.static final DemandAdjustmentsField<String>Use with available fluent helpers to apply the AvgDailyUsageUnit field to query operations.static final DemandAdjustmentsField<BigDecimal>Use with available fluent helpers to apply the DemandAdjustmentFactor field to query operations.static final DemandAdjustmentsField<String>Use with available fluent helpers to apply the Material field to query operations.static final DemandAdjustmentsField<String>Use with available fluent helpers to apply the MRPArea field to query operations.static final DemandAdjustmentsField<String>Use with available fluent helpers to apply the Plant field to query operations.static final DemandAdjustmentsField<LocalDateTime>Use with available fluent helpers to apply the ProposalDmndAdjmtFctrEndDate field to query operations.static final DemandAdjustmentsField<LocalDateTime>Use with available fluent helpers to apply the ProposalDmndAdjmtFctrStartDate field to query operations.static final DemandAdjustmentsField<LocalDateTime>Use with available fluent helpers to apply the ProposalStartDate field to query operations.static final DemandAdjustmentsField<String>Use with available fluent helpers to apply the ProposalVersion field to query operations.static final DemandAdjustmentsOneToOneLink<ProposalHeader>Use with available fluent helpers to apply the to_ProposalHdr navigation property to query operations.Fields inherited from class com.sap.cloud.sdk.datamodel.odata.helper.VdmObject
changedOriginalFields -
Constructor Summary
ConstructorsConstructorDescriptionDemandAdjustments(String material, String plant, String mRPArea, LocalDateTime proposalStartDate, String proposalVersion, LocalDateTime proposalDmndAdjmtFctrStartDate, LocalDateTime proposalDmndAdjmtFctrEndDate, BigDecimal demandAdjustmentFactor, BigDecimal averageDailyUsage, BigDecimal adjustedAverageDailyUsage, String avgDailyUsageUnit, ProposalHeader toProposalHdr) -
Method Summary
Modifier and TypeMethodDescriptionvoidattachToService(String servicePath, HttpDestinationProperties destination) builder()protected booleanbooleanFetches the ProposalHeader entity (one to one) associated with this entity.static <T,DomainT>
DemandAdjustmentsField<T>field(String fieldName, TypeConverter<T, DomainT> typeConverter) Use with available fluent helpers to apply an extension field to query operations.static <T> DemandAdjustmentsField<T>Use with available fluent helpers to apply an extension field to query operations.protected voidConstraints: Not nullable, Precision: 13, Scale: 3Constraints: Not nullable, Precision: 13, Scale: 3Constraints: Not nullable, Maximum length: 3protected StringConstraints: Not nullable, Precision: 4, Scale: 2protected StringgetKey()(Key Field) Constraints: Not nullable, Maximum length: 18(Key Field) Constraints: Not nullable, Maximum length: 10getPlant()(Key Field) Constraints: Not nullable, Maximum length: 4Constraints: Not nullable, Precision: 0(Key Field) Constraints: Not nullable, Precision: 0io.vavr.control.Option<ProposalHeader>Retrieval of associated ProposalHeader entity (one to one).Retrieval of associated ProposalHeader entity (one to one).(Key Field) Constraints: Not nullable, Precision: 0(Key Field) Constraints: Not nullable, Maximum length: 8getType()inthashCode()voidsetAdjustedAverageDailyUsage(BigDecimal adjustedAverageDailyUsage) Constraints: Not nullable, Precision: 13, Scale: 3voidsetAverageDailyUsage(BigDecimal averageDailyUsage) Constraints: Not nullable, Precision: 13, Scale: 3voidsetAvgDailyUsageUnit(String avgDailyUsageUnit) Constraints: Not nullable, Maximum length: 3voidsetDemandAdjustmentFactor(BigDecimal demandAdjustmentFactor) Constraints: Not nullable, Precision: 4, Scale: 2voidsetMaterial(String material) (Key Field) Constraints: Not nullable, Maximum length: 18voidsetMRPArea(String mRPArea) (Key Field) Constraints: Not nullable, Maximum length: 10void(Key Field) Constraints: Not nullable, Maximum length: 4voidsetProposalDmndAdjmtFctrEndDate(LocalDateTime proposalDmndAdjmtFctrEndDate) Constraints: Not nullable, Precision: 0voidsetProposalDmndAdjmtFctrStartDate(LocalDateTime proposalDmndAdjmtFctrStartDate) (Key Field) Constraints: Not nullable, Precision: 0voidsetProposalHdr(ProposalHeader value) Overwrites the associated ProposalHeader entity for the loaded navigation property to_ProposalHdr.voidsetProposalStartDate(LocalDateTime proposalStartDate) (Key Field) Constraints: Not nullable, Precision: 0voidsetProposalVersion(String proposalVersion) (Key Field) Constraints: Not nullable, Maximum length: 8protected 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 DemandAdjustments. -
MATERIAL
Use with available fluent helpers to apply the Material field to query operations. -
PLANT
Use with available fluent helpers to apply the Plant field to query operations. -
MRP_AREA
Use with available fluent helpers to apply the MRPArea field to query operations. -
PROPOSAL_START_DATE
Use with available fluent helpers to apply the ProposalStartDate field to query operations. -
PROPOSAL_VERSION
Use with available fluent helpers to apply the ProposalVersion field to query operations. -
PROPOSAL_DMND_ADJMT_FCTR_START_DATE
Use with available fluent helpers to apply the ProposalDmndAdjmtFctrStartDate field to query operations. -
PROPOSAL_DMND_ADJMT_FCTR_END_DATE
Use with available fluent helpers to apply the ProposalDmndAdjmtFctrEndDate field to query operations. -
DEMAND_ADJUSTMENT_FACTOR
Use with available fluent helpers to apply the DemandAdjustmentFactor field to query operations. -
AVERAGE_DAILY_USAGE
Use with available fluent helpers to apply the AverageDailyUsage field to query operations. -
ADJUSTED_AVERAGE_DAILY_USAGE
Use with available fluent helpers to apply the AdjustedAverageDailyUsage field to query operations. -
AVG_DAILY_USAGE_UNIT
Use with available fluent helpers to apply the AvgDailyUsageUnit field to query operations. -
TO_PROPOSAL_HDR
Use with available fluent helpers to apply the to_ProposalHdr navigation property to query operations.
-
-
Constructor Details
-
DemandAdjustments
public DemandAdjustments() -
DemandAdjustments
public DemandAdjustments(@Nullable String material, @Nullable String plant, @Nullable String mRPArea, @Nullable LocalDateTime proposalStartDate, @Nullable String proposalVersion, @Nullable LocalDateTime proposalDmndAdjmtFctrStartDate, @Nullable LocalDateTime proposalDmndAdjmtFctrEndDate, @Nullable BigDecimal demandAdjustmentFactor, @Nullable BigDecimal averageDailyUsage, @Nullable BigDecimal adjustedAverageDailyUsage, @Nullable String avgDailyUsageUnit, @Nullable ProposalHeader toProposalHdr)
-
-
Method Details
-
getType
- Specified by:
getTypein classVdmObject<DemandAdjustments>
-
setMaterial
(Key Field) Constraints: Not nullable, Maximum length: 18Original property name from the Odata EDM: Material
- Parameters:
material- Material Number
-
setPlant
(Key Field) Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: Plant
- Parameters:
plant- Plant
-
setMRPArea
(Key Field) Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: MRPArea
- Parameters:
mRPArea- MRP Area
-
setProposalStartDate
(Key Field) Constraints: Not nullable, Precision: 0Original property name from the Odata EDM: ProposalStartDate
- Parameters:
proposalStartDate- Proposal Validity From Date
-
setProposalVersion
(Key Field) Constraints: Not nullable, Maximum length: 8Original property name from the Odata EDM: ProposalVersion
- Parameters:
proposalVersion- Proposal Version
-
setProposalDmndAdjmtFctrStartDate
public void setProposalDmndAdjmtFctrStartDate(@Nullable LocalDateTime proposalDmndAdjmtFctrStartDate) (Key Field) Constraints: Not nullable, Precision: 0Original property name from the Odata EDM: ProposalDmndAdjmtFctrStartDate
- Parameters:
proposalDmndAdjmtFctrStartDate- Proposal Details Valid From
-
setProposalDmndAdjmtFctrEndDate
Constraints: Not nullable, Precision: 0Original property name from the Odata EDM: ProposalDmndAdjmtFctrEndDate
- Parameters:
proposalDmndAdjmtFctrEndDate- Proposal Details Valid To
-
setDemandAdjustmentFactor
Constraints: Not nullable, Precision: 4, Scale: 2Original property name from the Odata EDM: DemandAdjustmentFactor
- Parameters:
demandAdjustmentFactor- Demand Adjustment Factor
-
setAverageDailyUsage
Constraints: Not nullable, Precision: 13, Scale: 3Original property name from the Odata EDM: AverageDailyUsage
- Parameters:
averageDailyUsage- Average Daily Usage
-
setAdjustedAverageDailyUsage
Constraints: Not nullable, Precision: 13, Scale: 3Original property name from the Odata EDM: AdjustedAverageDailyUsage
- Parameters:
adjustedAverageDailyUsage- Average Daily Usage
-
setAvgDailyUsageUnit
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: AvgDailyUsageUnit
- Parameters:
avgDailyUsageUnit- Base Unit of Measure
-
getEntityCollection
- Specified by:
getEntityCollectionin classVdmEntity<DemandAdjustments>
-
getKey
- Overrides:
getKeyin classVdmObject<DemandAdjustments>
-
toMapOfFields
- Overrides:
toMapOfFieldsin classVdmObject<DemandAdjustments>
-
fromMap
- Overrides:
fromMapin classVdmObject<DemandAdjustments>
-
field
@Nonnull public static <T> DemandAdjustmentsField<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> DemandAdjustmentsField<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<DemandAdjustments>
-
setServicePathForFetch
- Overrides:
setServicePathForFetchin classVdmEntity<DemandAdjustments>
-
attachToService
public void attachToService(@Nullable String servicePath, @Nonnull HttpDestinationProperties destination) - Overrides:
attachToServicein classVdmEntity<DemandAdjustments>
-
getDefaultServicePath
- Overrides:
getDefaultServicePathin classVdmEntity<DemandAdjustments>
-
fetchProposalHdr
Fetches the ProposalHeader entity (one to one) associated with this entity. This corresponds to the OData navigation property to_ProposalHdr.Please note: This method will not cache or persist the query results.
- Returns:
- The single associated ProposalHeader 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.
-
getProposalHdrOrFetch
Retrieval of associated ProposalHeader entity (one to one). This corresponds to the OData navigation property to_ProposalHdr.If the navigation property to_ProposalHdr of a queried DemandAdjustments 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 ProposalHeader 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.
-
getProposalHdrIfPresent
Retrieval of associated ProposalHeader entity (one to one). This corresponds to the OData navigation property to_ProposalHdr.If the navigation property for an entity DemandAdjustments 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_ProposalHdr is already loaded, the result will
contain the ProposalHeader entity. If not, an
Optionwith result stateemptyis returned.
-
setProposalHdr
Overwrites the associated ProposalHeader entity for the loaded navigation property to_ProposalHdr.- Parameters:
value- New ProposalHeader entity.
-
builder
-
getMaterial
(Key Field) Constraints: Not nullable, Maximum length: 18Original property name from the Odata EDM: Material
- Returns:
- Material Number
-
getPlant
(Key Field) Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: Plant
- Returns:
- Plant
-
getMRPArea
(Key Field) Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: MRPArea
- Returns:
- MRP Area
-
getProposalStartDate
(Key Field) Constraints: Not nullable, Precision: 0Original property name from the Odata EDM: ProposalStartDate
- Returns:
- Proposal Validity From Date
-
getProposalVersion
(Key Field) Constraints: Not nullable, Maximum length: 8Original property name from the Odata EDM: ProposalVersion
- Returns:
- Proposal Version
-
getProposalDmndAdjmtFctrStartDate
(Key Field) Constraints: Not nullable, Precision: 0Original property name from the Odata EDM: ProposalDmndAdjmtFctrStartDate
- Returns:
- Proposal Details Valid From
-
getProposalDmndAdjmtFctrEndDate
Constraints: Not nullable, Precision: 0Original property name from the Odata EDM: ProposalDmndAdjmtFctrEndDate
- Returns:
- Proposal Details Valid To
-
getDemandAdjustmentFactor
Constraints: Not nullable, Precision: 4, Scale: 2Original property name from the Odata EDM: DemandAdjustmentFactor
- Returns:
- Demand Adjustment Factor
-
getAverageDailyUsage
Constraints: Not nullable, Precision: 13, Scale: 3Original property name from the Odata EDM: AverageDailyUsage
- Returns:
- Average Daily Usage
-
getAdjustedAverageDailyUsage
Constraints: Not nullable, Precision: 13, Scale: 3Original property name from the Odata EDM: AdjustedAverageDailyUsage
- Returns:
- Average Daily Usage
-
getAvgDailyUsageUnit
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: AvgDailyUsageUnit
- Returns:
- Base Unit of Measure
-
toString
- Overrides:
toStringin classVdmObject<DemandAdjustments>
-
equals
- Overrides:
equalsin classVdmEntity<DemandAdjustments>
-
canEqual
- Overrides:
canEqualin classVdmEntity<DemandAdjustments>
-
hashCode
public int hashCode()- Overrides:
hashCodein classVdmEntity<DemandAdjustments>
-