Class ProductGroup
- All Implemented Interfaces:
VdmEntitySet
Original entity name from the Odata EDM: ProductGroupType
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classHelper class to allow for fluent creation of ProductGroup instances. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SimpleProperty<ProductGroup>Selector for all available fields of ProductGroup.static final SimpleProperty.String<ProductGroup>static final SimpleProperty.String<ProductGroup>static final NavigationProperty.Collection<ProductGroup,ProductGroupText> Use with available request builders to apply the _Text 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
ConstructorsConstructorDescriptionProductGroup(String productGroup, String productGroupName, List<ProductGroupText> to_Text) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddText(ProductGroupText... entity) Adds elements to the list of associated ProductGroupText entities.builder()protected booleanbooleanprotected voidprotected Stringprotected Stringprotected ODataEntityKeygetKey()(Key Field) Constraints: Not nullable, Maximum length: 9Constraints: Not nullable, Maximum length: 20io.vavr.control.Option<List<ProductGroupText>>Retrieval of associated ProductGroupText entities (one to many).getType()inthashCode()voidsetProductGroup(String productGroup) (Key Field) Constraints: Not nullable, Maximum length: 9voidsetProductGroupName(String productGroupName) Constraints: Not nullable, Maximum length: 20voidsetText(List<ProductGroupText> value) Overwrites the list of associated ProductGroupText entities for the loaded navigation property _Text.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 ProductGroup. -
PRODUCT_GROUP
-
PRODUCT_GROUP_NAME
-
TO__TEXT
Use with available request builders to apply the _Text navigation property to query operations.
-
-
Constructor Details
-
ProductGroup
public ProductGroup() -
ProductGroup
public ProductGroup(@Nullable String productGroup, @Nullable String productGroupName, List<ProductGroupText> to_Text)
-
-
Method Details
-
getType
- Specified by:
getTypein classVdmObject<ProductGroup>
-
setProductGroup
(Key Field) Constraints: Not nullable, Maximum length: 9Original property name from the Odata EDM: ProductGroup
- Parameters:
productGroup- Product Group
-
setProductGroupName
Constraints: Not nullable, Maximum length: 20Original property name from the Odata EDM: ProductGroupName
- Parameters:
productGroupName- Product Group Description
-
getEntityCollection
- Specified by:
getEntityCollectionin classVdmEntity<ProductGroup>
-
getKey
- Overrides:
getKeyin classVdmObject<ProductGroup>
-
toMapOfFields
- Overrides:
toMapOfFieldsin classVdmObject<ProductGroup>
-
fromMap
- Overrides:
fromMapin classVdmObject<ProductGroup>
-
getDefaultServicePath
- Overrides:
getDefaultServicePathin classVdmEntity<ProductGroup>
-
getTextIfPresent
Retrieval of associated ProductGroupText entities (one to many). This corresponds to the OData navigation property _Text.If the navigation property for an entity ProductGroup 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 _Text is already loaded, the result will contain the
ProductGroupText entities. If not, an
Optionwith result stateemptyis returned.
-
setText
Overwrites the list of associated ProductGroupText entities for the loaded navigation property _Text.If the navigation property _Text of a queried ProductGroup 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 ProductGroupText entities.
-
addText
Adds elements to the list of associated ProductGroupText entities. This corresponds to the OData navigation property _Text.If the navigation property _Text of a queried ProductGroup 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 ProductGroupText entities.
-
builder
-
getProductGroup
(Key Field) Constraints: Not nullable, Maximum length: 9Original property name from the Odata EDM: ProductGroup
- Returns:
- Product Group
-
getProductGroupName
Constraints: Not nullable, Maximum length: 20Original property name from the Odata EDM: ProductGroupName
- Returns:
- Product Group Description
-
toString
- Overrides:
toStringin classVdmObject<ProductGroup>
-
equals
- Overrides:
equalsin classVdmEntity<ProductGroup>
-
canEqual
- Overrides:
canEqualin classVdmEntity<ProductGroup>
-
hashCode
public int hashCode()- Overrides:
hashCodein classVdmEntity<ProductGroup>
-
getOdataType
- Specified by:
getOdataTypein classVdmObject<ProductGroup>
-