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

public class BusinessPartnerRole extends VdmEntity<BusinessPartnerRole>
Role

Original entity name from the Odata EDM: A_BusinessPartnerRoleType

  • Field Details

    • ALL_FIELDS

      public static final BusinessPartnerRoleSelectable ALL_FIELDS
      Selector for all available fields of BusinessPartnerRole.
    • BUSINESS_PARTNER

      public static final BusinessPartnerRoleField<String> BUSINESS_PARTNER
      Use with available fluent helpers to apply the BusinessPartner field to query operations.
    • BUSINESS_PARTNER_ROLE

      public static final BusinessPartnerRoleField<String> BUSINESS_PARTNER_ROLE
      Use with available fluent helpers to apply the BusinessPartnerRole field to query operations.
    • VALID_FROM

      public static final BusinessPartnerRoleField<ZonedDateTime> VALID_FROM
      Use with available fluent helpers to apply the ValidFrom field to query operations.
    • VALID_TO

      public static final BusinessPartnerRoleField<ZonedDateTime> VALID_TO
      Use with available fluent helpers to apply the ValidTo field to query operations.
    • AUTHORIZATION_GROUP

      public static final BusinessPartnerRoleField<String> AUTHORIZATION_GROUP
      Use with available fluent helpers to apply the AuthorizationGroup field to query operations.
  • Constructor Details

    • BusinessPartnerRole

      public BusinessPartnerRole()
    • BusinessPartnerRole

      public BusinessPartnerRole(@Nullable String businessPartner, @Nullable String businessPartnerRole, @Nullable ZonedDateTime validFrom, @Nullable ZonedDateTime validTo, @Nullable String authorizationGroup)
  • Method Details

    • getType

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

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

      Original property name from the Odata EDM: BusinessPartner

      Parameters:
      businessPartner - Business Partner Number
    • setBusinessPartnerRole

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

      Original property name from the Odata EDM: BusinessPartnerRole

      Parameters:
      businessPartnerRole - BP Role
    • setValidFrom

      public void setValidFrom(@Nullable ZonedDateTime validFrom)
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: ValidFrom

      Parameters:
      validFrom - Validity Start of a BP Role
    • setValidTo

      public void setValidTo(@Nullable ZonedDateTime validTo)
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: ValidTo

      Parameters:
      validTo - Validity End of a BP Role
    • setAuthorizationGroup

      public void setAuthorizationGroup(@Nullable String authorizationGroup)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: AuthorizationGroup

      Parameters:
      authorizationGroup - Authorization Group
    • getEntityCollection

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

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

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

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

      @Nonnull public static <T> BusinessPartnerRoleField<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> BusinessPartnerRoleField<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<BusinessPartnerRole>
    • setServicePathForFetch

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

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

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

      @Nonnull public static BusinessPartnerRole.BusinessPartnerRoleBuilder builder()
    • getBusinessPartner

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

      Original property name from the Odata EDM: BusinessPartner

      Returns:
      Business Partner Number
    • getBusinessPartnerRole

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

      Original property name from the Odata EDM: BusinessPartnerRole

      Returns:
      BP Role
    • getValidFrom

      @Nullable public ZonedDateTime getValidFrom()
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: ValidFrom

      Returns:
      Validity Start of a BP Role
    • getValidTo

      @Nullable public ZonedDateTime getValidTo()
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: ValidTo

      Returns:
      Validity End of a BP Role
    • getAuthorizationGroup

      @Nullable public String getAuthorizationGroup()
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: AuthorizationGroup

      Returns:
      Authorization Group
    • toString

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

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

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

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