java.lang.Object
com.sap.cloud.sdk.datamodel.odata.helper.VdmObject<EntityT>
com.sap.cloud.sdk.datamodel.odata.helper.VdmEntity<PurchaseContractNotes>
com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.purchasecontractv2.PurchaseContractNotes

public class PurchaseContractNotes extends VdmEntity<PurchaseContractNotes>
Header Notes

Original entity name from the Odata EDM: A_PurchaseContractNotesType

  • Field Details

    • ALL_FIELDS

      public static final PurchaseContractNotesSelectable ALL_FIELDS
      Selector for all available fields of PurchaseContractNotes.
    • LANGUAGE

      public static final PurchaseContractNotesField<String> LANGUAGE
      Use with available fluent helpers to apply the Language field to query operations.
    • TEXT_OBJECT_TYPE

      public static final PurchaseContractNotesField<String> TEXT_OBJECT_TYPE
      Use with available fluent helpers to apply the TextObjectType field to query operations.
    • TECHNICAL_OBJECT_TYPE

      public static final PurchaseContractNotesField<String> TECHNICAL_OBJECT_TYPE
      Use with available fluent helpers to apply the TechnicalObjectType field to query operations.
    • ARCHITECTURAL_OBJECT_NUMBER

      public static final PurchaseContractNotesField<String> ARCHITECTURAL_OBJECT_NUMBER
      Use with available fluent helpers to apply the ArchitecturalObjectNumber field to query operations.
    • PURCHASE_CONTRACT

      public static final PurchaseContractNotesField<String> PURCHASE_CONTRACT
      Use with available fluent helpers to apply the PurchaseContract field to query operations.
    • NOTE_DESCRIPTION

      public static final PurchaseContractNotesField<String> NOTE_DESCRIPTION
      Use with available fluent helpers to apply the NoteDescription field to query operations.
  • Constructor Details

    • PurchaseContractNotes

      public PurchaseContractNotes()
    • PurchaseContractNotes

      public PurchaseContractNotes(@Nullable String language, @Nullable String textObjectType, @Nullable String technicalObjectType, @Nullable String architecturalObjectNumber, @Nullable String purchaseContract, @Nullable String noteDescription)
  • Method Details

    • getType

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

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

      Original property name from the Odata EDM: TechnicalObjectType

      Parameters:
      technicalObjectType - Texts: application object
    • setArchitecturalObjectNumber

      public void setArchitecturalObjectNumber(@Nullable String architecturalObjectNumber)
      (Key Field) Constraints: Not nullable, Maximum length: 70

      Original property name from the Odata EDM: ArchitecturalObjectNumber

      Parameters:
      architecturalObjectNumber - Name
    • setPurchaseContract

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

      Original property name from the Odata EDM: PurchaseContract

      Parameters:
      purchaseContract - Purchasing Document Number
    • setNoteDescription

      public void setNoteDescription(@Nullable String noteDescription)
      Constraints: none

      Original property name from the Odata EDM: NoteDescription

      Parameters:
      noteDescription - Long Text
    • getEntityCollection

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

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

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

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

      @Nonnull public static <T> PurchaseContractNotesField<T> field(@Nonnull String fieldName, @Nonnull Class<T> fieldType)
      Use with available fluent helpers to apply an extension field to query operations.
      Type Parameters:
      T - The type of the extension field when performing value comparisons.
      Parameters:
      fieldName - The name of the extension field as returned by the OData service.
      fieldType - The Java type to use for the extension field when performing value comparisons.
      Returns:
      A representation of an extension field from this entity.
    • field

      @Nonnull public static <T, DomainT> PurchaseContractNotesField<T> field(@Nonnull String fieldName, @Nonnull TypeConverter<T,DomainT> typeConverter)
      Use with available fluent helpers to apply an extension field to query operations.
      Type Parameters:
      T - The type of the extension field when performing value comparisons.
      DomainT - The type of the extension field as returned by the OData service.
      Parameters:
      typeConverter - A TypeConverter<T, DomainT> instance whose first generic type matches the Java type of the field
      fieldName - The name of the extension field as returned by the OData service.
      Returns:
      A representation of an extension field from this entity, holding a reference to the given TypeConverter.
    • getDestinationForFetch

      @Nullable public HttpDestinationProperties getDestinationForFetch()
      Overrides:
      getDestinationForFetch in class VdmEntity<PurchaseContractNotes>
    • setServicePathForFetch

      protected void setServicePathForFetch(@Nullable String servicePathForFetch)
      Overrides:
      setServicePathForFetch in class VdmEntity<PurchaseContractNotes>
    • attachToService

      public void attachToService(@Nullable String servicePath, @Nonnull HttpDestinationProperties destination)
      Overrides:
      attachToService in class VdmEntity<PurchaseContractNotes>
    • getDefaultServicePath

      protected String getDefaultServicePath()
      Overrides:
      getDefaultServicePath in class VdmEntity<PurchaseContractNotes>
    • builder

      @Nonnull public static PurchaseContractNotes.PurchaseContractNotesBuilder builder()
    • getLanguage

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

      Original property name from the Odata EDM: Language

      Returns:
      Language Key
    • getTextObjectType

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

      Original property name from the Odata EDM: TextObjectType

      Returns:
      Text ID
    • getTechnicalObjectType

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

      Original property name from the Odata EDM: TechnicalObjectType

      Returns:
      Texts: application object
    • getArchitecturalObjectNumber

      @Nullable public String getArchitecturalObjectNumber()
      (Key Field) Constraints: Not nullable, Maximum length: 70

      Original property name from the Odata EDM: ArchitecturalObjectNumber

      Returns:
      Name
    • getPurchaseContract

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

      Original property name from the Odata EDM: PurchaseContract

      Returns:
      Purchasing Document Number
    • getNoteDescription

      @Nullable public String getNoteDescription()
      Constraints: none

      Original property name from the Odata EDM: NoteDescription

      Returns:
      Long Text
    • toString

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

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

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

      public int hashCode()
      Overrides:
      hashCode in class VdmEntity<PurchaseContractNotes>