Class ProdUniversalHierarchy
- All Implemented Interfaces:
VdmEntitySet
Original entity name from the Odata EDM: ProdUniversalHierarchyType
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classHelper class to allow for fluent creation of ProdUniversalHierarchy instances. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ComplexProperty.Collection<ProdUniversalHierarchy,SAP__Message> Use with available request builders to apply the SAP__Messages complex property to query operations.static final SimpleProperty<ProdUniversalHierarchy>Selector for all available fields of ProdUniversalHierarchy.static final SimpleProperty.Date<ProdUniversalHierarchy>static final SimpleProperty.Date<ProdUniversalHierarchy>static final SimpleProperty.String<ProdUniversalHierarchy>static final SimpleProperty.String<ProdUniversalHierarchy>Use with available request builders to apply the _ProdUnivHierNodeByHierID navigation property to query operations.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
ConstructorsConstructorDescriptionProdUniversalHierarchy(String prodUnivHierarchy, LocalDate prodHierarchyValidityEndDate, LocalDate prodHierarchyValidityStartDate, String prodUnivHierarchy_Text, Collection<SAP__Message> _Messages, List<ProdUnivHierNodeByHierID> to_ProdUnivHierNodeByHierID, List<ProdUniversalHierarchyText> to_Text) -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds elements to the list of associated ProdUnivHierNodeByHierID entities.voidaddText(ProdUniversalHierarchyText... entity) Adds elements to the list of associated ProdUniversalHierarchyText entities.builder()protected booleanbooleanprotected voidConstraints: Not nullableprotected Stringprotected Stringprotected ODataEntityKeygetKey()(Key Field) Constraints: Not nullableConstraints: Nullable(Key Field) Constraints: Not nullable, Maximum length: 20Constraints: Not nullable, Maximum length: 50io.vavr.control.Option<List<ProdUnivHierNodeByHierID>>Retrieval of associated ProdUnivHierNodeByHierID entities (one to many).io.vavr.control.Option<List<ProdUniversalHierarchyText>>Retrieval of associated ProdUniversalHierarchyText entities (one to many).getType()inthashCode()voidset_Messages(Collection<SAP__Message> _Messages) Constraints: Not nullablevoidsetProdHierarchyValidityEndDate(LocalDate prodHierarchyValidityEndDate) (Key Field) Constraints: Not nullablevoidsetProdHierarchyValidityStartDate(LocalDate prodHierarchyValidityStartDate) Constraints: NullablevoidsetProdUnivHierarchy(String prodUnivHierarchy) (Key Field) Constraints: Not nullable, Maximum length: 20voidsetProdUnivHierarchy_Text(String prodUnivHierarchy_Text) Constraints: Not nullable, Maximum length: 50voidOverwrites the list of associated ProdUnivHierNodeByHierID entities for the loaded navigation property _ProdUnivHierNodeByHierID.voidsetText(List<ProdUniversalHierarchyText> value) Overwrites the list of associated ProdUniversalHierarchyText 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 ProdUniversalHierarchy. -
PROD_UNIV_HIERARCHY
-
PROD_HIERARCHY_VALIDITY_END_DATE
-
PROD_HIERARCHY_VALIDITY_START_DATE
-
PROD_UNIV_HIERARCHY_TEXT
-
_MESSAGES
Use with available request builders to apply the SAP__Messages complex property to query operations. -
TO__PROD_UNIV_HIER_NODE_BY_HIER_ID
public static final NavigationProperty.Collection<ProdUniversalHierarchy,ProdUnivHierNodeByHierID> TO__PROD_UNIV_HIER_NODE_BY_HIER_IDUse with available request builders to apply the _ProdUnivHierNodeByHierID navigation property to query operations. -
TO__TEXT
public static final NavigationProperty.Collection<ProdUniversalHierarchy,ProdUniversalHierarchyText> TO__TEXTUse with available request builders to apply the _Text navigation property to query operations.
-
-
Constructor Details
-
ProdUniversalHierarchy
public ProdUniversalHierarchy() -
ProdUniversalHierarchy
public ProdUniversalHierarchy(@Nullable String prodUnivHierarchy, @Nullable LocalDate prodHierarchyValidityEndDate, @Nullable LocalDate prodHierarchyValidityStartDate, @Nullable String prodUnivHierarchy_Text, @Nullable Collection<SAP__Message> _Messages, List<ProdUnivHierNodeByHierID> to_ProdUnivHierNodeByHierID, List<ProdUniversalHierarchyText> to_Text)
-
-
Method Details
-
getType
- Specified by:
getTypein classVdmObject<ProdUniversalHierarchy>
-
setProdUnivHierarchy
(Key Field) Constraints: Not nullable, Maximum length: 20Original property name from the Odata EDM: ProdUnivHierarchy
- Parameters:
prodUnivHierarchy- Product Hierarchy
-
setProdHierarchyValidityEndDate
(Key Field) Constraints: Not nullableOriginal property name from the Odata EDM: ProdHierarchyValidityEndDate
- Parameters:
prodHierarchyValidityEndDate- Validity End Date
-
setProdHierarchyValidityStartDate
Constraints: NullableOriginal property name from the Odata EDM: ProdHierarchyValidityStartDate
- Parameters:
prodHierarchyValidityStartDate- Validity Start Date
-
setProdUnivHierarchy_Text
Constraints: Not nullable, Maximum length: 50Original property name from the Odata EDM: ProdUnivHierarchy_Text
- Parameters:
prodUnivHierarchy_Text- Hierarchy description
-
set_Messages
Constraints: Not nullableOriginal property name from the Odata EDM: SAP__Messages
- Parameters:
_Messages- The _Messages to set.
-
getEntityCollection
- Specified by:
getEntityCollectionin classVdmEntity<ProdUniversalHierarchy>
-
getKey
- Overrides:
getKeyin classVdmObject<ProdUniversalHierarchy>
-
toMapOfFields
- Overrides:
toMapOfFieldsin classVdmObject<ProdUniversalHierarchy>
-
fromMap
- Overrides:
fromMapin classVdmObject<ProdUniversalHierarchy>
-
getDefaultServicePath
- Overrides:
getDefaultServicePathin classVdmEntity<ProdUniversalHierarchy>
-
getProdUnivHierNodeByHierIDIfPresent
@Nonnull public io.vavr.control.Option<List<ProdUnivHierNodeByHierID>> getProdUnivHierNodeByHierIDIfPresent()Retrieval of associated ProdUnivHierNodeByHierID entities (one to many). This corresponds to the OData navigation property _ProdUnivHierNodeByHierID.If the navigation property for an entity ProdUniversalHierarchy 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 _ProdUnivHierNodeByHierID is already loaded, the result
will contain the ProdUnivHierNodeByHierID entities. If not, an
Optionwith result stateemptyis returned.
-
setProdUnivHierNodeByHierID
Overwrites the list of associated ProdUnivHierNodeByHierID entities for the loaded navigation property _ProdUnivHierNodeByHierID.If the navigation property _ProdUnivHierNodeByHierID of a queried ProdUniversalHierarchy 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 ProdUnivHierNodeByHierID entities.
-
addProdUnivHierNodeByHierID
Adds elements to the list of associated ProdUnivHierNodeByHierID entities. This corresponds to the OData navigation property _ProdUnivHierNodeByHierID.If the navigation property _ProdUnivHierNodeByHierID of a queried ProdUniversalHierarchy 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 ProdUnivHierNodeByHierID entities.
-
getTextIfPresent
Retrieval of associated ProdUniversalHierarchyText entities (one to many). This corresponds to the OData navigation property _Text.If the navigation property for an entity ProdUniversalHierarchy 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
ProdUniversalHierarchyText entities. If not, an
Optionwith result stateemptyis returned.
-
setText
Overwrites the list of associated ProdUniversalHierarchyText entities for the loaded navigation property _Text.If the navigation property _Text of a queried ProdUniversalHierarchy 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 ProdUniversalHierarchyText entities.
-
addText
Adds elements to the list of associated ProdUniversalHierarchyText entities. This corresponds to the OData navigation property _Text.If the navigation property _Text of a queried ProdUniversalHierarchy 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 ProdUniversalHierarchyText entities.
-
builder
-
getProdUnivHierarchy
(Key Field) Constraints: Not nullable, Maximum length: 20Original property name from the Odata EDM: ProdUnivHierarchy
- Returns:
- Product Hierarchy
-
getProdHierarchyValidityEndDate
(Key Field) Constraints: Not nullableOriginal property name from the Odata EDM: ProdHierarchyValidityEndDate
- Returns:
- Validity End Date
-
getProdHierarchyValidityStartDate
Constraints: NullableOriginal property name from the Odata EDM: ProdHierarchyValidityStartDate
- Returns:
- Validity Start Date
-
getProdUnivHierarchy_Text
Constraints: Not nullable, Maximum length: 50Original property name from the Odata EDM: ProdUnivHierarchy_Text
- Returns:
- Hierarchy description
-
get_Messages
Constraints: Not nullableOriginal property name from the Odata EDM: SAP__Messages
- Returns:
- The _Messages contained in this
VdmEntity.
-
toString
- Overrides:
toStringin classVdmObject<ProdUniversalHierarchy>
-
equals
- Overrides:
equalsin classVdmEntity<ProdUniversalHierarchy>
-
canEqual
- Overrides:
canEqualin classVdmEntity<ProdUniversalHierarchy>
-
hashCode
public int hashCode()- Overrides:
hashCodein classVdmEntity<ProdUniversalHierarchy>
-
getOdataType
- Specified by:
getOdataTypein classVdmObject<ProdUniversalHierarchy>
-