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

public class PurchaseOrderItemNote extends VdmEntity<PurchaseOrderItemNote> implements VdmEntitySet
Item Notes

Original entity name from the Odata EDM: PurchaseOrderItemNote_Type

  • Field Details

  • Constructor Details

    • PurchaseOrderItemNote

      public PurchaseOrderItemNote()
    • PurchaseOrderItemNote

      public PurchaseOrderItemNote(@Nullable String purchaseOrder, @Nullable String purchaseOrderItem, @Nullable String textObjectType, @Nullable String language, @Nullable String plainLongText, @Nullable String purchaseOrderItemUniqueID, @Nullable PurchaseOrder to_PurchaseOrder, @Nullable PurchaseOrderItem to_PurchaseOrderItem)
  • Method Details

    • getType

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

      public void setPurchaseOrder(@Nullable String purchaseOrder)
      (Key Field) Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: PurchaseOrder

      Parameters:
      purchaseOrder - Purchase Order Number
    • setPurchaseOrderItem

      public void setPurchaseOrderItem(@Nullable String purchaseOrderItem)
      (Key Field) Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: PurchaseOrderItem

      Parameters:
      purchaseOrderItem - Item Number of Purchase Order
    • setTextObjectType

      public void setTextObjectType(@Nullable String textObjectType)
      (Key Field) Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: TextObjectType

      Parameters:
      textObjectType - Text ID
    • setLanguage

      public void setLanguage(@Nullable String language)
      (Key Field) Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: Language

      Parameters:
      language - Language Key
    • setPlainLongText

      public void setPlainLongText(@Nullable String plainLongText)
      Constraints: Not nullable

      Original property name from the Odata EDM: PlainLongText

      Parameters:
      plainLongText - Long Text
    • setPurchaseOrderItemUniqueID

      public void setPurchaseOrderItemUniqueID(@Nullable String purchaseOrderItemUniqueID)
      Constraints: Not nullable, Maximum length: 15

      Original property name from the Odata EDM: PurchaseOrderItemUniqueID

      Parameters:
      purchaseOrderItemUniqueID - Concatenation of EBELN and EBELP
    • getEntityCollection

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

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

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

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

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

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

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

      If the navigation property for an entity PurchaseOrderItemNote 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 _PurchaseOrder is already loaded, the result will contain the PurchaseOrder entity. If not, an Option with result state empty is returned.
    • setPurchaseOrder

      public void setPurchaseOrder(PurchaseOrder value)
      Overwrites the associated PurchaseOrder entity for the loaded navigation property _PurchaseOrder.
      Parameters:
      value - New PurchaseOrder entity.
    • getPurchaseOrderItemIfPresent

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

      If the navigation property for an entity PurchaseOrderItemNote 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 _PurchaseOrderItem is already loaded, the result will contain the PurchaseOrderItem entity. If not, an Option with result state empty is returned.
    • setPurchaseOrderItem

      public void setPurchaseOrderItem(PurchaseOrderItem value)
      Overwrites the associated PurchaseOrderItem entity for the loaded navigation property _PurchaseOrderItem.
      Parameters:
      value - New PurchaseOrderItem entity.
    • builder

      @Nonnull public static PurchaseOrderItemNote.PurchaseOrderItemNoteBuilder builder()
    • getPurchaseOrder

      @Nullable public String getPurchaseOrder()
      (Key Field) Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: PurchaseOrder

      Returns:
      Purchase Order Number
    • getPurchaseOrderItem

      @Nullable public String getPurchaseOrderItem()
      (Key Field) Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: PurchaseOrderItem

      Returns:
      Item Number of Purchase Order
    • getTextObjectType

      @Nullable public String getTextObjectType()
      (Key Field) Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: TextObjectType

      Returns:
      Text ID
    • getLanguage

      @Nullable public String getLanguage()
      (Key Field) Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: Language

      Returns:
      Language Key
    • getPlainLongText

      @Nullable public String getPlainLongText()
      Constraints: Not nullable

      Original property name from the Odata EDM: PlainLongText

      Returns:
      Long Text
    • getPurchaseOrderItemUniqueID

      @Nullable public String getPurchaseOrderItemUniqueID()
      Constraints: Not nullable, Maximum length: 15

      Original property name from the Odata EDM: PurchaseOrderItemUniqueID

      Returns:
      Concatenation of EBELN and EBELP
    • toString

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

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

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

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

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