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

public class PurchaseOrderNote extends VdmEntity<PurchaseOrderNote> implements VdmEntitySet
Header Notes

Original entity name from the Odata EDM: PurchaseOrderNote_Type

  • Field Details

  • Constructor Details

    • PurchaseOrderNote

      public PurchaseOrderNote()
    • PurchaseOrderNote

      public PurchaseOrderNote(@Nullable String purchaseOrder, @Nullable String textObjectType, @Nullable String language, @Nullable String plainLongText, @Nullable PurchaseOrder to_PurchaseOrder)
  • Method Details

    • getType

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

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

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

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

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

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

      @Nonnull protected Map<String,Object> toMapOfNavigationProperties()
      Overrides:
      toMapOfNavigationProperties in class VdmObject<PurchaseOrderNote>
    • 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 PurchaseOrderNote 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.
    • builder

      @Nonnull public static PurchaseOrderNote.PurchaseOrderNoteBuilder 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
    • 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
    • toString

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

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

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

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

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