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

public class ProdUnivHierProdByHierNode extends VdmEntity<ProdUnivHierProdByHierNode> implements VdmEntitySet
Product Universal Hierarchy - Products

Original entity name from the Odata EDM: ProdUnivHierProdByHierNodeType

  • Field Details

  • Constructor Details

    • ProdUnivHierProdByHierNode

      public ProdUnivHierProdByHierNode()
    • ProdUnivHierProdByHierNode

      public ProdUnivHierProdByHierNode(@Nullable String prodUnivHierarchy, @Nullable String hierarchyNode, @Nullable LocalDate prodHierarchyValidityEndDate, @Nullable String product, @Nullable LocalDate prodHierarchyValidityStartDate, @Nullable String parentNode, @Nullable String nodeType, @Nullable String product_Text, @Nullable Collection<SAP__Message> _Messages, @Nullable ProdUnivHierNormalNode to_ProdUnivHierNormalNode)
  • Method Details

    • getType

      @Nonnull public Class<ProdUnivHierProdByHierNode> getType()
      Specified by:
      getType in class VdmObject<ProdUnivHierProdByHierNode>
    • 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
    • setProduct

      public void setProduct(@Nullable String product)
      (Key Field) Constraints: Not nullable, Maximum length: 18

      Original property name from the Odata EDM: Product

      Parameters:
      product - Product Number
    • 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
    • setProduct_Text

      public void setProduct_Text(@Nullable String product_Text)
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: Product_Text

      Parameters:
      product_Text - Product Description
    • set_Messages

      public void set_Messages(@Nullable Collection<SAP__Message> _Messages)
      Constraints: Not nullable

      Original property name from the Odata EDM: SAP__Messages

      Parameters:
      _Messages - The _Messages to set.
    • getEntityCollection

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

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

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

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

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

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

      @Nonnull public io.vavr.control.Option<ProdUnivHierNormalNode> getProdUnivHierNormalNodeIfPresent()
      Retrieval of associated ProdUnivHierNormalNode entity (one to one). This corresponds to the OData navigation property _ProdUnivHierNormalNode.

      If the navigation property for an entity ProdUnivHierProdByHierNode 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 _ProdUnivHierNormalNode is already loaded, the result will contain the ProdUnivHierNormalNode entity. If not, an Option with result state empty is returned.
    • setProdUnivHierNormalNode

      public void setProdUnivHierNormalNode(ProdUnivHierNormalNode value)
      Overwrites the associated ProdUnivHierNormalNode entity for the loaded navigation property _ProdUnivHierNormalNode.
      Parameters:
      value - New ProdUnivHierNormalNode entity.
    • moveProductToAnotherNode

      @Nonnull public static BoundAction.SingleToSingle<ProdUnivHierProdByHierNode,ProdUnivHierProdByHierNode> moveProductToAnotherNode(@Nonnull String productHierarchyTargetNode)
      Action that can be applied to any entity object of this class.

      Parameters:
      productHierarchyTargetNode - Constraints: Not nullable, Maximum length: 50

      Original parameter name from the Odata EDM: ProductHierarchyTargetNode

      Returns:
      Action object prepared with the given parameters to be applied to any entity object of this class.

      To execute it use the service.forEntity(entity).applyAction(thisAction) API.
    • 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
    • getProduct

      @Nullable public String getProduct()
      (Key Field) Constraints: Not nullable, Maximum length: 18

      Original property name from the Odata EDM: Product

      Returns:
      Product Number
    • 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
    • getProduct_Text

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

      Original property name from the Odata EDM: Product_Text

      Returns:
      Product Description
    • get_Messages

      @Nullable public Collection<SAP__Message> get_Messages()
      Constraints: Not nullable

      Original property name from the Odata EDM: SAP__Messages

      Returns:
      The _Messages contained in this VdmEntity.
    • toString

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

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

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

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

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