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

public class PurCtrPartners extends VdmEntity<PurCtrPartners>
Partner

Original entity name from the Odata EDM: A_PurCtrPartnersType

  • Field Details

    • ALL_FIELDS

      public static final PurCtrPartnersSelectable ALL_FIELDS
      Selector for all available fields of PurCtrPartners.
    • PURCHASE_CONTRACT

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

      public static final PurCtrPartnersField<String> PURCHASE_CONTRACT_ITEM
      Use with available fluent helpers to apply the PurchaseContractItem field to query operations.
    • PURCHASING_ORGANIZATION

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

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

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

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

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

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

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

    • PurCtrPartners

      public PurCtrPartners()
    • PurCtrPartners

      public PurCtrPartners(@Nullable String purchaseContract, @Nullable String purchaseContractItem, @Nullable String purchasingOrganization, @Nullable String partnerFunction, @Nullable String plant, @Nullable String supplierSubrange, @Nullable String partnerCounter, @Nullable String supplier, @Nullable Boolean defaultPartner)
  • Method Details

    • getType

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

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

      Original property name from the Odata EDM: PurchaseContractItem

      Parameters:
      purchaseContractItem - 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
    • 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
    • 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
    • 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
    • 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<PurCtrPartners>
    • getKey

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

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

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

      @Nonnull public static <T> PurCtrPartnersField<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> PurCtrPartnersField<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<PurCtrPartners>
    • setServicePathForFetch

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

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

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

      @Nonnull public static PurCtrPartners.PurCtrPartnersBuilder builder()
    • 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
    • getPurchaseContractItem

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

      Original property name from the Odata EDM: PurchaseContractItem

      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
    • getPartnerFunction

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

      Original property name from the Odata EDM: PartnerFunction

      Returns:
      Partner Function
    • getPlant

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

      Original property name from the Odata EDM: Plant

      Returns:
      Plant
    • getSupplierSubrange

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

      Original property name from the Odata EDM: SupplierSubrange

      Returns:
      Supplier Subrange
    • 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<PurCtrPartners>
    • equals

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

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

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