java.lang.Object
com.sap.cloud.sdk.datamodel.odatav4.core.VdmObject<EntityT>
com.sap.cloud.sdk.datamodel.odatav4.core.VdmEntity<ProdUnivHierNormalNode>
com.sap.cloud.sdk.s4hana.datamodel.odatav4.namespaces.productstoproducthierarchiesassignment.ProdUnivHierNormalNode
All Implemented Interfaces:
VdmEntitySet

public class ProdUnivHierNormalNode extends VdmEntity<ProdUnivHierNormalNode> implements VdmEntitySet
Product Universal Hierarchy -Normal Node

Original entity name from the Odata EDM: ProdUnivHierNormalNodeType

  • Field Details

  • Constructor Details

    • ProdUnivHierNormalNode

      public ProdUnivHierNormalNode()
    • ProdUnivHierNormalNode

      public ProdUnivHierNormalNode(@Nullable String prodUnivHierarchy, @Nullable String hierarchyNode, @Nullable LocalDate prodHierarchyValidityEndDate, @Nullable LocalDate prodHierarchyValidityStartDate, @Nullable String parentNode, @Nullable String nodeType, @Nullable OffsetDateTime prodUnivHierLastChangeDateTime, @Nullable String hierarchyNode_Text, List<ProdUnivHierProdByHierNode> to_ProdUnivHierProdByHierNode)
  • Method Details

    • getType

      @Nonnull public Class<ProdUnivHierNormalNode> getType()
      Specified by:
      getType in class VdmObject<ProdUnivHierNormalNode>
    • setProdUnivHierarchy

      public void setProdUnivHierarchy(@Nullable String prodUnivHierarchy)
      (Key Field) Constraints: Not nullable, Maximum length: 20

      Original property name from the Odata EDM: ProdUnivHierarchy

      Parameters:
      prodUnivHierarchy - Product Hierarchy
    • setHierarchyNode

      public void setHierarchyNode(@Nullable String hierarchyNode)
      (Key Field) Constraints: Not nullable, Maximum length: 50

      Original property name from the Odata EDM: HierarchyNode

      Parameters:
      hierarchyNode - Hierarchy node
    • setProdHierarchyValidityEndDate

      public void setProdHierarchyValidityEndDate(@Nullable LocalDate prodHierarchyValidityEndDate)
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: ProdHierarchyValidityEndDate

      Parameters:
      prodHierarchyValidityEndDate - Validity End Date
    • setProdHierarchyValidityStartDate

      public void setProdHierarchyValidityStartDate(@Nullable LocalDate prodHierarchyValidityStartDate)
      Constraints: Nullable

      Original property name from the Odata EDM: ProdHierarchyValidityStartDate

      Parameters:
      prodHierarchyValidityStartDate - Validity Start Date
    • setParentNode

      public void setParentNode(@Nullable String parentNode)
      Constraints: Not nullable, Maximum length: 50

      Original property name from the Odata EDM: ParentNode

      Parameters:
      parentNode - Product Hierarchy Parent Node
    • setNodeType

      public void setNodeType(@Nullable String nodeType)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: NodeType

      Parameters:
      nodeType - Hierarchy node type
    • setProdUnivHierLastChangeDateTime

      public void setProdUnivHierLastChangeDateTime(@Nullable OffsetDateTime prodUnivHierLastChangeDateTime)
      Constraints: Nullable

      Original property name from the Odata EDM: ProdUnivHierLastChangeDateTime

      Parameters:
      prodUnivHierLastChangeDateTime - Last Updated At (Timestamp)
    • setHierarchyNode_Text

      public void setHierarchyNode_Text(@Nullable String hierarchyNode_Text)
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: HierarchyNode_Text

      Parameters:
      hierarchyNode_Text - Product Hierarchy Node Value Text
    • getEntityCollection

      protected String getEntityCollection()
      Specified by:
      getEntityCollection in class VdmEntity<ProdUnivHierNormalNode>
    • getKey

      @Nonnull protected ODataEntityKey getKey()
      Overrides:
      getKey in class VdmObject<ProdUnivHierNormalNode>
    • toMapOfFields

      @Nonnull protected Map<String,Object> toMapOfFields()
      Overrides:
      toMapOfFields in class VdmObject<ProdUnivHierNormalNode>
    • fromMap

      protected void fromMap(Map<String,Object> inputValues)
      Overrides:
      fromMap in class VdmObject<ProdUnivHierNormalNode>
    • getDefaultServicePath

      protected String getDefaultServicePath()
      Overrides:
      getDefaultServicePath in class VdmEntity<ProdUnivHierNormalNode>
    • toMapOfNavigationProperties

      @Nonnull protected Map<String,Object> toMapOfNavigationProperties()
      Overrides:
      toMapOfNavigationProperties in class VdmObject<ProdUnivHierNormalNode>
    • getProdUnivHierProdByHierNodeIfPresent

      @Nonnull public io.vavr.control.Option<List<ProdUnivHierProdByHierNode>> getProdUnivHierProdByHierNodeIfPresent()
      Retrieval of associated ProdUnivHierProdByHierNode entities (one to many). This corresponds to the OData navigation property _ProdUnivHierProdByHierNode.

      If the navigation property for an entity ProdUnivHierNormalNode has not been resolved yet, this method will not query further information. Instead its Option result state will be empty.

      Returns:
      If the information for navigation property _ProdUnivHierProdByHierNode is already loaded, the result will contain the ProdUnivHierProdByHierNode entities. If not, an Option with result state empty is returned.
    • setProdUnivHierProdByHierNode

      public void setProdUnivHierProdByHierNode(@Nonnull List<ProdUnivHierProdByHierNode> value)
      Overwrites the list of associated ProdUnivHierProdByHierNode entities for the loaded navigation property _ProdUnivHierProdByHierNode.

      If the navigation property _ProdUnivHierProdByHierNode of a queried ProdUnivHierNormalNode 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 ProdUnivHierProdByHierNode entities.
    • addProdUnivHierProdByHierNode

      public void addProdUnivHierProdByHierNode(ProdUnivHierProdByHierNode... entity)
      Adds elements to the list of associated ProdUnivHierProdByHierNode entities. This corresponds to the OData navigation property _ProdUnivHierProdByHierNode.

      If the navigation property _ProdUnivHierProdByHierNode of a queried ProdUnivHierNormalNode 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 ProdUnivHierProdByHierNode entities.
    • builder

      @Nonnull public static ProdUnivHierNormalNode.ProdUnivHierNormalNodeBuilder builder()
    • getProdUnivHierarchy

      @Nullable public String getProdUnivHierarchy()
      (Key Field) Constraints: Not nullable, Maximum length: 20

      Original property name from the Odata EDM: ProdUnivHierarchy

      Returns:
      Product Hierarchy
    • getHierarchyNode

      @Nullable public String getHierarchyNode()
      (Key Field) Constraints: Not nullable, Maximum length: 50

      Original property name from the Odata EDM: HierarchyNode

      Returns:
      Hierarchy node
    • getProdHierarchyValidityEndDate

      @Nullable public LocalDate getProdHierarchyValidityEndDate()
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: ProdHierarchyValidityEndDate

      Returns:
      Validity End Date
    • getProdHierarchyValidityStartDate

      @Nullable public LocalDate getProdHierarchyValidityStartDate()
      Constraints: Nullable

      Original property name from the Odata EDM: ProdHierarchyValidityStartDate

      Returns:
      Validity Start Date
    • getParentNode

      @Nullable public String getParentNode()
      Constraints: Not nullable, Maximum length: 50

      Original property name from the Odata EDM: ParentNode

      Returns:
      Product Hierarchy Parent Node
    • getNodeType

      @Nullable public String getNodeType()
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: NodeType

      Returns:
      Hierarchy node type
    • getProdUnivHierLastChangeDateTime

      @Nullable public OffsetDateTime getProdUnivHierLastChangeDateTime()
      Constraints: Nullable

      Original property name from the Odata EDM: ProdUnivHierLastChangeDateTime

      Returns:
      Last Updated At (Timestamp)
    • getHierarchyNode_Text

      @Nullable public String getHierarchyNode_Text()
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: HierarchyNode_Text

      Returns:
      Product Hierarchy Node Value Text
    • toString

      @Nonnull public String toString()
      Overrides:
      toString in class VdmObject<ProdUnivHierNormalNode>
    • equals

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class VdmEntity<ProdUnivHierNormalNode>
    • canEqual

      protected boolean canEqual(@Nullable Object other)
      Overrides:
      canEqual in class VdmEntity<ProdUnivHierNormalNode>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class VdmEntity<ProdUnivHierNormalNode>
    • getOdataType

      public String getOdataType()
      Specified by:
      getOdataType in class VdmObject<ProdUnivHierNormalNode>