Class ProductUnitOfMeasure
- All Implemented Interfaces:
VdmEntitySet
Original entity name from the Odata EDM: ProductUnitOfMeasure_Type
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classHelper class to allow for fluent creation of ProductUnitOfMeasure instances. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SimpleProperty<ProductUnitOfMeasure>Selector for all available fields of ProductUnitOfMeasure.static final SimpleProperty.String<ProductUnitOfMeasure>static final SimpleProperty.String<ProductUnitOfMeasure>static final SimpleProperty.String<ProductUnitOfMeasure>static final SimpleProperty.NumericDecimal<ProductUnitOfMeasure>static final SimpleProperty.String<ProductUnitOfMeasure>static final SimpleProperty.String<ProductUnitOfMeasure>static final SimpleProperty.NumericDecimal<ProductUnitOfMeasure>static final SimpleProperty.String<ProductUnitOfMeasure>static final SimpleProperty.String<ProductUnitOfMeasure>static final SimpleProperty.NumericInteger<ProductUnitOfMeasure>static final SimpleProperty.String<ProductUnitOfMeasure>static final SimpleProperty.String<ProductUnitOfMeasure>static final SimpleProperty.String<ProductUnitOfMeasure>static final SimpleProperty.NumericDecimal<ProductUnitOfMeasure>static final SimpleProperty.NumericDecimal<ProductUnitOfMeasure>static final SimpleProperty.NumericDecimal<ProductUnitOfMeasure>static final NavigationProperty.Single<ProductUnitOfMeasure,Product> Use with available request builders to apply the _Product navigation property to query operations.Use with available request builders to apply the _ProductUnitOfMeasureEAN navigation property to query operations.static final SimpleProperty.NumericDecimal<ProductUnitOfMeasure>static final SimpleProperty.NumericDecimal<ProductUnitOfMeasure>static final SimpleProperty.NumericDecimal<ProductUnitOfMeasure>static final SimpleProperty.String<ProductUnitOfMeasure>static final SimpleProperty.String<ProductUnitOfMeasure>static final SimpleProperty.String<ProductUnitOfMeasure>static final SimpleProperty.String<ProductUnitOfMeasure>Fields inherited from class com.sap.cloud.sdk.datamodel.odatav4.core.VdmObject
changedOriginalFields, ODATA_TYPE_ANNOTATIONS, ODATA_VERSION_ANNOTATIONS -
Constructor Summary
ConstructorsConstructorDescriptionProductUnitOfMeasure(String product, String alternativeUnit, BigDecimal quantityNumerator, BigDecimal quantityDenominator, BigDecimal productVolume, String volumeUnit, String volumeISOUnit, BigDecimal grossWeight, String weightUnit, String weightISOUnit, String globalTradeItemNumber, String globalTradeItemNumberCategory, BigDecimal unitSpecificProductLength, BigDecimal unitSpecificProductWidth, BigDecimal unitSpecificProductHeight, String productMeasurementUnit, String productMeasurementISOUnit, String lowerLevelPackagingUnit, String lowerLevelPackagingISOUnit, Short maximumStackingFactor, BigDecimal capacityUsage, String baseUnit, String baseISOUnit, Product to_Product, List<ProductUnitOfMeasureEAN> to_ProductUnitOfMeasureEAN) -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds elements to the list of associated ProductUnitOfMeasureEAN entities.builder()protected booleanbooleanprotected void(Key Field) Constraints: Not nullable, Maximum length: 3Constraints: Not nullable, Maximum length: 3Constraints: Not nullable, Maximum length: 3Constraints: Not nullable, Precision: 15, Scale: 3protected Stringprotected StringConstraints: Not nullable, Maximum length: 18Constraints: Not nullable, Maximum length: 2Constraints: Not nullable, Precision: 13, Scale: 3protected ODataEntityKeygetKey()Constraints: Not nullable, Maximum length: 3Constraints: Not nullable, Maximum length: 3Constraints: Not nullable(Key Field) Constraints: Not nullable, Maximum length: 18io.vavr.control.Option<Product>Retrieval of associated Product entity (one to one).Constraints: Not nullable, Maximum length: 3Constraints: Not nullable, Maximum length: 3io.vavr.control.Option<List<ProductUnitOfMeasureEAN>>Retrieval of associated ProductUnitOfMeasureEAN entities (one to many).Constraints: Not nullable, Precision: 13, Scale: 3Constraints: Not nullable, Precision: 5Constraints: Not nullable, Precision: 5getType()Constraints: Not nullable, Precision: 13, Scale: 3Constraints: Not nullable, Precision: 13, Scale: 3Constraints: Not nullable, Precision: 13, Scale: 3Constraints: Not nullable, Maximum length: 3Constraints: Not nullable, Maximum length: 3Constraints: Not nullable, Maximum length: 3Constraints: Not nullable, Maximum length: 3inthashCode()voidsetAlternativeUnit(String alternativeUnit) (Key Field) Constraints: Not nullable, Maximum length: 3voidsetBaseISOUnit(String baseISOUnit) Constraints: Not nullable, Maximum length: 3voidsetBaseUnit(String baseUnit) Constraints: Not nullable, Maximum length: 3voidsetCapacityUsage(BigDecimal capacityUsage) Constraints: Not nullable, Precision: 15, Scale: 3voidsetGlobalTradeItemNumber(String globalTradeItemNumber) Constraints: Not nullable, Maximum length: 18voidsetGlobalTradeItemNumberCategory(String globalTradeItemNumberCategory) Constraints: Not nullable, Maximum length: 2voidsetGrossWeight(BigDecimal grossWeight) Constraints: Not nullable, Precision: 13, Scale: 3voidsetLowerLevelPackagingISOUnit(String lowerLevelPackagingISOUnit) Constraints: Not nullable, Maximum length: 3voidsetLowerLevelPackagingUnit(String lowerLevelPackagingUnit) Constraints: Not nullable, Maximum length: 3voidsetMaximumStackingFactor(Short maximumStackingFactor) Constraints: Not nullablevoidsetProduct(Product value) Overwrites the associated Product entity for the loaded navigation property _Product.voidsetProduct(String product) (Key Field) Constraints: Not nullable, Maximum length: 18voidsetProductMeasurementISOUnit(String productMeasurementISOUnit) Constraints: Not nullable, Maximum length: 3voidsetProductMeasurementUnit(String productMeasurementUnit) Constraints: Not nullable, Maximum length: 3voidOverwrites the list of associated ProductUnitOfMeasureEAN entities for the loaded navigation property _ProductUnitOfMeasureEAN.voidsetProductVolume(BigDecimal productVolume) Constraints: Not nullable, Precision: 13, Scale: 3voidsetQuantityDenominator(BigDecimal quantityDenominator) Constraints: Not nullable, Precision: 5voidsetQuantityNumerator(BigDecimal quantityNumerator) Constraints: Not nullable, Precision: 5voidsetUnitSpecificProductHeight(BigDecimal unitSpecificProductHeight) Constraints: Not nullable, Precision: 13, Scale: 3voidsetUnitSpecificProductLength(BigDecimal unitSpecificProductLength) Constraints: Not nullable, Precision: 13, Scale: 3voidsetUnitSpecificProductWidth(BigDecimal unitSpecificProductWidth) Constraints: Not nullable, Precision: 13, Scale: 3voidsetVolumeISOUnit(String volumeISOUnit) Constraints: Not nullable, Maximum length: 3voidsetVolumeUnit(String volumeUnit) Constraints: Not nullable, Maximum length: 3voidsetWeightISOUnit(String weightISOUnit) Constraints: Not nullable, Maximum length: 3voidsetWeightUnit(String weightUnit) Constraints: Not nullable, Maximum length: 3toString()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 ProductUnitOfMeasure. -
PRODUCT
-
ALTERNATIVE_UNIT
-
QUANTITY_NUMERATOR
-
QUANTITY_DENOMINATOR
-
PRODUCT_VOLUME
-
VOLUME_UNIT
-
VOLUME_ISO_UNIT
-
GROSS_WEIGHT
-
WEIGHT_UNIT
-
WEIGHT_ISO_UNIT
-
GLOBAL_TRADE_ITEM_NUMBER
-
GLOBAL_TRADE_ITEM_NUMBER_CATEGORY
-
UNIT_SPECIFIC_PRODUCT_LENGTH
public static final SimpleProperty.NumericDecimal<ProductUnitOfMeasure> UNIT_SPECIFIC_PRODUCT_LENGTH -
UNIT_SPECIFIC_PRODUCT_WIDTH
-
UNIT_SPECIFIC_PRODUCT_HEIGHT
public static final SimpleProperty.NumericDecimal<ProductUnitOfMeasure> UNIT_SPECIFIC_PRODUCT_HEIGHT -
PRODUCT_MEASUREMENT_UNIT
-
PRODUCT_MEASUREMENT_ISO_UNIT
-
LOWER_LEVEL_PACKAGING_UNIT
-
LOWER_LEVEL_PACKAGING_ISO_UNIT
-
MAXIMUM_STACKING_FACTOR
-
CAPACITY_USAGE
-
BASE_UNIT
-
BASE_ISO_UNIT
-
TO__PRODUCT
Use with available request builders to apply the _Product navigation property to query operations. -
TO__PRODUCT_UNIT_OF_MEASURE_EAN
public static final NavigationProperty.Collection<ProductUnitOfMeasure,ProductUnitOfMeasureEAN> TO__PRODUCT_UNIT_OF_MEASURE_EANUse with available request builders to apply the _ProductUnitOfMeasureEAN navigation property to query operations.
-
-
Constructor Details
-
ProductUnitOfMeasure
public ProductUnitOfMeasure() -
ProductUnitOfMeasure
public ProductUnitOfMeasure(@Nullable String product, @Nullable String alternativeUnit, @Nullable BigDecimal quantityNumerator, @Nullable BigDecimal quantityDenominator, @Nullable BigDecimal productVolume, @Nullable String volumeUnit, @Nullable String volumeISOUnit, @Nullable BigDecimal grossWeight, @Nullable String weightUnit, @Nullable String weightISOUnit, @Nullable String globalTradeItemNumber, @Nullable String globalTradeItemNumberCategory, @Nullable BigDecimal unitSpecificProductLength, @Nullable BigDecimal unitSpecificProductWidth, @Nullable BigDecimal unitSpecificProductHeight, @Nullable String productMeasurementUnit, @Nullable String productMeasurementISOUnit, @Nullable String lowerLevelPackagingUnit, @Nullable String lowerLevelPackagingISOUnit, @Nullable Short maximumStackingFactor, @Nullable BigDecimal capacityUsage, @Nullable String baseUnit, @Nullable String baseISOUnit, @Nullable Product to_Product, List<ProductUnitOfMeasureEAN> to_ProductUnitOfMeasureEAN)
-
-
Method Details
-
getType
- Specified by:
getTypein classVdmObject<ProductUnitOfMeasure>
-
setProduct
(Key Field) Constraints: Not nullable, Maximum length: 18Original property name from the Odata EDM: Product
- Parameters:
product- Product Number
-
setAlternativeUnit
(Key Field) Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: AlternativeUnit
- Parameters:
alternativeUnit- Alternative Unit of Measure for Stockkeeping Unit
-
setQuantityNumerator
Constraints: Not nullable, Precision: 5Original property name from the Odata EDM: QuantityNumerator
- Parameters:
quantityNumerator- Numerator for Conversion to Base Units of Measure
-
setQuantityDenominator
Constraints: Not nullable, Precision: 5Original property name from the Odata EDM: QuantityDenominator
- Parameters:
quantityDenominator- Denominator for conversion to base units of measure
-
setProductVolume
Constraints: Not nullable, Precision: 13, Scale: 3Original property name from the Odata EDM: ProductVolume
- Parameters:
productVolume- Volume
-
setVolumeUnit
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: VolumeUnit
- Parameters:
volumeUnit- Volume Unit
-
setVolumeISOUnit
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: VolumeISOUnit
- Parameters:
volumeISOUnit- Volume unit in ISO code
-
setGrossWeight
Constraints: Not nullable, Precision: 13, Scale: 3Original property name from the Odata EDM: GrossWeight
- Parameters:
grossWeight- Gross Weight
-
setWeightUnit
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: WeightUnit
- Parameters:
weightUnit- Unit of Weight
-
setWeightISOUnit
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: WeightISOUnit
- Parameters:
weightISOUnit- Unit of weight in ISO code
-
setGlobalTradeItemNumber
Constraints: Not nullable, Maximum length: 18Original property name from the Odata EDM: GlobalTradeItemNumber
- Parameters:
globalTradeItemNumber- International Article Number (EAN/UPC)
-
setGlobalTradeItemNumberCategory
Constraints: Not nullable, Maximum length: 2Original property name from the Odata EDM: GlobalTradeItemNumberCategory
- Parameters:
globalTradeItemNumberCategory- Category of Global Trade Item Number (GTIN)
-
setUnitSpecificProductLength
Constraints: Not nullable, Precision: 13, Scale: 3Original property name from the Odata EDM: UnitSpecificProductLength
- Parameters:
unitSpecificProductLength- Length
-
setUnitSpecificProductWidth
Constraints: Not nullable, Precision: 13, Scale: 3Original property name from the Odata EDM: UnitSpecificProductWidth
- Parameters:
unitSpecificProductWidth- Width
-
setUnitSpecificProductHeight
Constraints: Not nullable, Precision: 13, Scale: 3Original property name from the Odata EDM: UnitSpecificProductHeight
- Parameters:
unitSpecificProductHeight- Height
-
setProductMeasurementUnit
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: ProductMeasurementUnit
- Parameters:
productMeasurementUnit- Unit of Dimension for Length/Width/Height
-
setProductMeasurementISOUnit
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: ProductMeasurementISOUnit
- Parameters:
productMeasurementISOUnit- Unit for length/breadth/height in ISO code
-
setLowerLevelPackagingUnit
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: LowerLevelPackagingUnit
- Parameters:
lowerLevelPackagingUnit- Lower-Level Unit of Measure in a Packing Hierarchy
-
setLowerLevelPackagingISOUnit
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: LowerLevelPackagingISOUnit
- Parameters:
lowerLevelPackagingISOUnit- Lower-Level Unit of Measure in ISO Code
-
setMaximumStackingFactor
Constraints: Not nullableOriginal property name from the Odata EDM: MaximumStackingFactor
- Parameters:
maximumStackingFactor- Maximum Stacking Factor
-
setCapacityUsage
Constraints: Not nullable, Precision: 15, Scale: 3Original property name from the Odata EDM: CapacityUsage
- Parameters:
capacityUsage- Capacity Usage
-
setBaseUnit
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: BaseUnit
- Parameters:
baseUnit- Base Unit of Measure
-
setBaseISOUnit
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: BaseISOUnit
- Parameters:
baseISOUnit- Base unit of measure in ISO code
-
getEntityCollection
- Specified by:
getEntityCollectionin classVdmEntity<ProductUnitOfMeasure>
-
getKey
- Overrides:
getKeyin classVdmObject<ProductUnitOfMeasure>
-
toMapOfFields
- Overrides:
toMapOfFieldsin classVdmObject<ProductUnitOfMeasure>
-
fromMap
- Overrides:
fromMapin classVdmObject<ProductUnitOfMeasure>
-
getDefaultServicePath
- Overrides:
getDefaultServicePathin classVdmEntity<ProductUnitOfMeasure>
-
getProductIfPresent
Retrieval of associated Product entity (one to one). This corresponds to the OData navigation property _Product.If the navigation property for an entity ProductUnitOfMeasure 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.
-
getProductUnitOfMeasureEANIfPresent
@Nonnull public io.vavr.control.Option<List<ProductUnitOfMeasureEAN>> getProductUnitOfMeasureEANIfPresent()Retrieval of associated ProductUnitOfMeasureEAN entities (one to many). This corresponds to the OData navigation property _ProductUnitOfMeasureEAN.If the navigation property for an entity ProductUnitOfMeasure 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 _ProductUnitOfMeasureEAN is already loaded, the result
will contain the ProductUnitOfMeasureEAN entities. If not, an
Optionwith result stateemptyis returned.
-
setProductUnitOfMeasureEAN
Overwrites the list of associated ProductUnitOfMeasureEAN entities for the loaded navigation property _ProductUnitOfMeasureEAN.If the navigation property _ProductUnitOfMeasureEAN of a queried ProductUnitOfMeasure 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 ProductUnitOfMeasureEAN entities.
-
addProductUnitOfMeasureEAN
Adds elements to the list of associated ProductUnitOfMeasureEAN entities. This corresponds to the OData navigation property _ProductUnitOfMeasureEAN.If the navigation property _ProductUnitOfMeasureEAN of a queried ProductUnitOfMeasure 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 ProductUnitOfMeasureEAN entities.
-
builder
-
getProduct
(Key Field) Constraints: Not nullable, Maximum length: 18Original property name from the Odata EDM: Product
- Returns:
- Product Number
-
getAlternativeUnit
(Key Field) Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: AlternativeUnit
- Returns:
- Alternative Unit of Measure for Stockkeeping Unit
-
getQuantityNumerator
Constraints: Not nullable, Precision: 5Original property name from the Odata EDM: QuantityNumerator
- Returns:
- Numerator for Conversion to Base Units of Measure
-
getQuantityDenominator
Constraints: Not nullable, Precision: 5Original property name from the Odata EDM: QuantityDenominator
- Returns:
- Denominator for conversion to base units of measure
-
getProductVolume
Constraints: Not nullable, Precision: 13, Scale: 3Original property name from the Odata EDM: ProductVolume
- Returns:
- Volume
-
getVolumeUnit
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: VolumeUnit
- Returns:
- Volume Unit
-
getVolumeISOUnit
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: VolumeISOUnit
- Returns:
- Volume unit in ISO code
-
getGrossWeight
Constraints: Not nullable, Precision: 13, Scale: 3Original property name from the Odata EDM: GrossWeight
- Returns:
- Gross Weight
-
getWeightUnit
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: WeightUnit
- Returns:
- Unit of Weight
-
getWeightISOUnit
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: WeightISOUnit
- Returns:
- Unit of weight in ISO code
-
getGlobalTradeItemNumber
Constraints: Not nullable, Maximum length: 18Original property name from the Odata EDM: GlobalTradeItemNumber
- Returns:
- International Article Number (EAN/UPC)
-
getGlobalTradeItemNumberCategory
Constraints: Not nullable, Maximum length: 2Original property name from the Odata EDM: GlobalTradeItemNumberCategory
- Returns:
- Category of Global Trade Item Number (GTIN)
-
getUnitSpecificProductLength
Constraints: Not nullable, Precision: 13, Scale: 3Original property name from the Odata EDM: UnitSpecificProductLength
- Returns:
- Length
-
getUnitSpecificProductWidth
Constraints: Not nullable, Precision: 13, Scale: 3Original property name from the Odata EDM: UnitSpecificProductWidth
- Returns:
- Width
-
getUnitSpecificProductHeight
Constraints: Not nullable, Precision: 13, Scale: 3Original property name from the Odata EDM: UnitSpecificProductHeight
- Returns:
- Height
-
getProductMeasurementUnit
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: ProductMeasurementUnit
- Returns:
- Unit of Dimension for Length/Width/Height
-
getProductMeasurementISOUnit
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: ProductMeasurementISOUnit
- Returns:
- Unit for length/breadth/height in ISO code
-
getLowerLevelPackagingUnit
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: LowerLevelPackagingUnit
- Returns:
- Lower-Level Unit of Measure in a Packing Hierarchy
-
getLowerLevelPackagingISOUnit
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: LowerLevelPackagingISOUnit
- Returns:
- Lower-Level Unit of Measure in ISO Code
-
getMaximumStackingFactor
Constraints: Not nullableOriginal property name from the Odata EDM: MaximumStackingFactor
- Returns:
- Maximum Stacking Factor
-
getCapacityUsage
Constraints: Not nullable, Precision: 15, Scale: 3Original property name from the Odata EDM: CapacityUsage
- Returns:
- Capacity Usage
-
getBaseUnit
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: BaseUnit
- Returns:
- Base Unit of Measure
-
getBaseISOUnit
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: BaseISOUnit
- Returns:
- Base unit of measure in ISO code
-
toString
- Overrides:
toStringin classVdmObject<ProductUnitOfMeasure>
-
equals
- Overrides:
equalsin classVdmEntity<ProductUnitOfMeasure>
-
canEqual
- Overrides:
canEqualin classVdmEntity<ProductUnitOfMeasure>
-
hashCode
public int hashCode()- Overrides:
hashCodein classVdmEntity<ProductUnitOfMeasure>
-
getOdataType
- Specified by:
getOdataTypein classVdmObject<ProductUnitOfMeasure>
-