Class ProductPlantForecast
- All Implemented Interfaces:
VdmEntitySet
Original entity name from the Odata EDM: ProductPlantForecast_Type
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classHelper class to allow for fluent creation of ProductPlantForecast instances. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SimpleProperty<ProductPlantForecast>Selector for all available fields of ProductPlantForecast.static final SimpleProperty.NumericDecimal<ProductPlantForecast>static final SimpleProperty.Date<ProductPlantForecast>static final SimpleProperty.String<ProductPlantForecast>static final SimpleProperty.String<ProductPlantForecast>static final SimpleProperty.Boolean<ProductPlantForecast>static final SimpleProperty.Boolean<ProductPlantForecast>static final SimpleProperty.String<ProductPlantForecast>static final SimpleProperty.String<ProductPlantForecast>static final NavigationProperty.Single<ProductPlantForecast,Product> Use with available request builders to apply the _Product navigation property to query operations.static final NavigationProperty.Single<ProductPlantForecast,ProductPlant> Use with available request builders to apply the _ProductPlant navigation property to query operations.Fields inherited from class com.sap.cloud.sdk.datamodel.odatav4.core.VdmObject
changedOriginalFields, ODATA_TYPE_ANNOTATIONS, ODATA_VERSION_ANNOTATIONS -
Constructor Summary
ConstructorsConstructorDescriptionProductPlantForecast(String product, String plant, LocalDate consumptionRefUsageEndDate, BigDecimal cnsmpnQuantityMultiplierValue, String consumptionReferenceProduct, String consumptionReferencePlant, Boolean correctionFactorIsRequired, Boolean forecastModelIsReset, Product to_Product, ProductPlant to_ProductPlant) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()protected booleanbooleanprotected voidConstraints: Not nullable, Precision: 4, Scale: 2Constraints: Not nullable, Maximum length: 4Constraints: Not nullable, Maximum length: 18Constraints: NullableConstraints: Not nullableprotected Stringprotected StringConstraints: Not nullableprotected ODataEntityKeygetKey()getPlant()(Key Field) Constraints: Not nullable, Maximum length: 4(Key Field) Constraints: Not nullable, Maximum length: 18io.vavr.control.Option<Product>Retrieval of associated Product entity (one to one).io.vavr.control.Option<ProductPlant>Retrieval of associated ProductPlant entity (one to one).getType()inthashCode()voidsetCnsmpnQuantityMultiplierValue(BigDecimal cnsmpnQuantityMultiplierValue) Constraints: Not nullable, Precision: 4, Scale: 2voidsetConsumptionReferencePlant(String consumptionReferencePlant) Constraints: Not nullable, Maximum length: 4voidsetConsumptionReferenceProduct(String consumptionReferenceProduct) Constraints: Not nullable, Maximum length: 18voidsetConsumptionRefUsageEndDate(LocalDate consumptionRefUsageEndDate) Constraints: NullablevoidsetCorrectionFactorIsRequired(Boolean correctionFactorIsRequired) Constraints: Not nullablevoidsetForecastModelIsReset(Boolean forecastModelIsReset) Constraints: Not nullablevoid(Key Field) Constraints: Not nullable, Maximum length: 4voidsetProduct(Product value) Overwrites the associated Product entity for the loaded navigation property _Product.voidsetProduct(String product) (Key Field) Constraints: Not nullable, Maximum length: 18voidsetProductPlant(ProductPlant value) Overwrites the associated ProductPlant entity for the loaded navigation property _ProductPlant.toString()Methods inherited from class com.sap.cloud.sdk.datamodel.odatav4.core.VdmEntity
all, attachToService, getDestinationForFetch, getServicePathForFetch, getVersionIdentifier, setDestinationForFetch, setServicePathForFetch, setVersionIdentifierMethods inherited from class com.sap.cloud.sdk.datamodel.odatav4.core.VdmObject
getAnnotationProperties, 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 ProductPlantForecast. -
PRODUCT
-
PLANT
-
CONSUMPTION_REF_USAGE_END_DATE
-
CNSMPN_QUANTITY_MULTIPLIER_VALUE
public static final SimpleProperty.NumericDecimal<ProductPlantForecast> CNSMPN_QUANTITY_MULTIPLIER_VALUE -
CONSUMPTION_REFERENCE_PRODUCT
-
CONSUMPTION_REFERENCE_PLANT
-
CORRECTION_FACTOR_IS_REQUIRED
-
FORECAST_MODEL_IS_RESET
-
TO__PRODUCT
Use with available request builders to apply the _Product navigation property to query operations. -
TO__PRODUCT_PLANT
Use with available request builders to apply the _ProductPlant navigation property to query operations.
-
-
Constructor Details
-
ProductPlantForecast
public ProductPlantForecast() -
ProductPlantForecast
public ProductPlantForecast(@Nullable String product, @Nullable String plant, @Nullable LocalDate consumptionRefUsageEndDate, @Nullable BigDecimal cnsmpnQuantityMultiplierValue, @Nullable String consumptionReferenceProduct, @Nullable String consumptionReferencePlant, @Nullable Boolean correctionFactorIsRequired, @Nullable Boolean forecastModelIsReset, @Nullable Product to_Product, @Nullable ProductPlant to_ProductPlant)
-
-
Method Details
-
getType
- Specified by:
getTypein classVdmObject<ProductPlantForecast>
-
setProduct
(Key Field) Constraints: Not nullable, Maximum length: 18Original property name from the Odata EDM: Product
- Parameters:
product- Product Number
-
setPlant
(Key Field) Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: Plant
- Parameters:
plant- Plant
-
setConsumptionRefUsageEndDate
Constraints: NullableOriginal property name from the Odata EDM: ConsumptionRefUsageEndDate
- Parameters:
consumptionRefUsageEndDate- To date of the material to be copied for consumption
-
setCnsmpnQuantityMultiplierValue
Constraints: Not nullable, Precision: 4, Scale: 2Original property name from the Odata EDM: CnsmpnQuantityMultiplierValue
- Parameters:
cnsmpnQuantityMultiplierValue- Multiplier for reference material for consumption
-
setConsumptionReferenceProduct
Constraints: Not nullable, Maximum length: 18Original property name from the Odata EDM: ConsumptionReferenceProduct
- Parameters:
consumptionReferenceProduct- Reference material for consumption
-
setConsumptionReferencePlant
Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: ConsumptionReferencePlant
- Parameters:
consumptionReferencePlant- Reference plant for consumption
-
setCorrectionFactorIsRequired
Constraints: Not nullableOriginal property name from the Odata EDM: CorrectionFactorIsRequired
- Parameters:
correctionFactorIsRequired- Indicator: take correction factors into account
-
setForecastModelIsReset
Constraints: Not nullableOriginal property name from the Odata EDM: ForecastModelIsReset
- Parameters:
forecastModelIsReset- Reset Forecast Model Automatically
-
getEntityCollection
- Specified by:
getEntityCollectionin classVdmEntity<ProductPlantForecast>
-
getKey
- Overrides:
getKeyin classVdmObject<ProductPlantForecast>
-
toMapOfFields
- Overrides:
toMapOfFieldsin classVdmObject<ProductPlantForecast>
-
fromMap
- Overrides:
fromMapin classVdmObject<ProductPlantForecast>
-
getDefaultServicePath
- Overrides:
getDefaultServicePathin classVdmEntity<ProductPlantForecast>
-
getProductIfPresent
Retrieval of associated Product entity (one to one). This corresponds to the OData navigation property _Product.If the navigation property for an entity ProductPlantForecast 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 _Product is already loaded, the result will contain the
Product entity. If not, an
Optionwith result stateemptyis returned.
-
setProduct
Overwrites the associated Product entity for the loaded navigation property _Product.- Parameters:
value- New Product entity.
-
getProductPlantIfPresent
Retrieval of associated ProductPlant entity (one to one). This corresponds to the OData navigation property _ProductPlant.If the navigation property for an entity ProductPlantForecast 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 _ProductPlant is already loaded, the result will
contain the ProductPlant entity. If not, an
Optionwith result stateemptyis returned.
-
setProductPlant
Overwrites the associated ProductPlant entity for the loaded navigation property _ProductPlant.- Parameters:
value- New ProductPlant entity.
-
builder
-
getProduct
(Key Field) Constraints: Not nullable, Maximum length: 18Original property name from the Odata EDM: Product
- Returns:
- Product Number
-
getPlant
(Key Field) Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: Plant
- Returns:
- Plant
-
getConsumptionRefUsageEndDate
Constraints: NullableOriginal property name from the Odata EDM: ConsumptionRefUsageEndDate
- Returns:
- To date of the material to be copied for consumption
-
getCnsmpnQuantityMultiplierValue
Constraints: Not nullable, Precision: 4, Scale: 2Original property name from the Odata EDM: CnsmpnQuantityMultiplierValue
- Returns:
- Multiplier for reference material for consumption
-
getConsumptionReferenceProduct
Constraints: Not nullable, Maximum length: 18Original property name from the Odata EDM: ConsumptionReferenceProduct
- Returns:
- Reference material for consumption
-
getConsumptionReferencePlant
Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: ConsumptionReferencePlant
- Returns:
- Reference plant for consumption
-
getCorrectionFactorIsRequired
Constraints: Not nullableOriginal property name from the Odata EDM: CorrectionFactorIsRequired
- Returns:
- Indicator: take correction factors into account
-
getForecastModelIsReset
Constraints: Not nullableOriginal property name from the Odata EDM: ForecastModelIsReset
- Returns:
- Reset Forecast Model Automatically
-
toString
- Overrides:
toStringin classVdmObject<ProductPlantForecast>
-
equals
- Overrides:
equalsin classVdmEntity<ProductPlantForecast>
-
canEqual
- Overrides:
canEqualin classVdmEntity<ProductPlantForecast>
-
hashCode
public int hashCode()- Overrides:
hashCodein classVdmEntity<ProductPlantForecast>
-
getOdataType
- Specified by:
getOdataTypein classVdmObject<ProductPlantForecast>
-