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

public class SchAgrmtPartner extends VdmEntity<SchAgrmtPartner>
Partner

Original entity name from the Odata EDM: A_SchAgrmtPartnerType

  • Field Details

    • ALL_FIELDS

      public static final SchAgrmtPartnerSelectable ALL_FIELDS
      Selector for all available fields of SchAgrmtPartner.
    • SCHEDULING_AGREEMENT

      public static final SchAgrmtPartnerField<String> SCHEDULING_AGREEMENT
      Use with available fluent helpers to apply the SchedulingAgreement field to query operations.
    • SCHEDULING_AGREEMENT_ITEM

      public static final SchAgrmtPartnerField<String> SCHEDULING_AGREEMENT_ITEM
      Use with available fluent helpers to apply the SchedulingAgreementItem field to query operations.
    • PURCHASING_ORGANIZATION

      public static final SchAgrmtPartnerField<String> PURCHASING_ORGANIZATION
      Use with available fluent helpers to apply the PurchasingOrganization field to query operations.
    • SUPPLIER_SUBRANGE

      public static final SchAgrmtPartnerField<String> SUPPLIER_SUBRANGE
      Use with available fluent helpers to apply the SupplierSubrange field to query operations.
    • PLANT

      public static final SchAgrmtPartnerField<String> PLANT
      Use with available fluent helpers to apply the Plant field to query operations.
    • PARTNER_FUNCTION

      public static final SchAgrmtPartnerField<String> PARTNER_FUNCTION
      Use with available fluent helpers to apply the PartnerFunction field to query operations.
    • PARTNER_COUNTER

      public static final SchAgrmtPartnerField<String> PARTNER_COUNTER
      Use with available fluent helpers to apply the PartnerCounter field to query operations.
    • SUPPLIER

      public static final SchAgrmtPartnerField<String> SUPPLIER
      Use with available fluent helpers to apply the Supplier field to query operations.
    • DEFAULT_PARTNER

      public static final SchAgrmtPartnerField<Boolean> DEFAULT_PARTNER
      Use with available fluent helpers to apply the DefaultPartner field to query operations.
  • Constructor Details

    • SchAgrmtPartner

      public SchAgrmtPartner()
    • SchAgrmtPartner

      public SchAgrmtPartner(@Nullable String schedulingAgreement, @Nullable String schedulingAgreementItem, @Nullable String purchasingOrganization, @Nullable String supplierSubrange, @Nullable String plant, @Nullable String partnerFunction, @Nullable String partnerCounter, @Nullable String supplier, @Nullable Boolean defaultPartner)
  • Method Details

    • getType

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

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

      Original property name from the Odata EDM: SchedulingAgreement

      Parameters:
      schedulingAgreement - Purchasing Document Number
    • setSchedulingAgreementItem

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

      Original property name from the Odata EDM: SchedulingAgreementItem

      Parameters:
      schedulingAgreementItem - Item Number of Purchasing Document
    • setPurchasingOrganization

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

      Original property name from the Odata EDM: PurchasingOrganization

      Parameters:
      purchasingOrganization - Purchasing Organization
    • setSupplierSubrange

      public void setSupplierSubrange(@Nullable String supplierSubrange)
      (Key Field) Constraints: Not nullable, Maximum length: 6

      Original property name from the Odata EDM: SupplierSubrange

      Parameters:
      supplierSubrange - Supplier Subrange
    • setPlant

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

      Original property name from the Odata EDM: Plant

      Parameters:
      plant - Plant
    • setPartnerFunction

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

      Original property name from the Odata EDM: PartnerFunction

      Parameters:
      partnerFunction - Partner Function
    • setPartnerCounter

      public void setPartnerCounter(@Nullable String partnerCounter)
      (Key Field) Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: PartnerCounter

      Parameters:
      partnerCounter - Partner counter
    • setSupplier

      public void setSupplier(@Nullable String supplier)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: Supplier

      Parameters:
      supplier - Account Number of Supplier
    • setDefaultPartner

      public void setDefaultPartner(@Nullable Boolean defaultPartner)
      Constraints: none

      Original property name from the Odata EDM: DefaultPartner

      Parameters:
      defaultPartner - Default Partner
    • getEntityCollection

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

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

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

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

      @Nonnull public static <T> SchAgrmtPartnerField<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> SchAgrmtPartnerField<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<SchAgrmtPartner>
    • setServicePathForFetch

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

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

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

      @Nonnull public static SchAgrmtPartner.SchAgrmtPartnerBuilder builder()
    • getSchedulingAgreement

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

      Original property name from the Odata EDM: SchedulingAgreement

      Returns:
      Purchasing Document Number
    • getSchedulingAgreementItem

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

      Original property name from the Odata EDM: SchedulingAgreementItem

      Returns:
      Item Number of Purchasing Document
    • getPurchasingOrganization

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

      Original property name from the Odata EDM: PurchasingOrganization

      Returns:
      Purchasing Organization
    • getSupplierSubrange

      @Nullable public String getSupplierSubrange()
      (Key Field) Constraints: Not nullable, Maximum length: 6

      Original property name from the Odata EDM: SupplierSubrange

      Returns:
      Supplier Subrange
    • getPlant

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

      Original property name from the Odata EDM: Plant

      Returns:
      Plant
    • getPartnerFunction

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

      Original property name from the Odata EDM: PartnerFunction

      Returns:
      Partner Function
    • getPartnerCounter

      @Nullable public String getPartnerCounter()
      (Key Field) Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: PartnerCounter

      Returns:
      Partner counter
    • getSupplier

      @Nullable public String getSupplier()
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: Supplier

      Returns:
      Account Number of Supplier
    • getDefaultPartner

      @Nullable public Boolean getDefaultPartner()
      Constraints: none

      Original property name from the Odata EDM: DefaultPartner

      Returns:
      Default Partner
    • toString

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

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

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

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