Class ProductDescription
java.lang.Object
com.sap.cloud.sdk.datamodel.odatav4.core.VdmObject<EntityT>
com.sap.cloud.sdk.datamodel.odatav4.core.VdmEntity<ProductDescription>
com.sap.cloud.sdk.s4hana.datamodel.odatav4.namespaces.productv2.ProductDescription
- All Implemented Interfaces:
VdmEntitySet
Product Description
Original entity name from the Odata EDM: ProductDescription_Type
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classHelper class to allow for fluent creation of ProductDescription instances. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SimpleProperty<ProductDescription>Selector for all available fields of ProductDescription.static final SimpleProperty.String<ProductDescription>static final SimpleProperty.String<ProductDescription>static final SimpleProperty.String<ProductDescription>static final NavigationProperty.Single<ProductDescription,Product> Use with available request builders to apply the _Product 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
ConstructorsConstructorDescriptionProductDescription(String product, String language, String productDescription, Product to_Product) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()protected booleanbooleanprotected voidprotected Stringprotected Stringprotected ODataEntityKeygetKey()(Key Field) Constraints: Not nullable, Maximum length: 2(Key Field) Constraints: Not nullable, Maximum length: 18Constraints: Not nullable, Maximum length: 40io.vavr.control.Option<Product>Retrieval of associated Product entity (one to one).getType()inthashCode()voidsetLanguage(String language) (Key Field) Constraints: Not nullable, Maximum length: 2voidsetProduct(Product value) Overwrites the associated Product entity for the loaded navigation property _Product.voidsetProduct(String product) (Key Field) Constraints: Not nullable, Maximum length: 18voidsetProductDescription(String productDescription) Constraints: Not nullable, Maximum length: 40toString()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 ProductDescription. -
PRODUCT
-
LANGUAGE
-
PRODUCT_DESCRIPTION
-
TO__PRODUCT
Use with available request builders to apply the _Product navigation property to query operations.
-
-
Constructor Details
-
ProductDescription
public ProductDescription() -
ProductDescription
-
-
Method Details
-
getType
- Specified by:
getTypein classVdmObject<ProductDescription>
-
setProduct
(Key Field) Constraints: Not nullable, Maximum length: 18Original property name from the Odata EDM: Product
- Parameters:
product- Product Number
-
setLanguage
(Key Field) Constraints: Not nullable, Maximum length: 2Original property name from the Odata EDM: Language
- Parameters:
language- Language Key
-
setProductDescription
Constraints: Not nullable, Maximum length: 40Original property name from the Odata EDM: ProductDescription
- Parameters:
productDescription- Product Description
-
getEntityCollection
- Specified by:
getEntityCollectionin classVdmEntity<ProductDescription>
-
getKey
- Overrides:
getKeyin classVdmObject<ProductDescription>
-
toMapOfFields
- Overrides:
toMapOfFieldsin classVdmObject<ProductDescription>
-
fromMap
- Overrides:
fromMapin classVdmObject<ProductDescription>
-
getDefaultServicePath
- Overrides:
getDefaultServicePathin classVdmEntity<ProductDescription>
-
getProductIfPresent
Retrieval of associated Product entity (one to one). This corresponds to the OData navigation property _Product.If the navigation property for an entity ProductDescription 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.
-
builder
-
getProduct
(Key Field) Constraints: Not nullable, Maximum length: 18Original property name from the Odata EDM: Product
- Returns:
- Product Number
-
getLanguage
(Key Field) Constraints: Not nullable, Maximum length: 2Original property name from the Odata EDM: Language
- Returns:
- Language Key
-
getProductDescription
Constraints: Not nullable, Maximum length: 40Original property name from the Odata EDM: ProductDescription
- Returns:
- Product Description
-
toString
- Overrides:
toStringin classVdmObject<ProductDescription>
-
equals
- Overrides:
equalsin classVdmEntity<ProductDescription>
-
canEqual
- Overrides:
canEqualin classVdmEntity<ProductDescription>
-
hashCode
public int hashCode()- Overrides:
hashCodein classVdmEntity<ProductDescription>
-
getOdataType
- Specified by:
getOdataTypein classVdmObject<ProductDescription>
-