Class ProductTypeText
java.lang.Object
com.sap.cloud.sdk.datamodel.odatav4.core.VdmObject<EntityT>
com.sap.cloud.sdk.datamodel.odatav4.core.VdmEntity<ProductTypeText>
com.sap.cloud.sdk.s4hana.datamodel.odatav4.namespaces.producttype.ProductTypeText
- All Implemented Interfaces:
VdmEntitySet
Product Type Text
Original entity name from the Odata EDM: ProductTypeTextType
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classHelper class to allow for fluent creation of ProductTypeText instances. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SimpleProperty<ProductTypeText>Selector for all available fields of ProductTypeText.static final SimpleProperty.String<ProductTypeText>static final SimpleProperty.String<ProductTypeText>static final SimpleProperty.String<ProductTypeText>static final NavigationProperty.Single<ProductTypeText,ProductType> Use with available request builders to apply the _ProductType 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
ConstructorsConstructorDescriptionProductTypeText(String productType, String language, String productTypeName, ProductType to_ProductType) -
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: 4io.vavr.control.Option<ProductType>Retrieval of associated ProductType entity (one to one).Constraints: Not nullable, Maximum length: 25getType()inthashCode()voidsetLanguage(String language) (Key Field) Constraints: Not nullable, Maximum length: 2voidsetProductType(ProductType value) Overwrites the associated ProductType entity for the loaded navigation property _ProductType.voidsetProductType(String productType) (Key Field) Constraints: Not nullable, Maximum length: 4voidsetProductTypeName(String productTypeName) Constraints: Not nullable, Maximum length: 25toString()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 ProductTypeText. -
PRODUCT_TYPE
-
LANGUAGE
-
PRODUCT_TYPE_NAME
-
TO__PRODUCT_TYPE
Use with available request builders to apply the _ProductType navigation property to query operations.
-
-
Constructor Details
-
ProductTypeText
public ProductTypeText() -
ProductTypeText
public ProductTypeText(@Nullable String productType, @Nullable String language, @Nullable String productTypeName, @Nullable ProductType to_ProductType)
-
-
Method Details
-
getType
- Specified by:
getTypein classVdmObject<ProductTypeText>
-
setProductType
(Key Field) Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: ProductType
- Parameters:
productType- Product Type
-
setLanguage
(Key Field) Constraints: Not nullable, Maximum length: 2Original property name from the Odata EDM: Language
- Parameters:
language- Language Key
-
setProductTypeName
Constraints: Not nullable, Maximum length: 25Original property name from the Odata EDM: ProductTypeName
- Parameters:
productTypeName- Description of product type
-
getEntityCollection
- Specified by:
getEntityCollectionin classVdmEntity<ProductTypeText>
-
getKey
- Overrides:
getKeyin classVdmObject<ProductTypeText>
-
toMapOfFields
- Overrides:
toMapOfFieldsin classVdmObject<ProductTypeText>
-
fromMap
- Overrides:
fromMapin classVdmObject<ProductTypeText>
-
getDefaultServicePath
- Overrides:
getDefaultServicePathin classVdmEntity<ProductTypeText>
-
getProductTypeIfPresent
Retrieval of associated ProductType entity (one to one). This corresponds to the OData navigation property _ProductType.If the navigation property for an entity ProductTypeText 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 _ProductType is already loaded, the result will contain
the ProductType entity. If not, an
Optionwith result stateemptyis returned.
-
setProductType
Overwrites the associated ProductType entity for the loaded navigation property _ProductType.- Parameters:
value- New ProductType entity.
-
builder
-
getProductType
(Key Field) Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: ProductType
- Returns:
- Product Type
-
getLanguage
(Key Field) Constraints: Not nullable, Maximum length: 2Original property name from the Odata EDM: Language
- Returns:
- Language Key
-
getProductTypeName
Constraints: Not nullable, Maximum length: 25Original property name from the Odata EDM: ProductTypeName
- Returns:
- Description of product type
-
toString
- Overrides:
toStringin classVdmObject<ProductTypeText>
-
equals
- Overrides:
equalsin classVdmEntity<ProductTypeText>
-
canEqual
- Overrides:
canEqualin classVdmEntity<ProductTypeText>
-
hashCode
public int hashCode()- Overrides:
hashCodein classVdmEntity<ProductTypeText>
-
getOdataType
- Specified by:
getOdataTypein classVdmObject<ProductTypeText>
-