Class ProductUnitOfMeasureEAN
- All Implemented Interfaces:
VdmEntitySet
Original entity name from the Odata EDM: ProductUnitOfMeasureEAN_Type
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classHelper class to allow for fluent creation of ProductUnitOfMeasureEAN instances. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SimpleProperty<ProductUnitOfMeasureEAN>Selector for all available fields of ProductUnitOfMeasureEAN.static final SimpleProperty.String<ProductUnitOfMeasureEAN>static final SimpleProperty.String<ProductUnitOfMeasureEAN>static final SimpleProperty.String<ProductUnitOfMeasureEAN>static final SimpleProperty.String<ProductUnitOfMeasureEAN>static final SimpleProperty.Boolean<ProductUnitOfMeasureEAN>static final SimpleProperty.String<ProductUnitOfMeasureEAN>static final SimpleProperty.String<ProductUnitOfMeasureEAN>static final NavigationProperty.Single<ProductUnitOfMeasureEAN,Product> Use with available request builders to apply the _Product navigation property to query operations.Use with available request builders to apply the _ProductUnitOfMeasure 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
ConstructorsConstructorDescriptionProductUnitOfMeasureEAN(String product, String alternativeUnit, String consecutiveNumber, String alternativeISOUnit, String productStandardID, String internationalArticleNumberCat, Boolean isMainGlobalTradeItemNumber, Product to_Product, ProductUnitOfMeasure to_ProductUnitOfMeasure) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()protected booleanbooleanprotected voidConstraints: Not nullable, Maximum length: 3(Key Field) Constraints: Not nullable, Maximum length: 3(Key Field) Constraints: Not nullable, Maximum length: 5protected Stringprotected StringConstraints: Not nullable, Maximum length: 2Constraints: Not nullableprotected ODataEntityKeygetKey()(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: 18io.vavr.control.Option<ProductUnitOfMeasure>Retrieval of associated ProductUnitOfMeasure entity (one to one).getType()inthashCode()voidsetAlternativeISOUnit(String alternativeISOUnit) Constraints: Not nullable, Maximum length: 3voidsetAlternativeUnit(String alternativeUnit) (Key Field) Constraints: Not nullable, Maximum length: 3voidsetConsecutiveNumber(String consecutiveNumber) (Key Field) Constraints: Not nullable, Maximum length: 5voidsetInternationalArticleNumberCat(String internationalArticleNumberCat) Constraints: Not nullable, Maximum length: 2voidsetIsMainGlobalTradeItemNumber(Boolean isMainGlobalTradeItemNumber) 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: 18voidsetProductStandardID(String productStandardID) Constraints: Not nullable, Maximum length: 18voidOverwrites the associated ProductUnitOfMeasure entity for the loaded navigation property _ProductUnitOfMeasure.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 ProductUnitOfMeasureEAN. -
PRODUCT
-
ALTERNATIVE_UNIT
-
CONSECUTIVE_NUMBER
-
ALTERNATIVE_ISO_UNIT
-
PRODUCT_STANDARD_ID
-
INTERNATIONAL_ARTICLE_NUMBER_CAT
-
IS_MAIN_GLOBAL_TRADE_ITEM_NUMBER
public static final SimpleProperty.Boolean<ProductUnitOfMeasureEAN> IS_MAIN_GLOBAL_TRADE_ITEM_NUMBER -
TO__PRODUCT
Use with available request builders to apply the _Product navigation property to query operations. -
TO__PRODUCT_UNIT_OF_MEASURE
public static final NavigationProperty.Single<ProductUnitOfMeasureEAN,ProductUnitOfMeasure> TO__PRODUCT_UNIT_OF_MEASUREUse with available request builders to apply the _ProductUnitOfMeasure navigation property to query operations.
-
-
Constructor Details
-
ProductUnitOfMeasureEAN
public ProductUnitOfMeasureEAN() -
ProductUnitOfMeasureEAN
public ProductUnitOfMeasureEAN(@Nullable String product, @Nullable String alternativeUnit, @Nullable String consecutiveNumber, @Nullable String alternativeISOUnit, @Nullable String productStandardID, @Nullable String internationalArticleNumberCat, @Nullable Boolean isMainGlobalTradeItemNumber, @Nullable Product to_Product, @Nullable ProductUnitOfMeasure to_ProductUnitOfMeasure)
-
-
Method Details
-
getType
- Specified by:
getTypein classVdmObject<ProductUnitOfMeasureEAN>
-
setProduct
(Key Field) Constraints: Not nullable, Maximum length: 18Original property name from the Odata EDM: Product
- Parameters:
product- Material Number
-
setAlternativeUnit
(Key Field) Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: AlternativeUnit
- Parameters:
alternativeUnit- Base Unit of Measure - No Conversion Routine
-
setConsecutiveNumber
(Key Field) Constraints: Not nullable, Maximum length: 5Original property name from the Odata EDM: ConsecutiveNumber
- Parameters:
consecutiveNumber- Consecutive Number
-
setAlternativeISOUnit
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: AlternativeISOUnit
- Parameters:
alternativeISOUnit- Base unit of measure in ISO code
-
setProductStandardID
Constraints: Not nullable, Maximum length: 18Original property name from the Odata EDM: ProductStandardID
- Parameters:
productStandardID- International Article Number (EAN/UPC)
-
setInternationalArticleNumberCat
Constraints: Not nullable, Maximum length: 2Original property name from the Odata EDM: InternationalArticleNumberCat
- Parameters:
internationalArticleNumberCat- Category of Global Trade Item Number (GTIN)
-
setIsMainGlobalTradeItemNumber
Constraints: Not nullableOriginal property name from the Odata EDM: IsMainGlobalTradeItemNumber
- Parameters:
isMainGlobalTradeItemNumber- Indicator: Main EAN
-
getEntityCollection
- Specified by:
getEntityCollectionin classVdmEntity<ProductUnitOfMeasureEAN>
-
getKey
- Overrides:
getKeyin classVdmObject<ProductUnitOfMeasureEAN>
-
toMapOfFields
- Overrides:
toMapOfFieldsin classVdmObject<ProductUnitOfMeasureEAN>
-
fromMap
- Overrides:
fromMapin classVdmObject<ProductUnitOfMeasureEAN>
-
getDefaultServicePath
- Overrides:
getDefaultServicePathin classVdmEntity<ProductUnitOfMeasureEAN>
-
getProductIfPresent
Retrieval of associated Product entity (one to one). This corresponds to the OData navigation property _Product.If the navigation property for an entity ProductUnitOfMeasureEAN 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.
-
getProductUnitOfMeasureIfPresent
Retrieval of associated ProductUnitOfMeasure entity (one to one). This corresponds to the OData navigation property _ProductUnitOfMeasure.If the navigation property for an entity ProductUnitOfMeasureEAN 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 _ProductUnitOfMeasure is already loaded, the result
will contain the ProductUnitOfMeasure entity. If not, an
Optionwith result stateemptyis returned.
-
setProductUnitOfMeasure
Overwrites the associated ProductUnitOfMeasure entity for the loaded navigation property _ProductUnitOfMeasure.- Parameters:
value- New ProductUnitOfMeasure entity.
-
builder
-
getProduct
(Key Field) Constraints: Not nullable, Maximum length: 18Original property name from the Odata EDM: Product
- Returns:
- Material Number
-
getAlternativeUnit
(Key Field) Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: AlternativeUnit
- Returns:
- Base Unit of Measure - No Conversion Routine
-
getConsecutiveNumber
(Key Field) Constraints: Not nullable, Maximum length: 5Original property name from the Odata EDM: ConsecutiveNumber
- Returns:
- Consecutive Number
-
getAlternativeISOUnit
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: AlternativeISOUnit
- Returns:
- Base unit of measure in ISO code
-
getProductStandardID
Constraints: Not nullable, Maximum length: 18Original property name from the Odata EDM: ProductStandardID
- Returns:
- International Article Number (EAN/UPC)
-
getInternationalArticleNumberCat
Constraints: Not nullable, Maximum length: 2Original property name from the Odata EDM: InternationalArticleNumberCat
- Returns:
- Category of Global Trade Item Number (GTIN)
-
getIsMainGlobalTradeItemNumber
Constraints: Not nullableOriginal property name from the Odata EDM: IsMainGlobalTradeItemNumber
- Returns:
- Indicator: Main EAN
-
toString
- Overrides:
toStringin classVdmObject<ProductUnitOfMeasureEAN>
-
equals
- Overrides:
equalsin classVdmEntity<ProductUnitOfMeasureEAN>
-
canEqual
- Overrides:
canEqualin classVdmEntity<ProductUnitOfMeasureEAN>
-
hashCode
public int hashCode()- Overrides:
hashCodein classVdmEntity<ProductUnitOfMeasureEAN>
-
getOdataType
- Specified by:
getOdataTypein classVdmObject<ProductUnitOfMeasureEAN>
-