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

public class PartnerCompany extends VdmEntity<PartnerCompany>
Trading Partner

Original entity name from the Odata EDM: A_PartnerCompanyType

  • Field Details

    • ALL_FIELDS

      public static final PartnerCompanySelectable ALL_FIELDS
      Selector for all available fields of PartnerCompany.
    • PARTNER_COMPANY

      public static final PartnerCompanyField<String> PARTNER_COMPANY
      Use with available fluent helpers to apply the PartnerCompany field to query operations.
    • COMPANY_NAME

      public static final PartnerCompanyField<String> COMPANY_NAME
      Use with available fluent helpers to apply the CompanyName field to query operations.
    • LANGUAGE

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

    • PartnerCompany

      public PartnerCompany()
    • PartnerCompany

      public PartnerCompany(@Nullable String partnerCompany, @Nullable String companyName, @Nullable String language)
  • Method Details

    • getType

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

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

      Original property name from the Odata EDM: PartnerCompany

      Parameters:
      partnerCompany - Company
    • setCompanyName

      public void setCompanyName(@Nullable String companyName)
      Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: CompanyName

      Parameters:
      companyName - Company Name
    • setLanguage

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

      Original property name from the Odata EDM: Language

      Parameters:
      language - Language Key
    • getEntityCollection

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

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

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

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

      @Nonnull public static <T> PartnerCompanyField<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> PartnerCompanyField<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<PartnerCompany>
    • setServicePathForFetch

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

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

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

      @Nonnull public static PartnerCompany.PartnerCompanyBuilder builder()
    • getPartnerCompany

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

      Original property name from the Odata EDM: PartnerCompany

      Returns:
      Company
    • getCompanyName

      @Nullable public String getCompanyName()
      Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: CompanyName

      Returns:
      Company Name
    • getLanguage

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

      Original property name from the Odata EDM: Language

      Returns:
      Language Key
    • toString

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

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

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

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