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

public class BPRelationship extends VdmEntity<BPRelationship>
Business Partner Relationship

Original entity name from the Odata EDM: A_BPRelationshipType

  • Field Details

    • ALL_FIELDS

      public static final BPRelationshipSelectable ALL_FIELDS
      Selector for all available fields of BPRelationship.
    • RELATIONSHIP_NUMBER

      public static final BPRelationshipField<String> RELATIONSHIP_NUMBER
      Use with available fluent helpers to apply the RelationshipNumber field to query operations.
    • BUSINESS_PARTNER1

      public static final BPRelationshipField<String> BUSINESS_PARTNER1
      Use with available fluent helpers to apply the BusinessPartner1 field to query operations.
    • BUSINESS_PARTNER2

      public static final BPRelationshipField<String> BUSINESS_PARTNER2
      Use with available fluent helpers to apply the BusinessPartner2 field to query operations.
    • VALIDITY_END_DATE

      public static final BPRelationshipField<LocalDateTime> VALIDITY_END_DATE
      Use with available fluent helpers to apply the ValidityEndDate field to query operations.
    • VALIDITY_START_DATE

      public static final BPRelationshipField<LocalDateTime> VALIDITY_START_DATE
      Use with available fluent helpers to apply the ValidityStartDate field to query operations.
    • IS_STANDARD_RELATIONSHIP

      public static final BPRelationshipField<Boolean> IS_STANDARD_RELATIONSHIP
      Use with available fluent helpers to apply the IsStandardRelationship field to query operations.
    • RELATIONSHIP_CATEGORY

      public static final BPRelationshipField<String> RELATIONSHIP_CATEGORY
      Use with available fluent helpers to apply the RelationshipCategory field to query operations.
    • BP_RELATIONSHIP_TYPE

      public static final BPRelationshipField<String> BP_RELATIONSHIP_TYPE
      Use with available fluent helpers to apply the BPRelationshipType field to query operations.
    • CREATED_BY_USER

      public static final BPRelationshipField<String> CREATED_BY_USER
      Use with available fluent helpers to apply the CreatedByUser field to query operations.
    • CREATION_DATE

      public static final BPRelationshipField<LocalDateTime> CREATION_DATE
      Use with available fluent helpers to apply the CreationDate field to query operations.
    • CREATION_TIME

      public static final BPRelationshipField<LocalTime> CREATION_TIME
      Use with available fluent helpers to apply the CreationTime field to query operations.
    • LAST_CHANGED_BY_USER

      public static final BPRelationshipField<String> LAST_CHANGED_BY_USER
      Use with available fluent helpers to apply the LastChangedByUser field to query operations.
    • LAST_CHANGE_DATE

      public static final BPRelationshipField<LocalDateTime> LAST_CHANGE_DATE
      Use with available fluent helpers to apply the LastChangeDate field to query operations.
    • LAST_CHANGE_TIME

      public static final BPRelationshipField<LocalTime> LAST_CHANGE_TIME
      Use with available fluent helpers to apply the LastChangeTime field to query operations.
  • Constructor Details

    • BPRelationship

      public BPRelationship()
    • BPRelationship

      public BPRelationship(@Nullable String relationshipNumber, @Nullable String businessPartner1, @Nullable String businessPartner2, @Nullable LocalDateTime validityEndDate, @Nullable LocalDateTime validityStartDate, @Nullable Boolean isStandardRelationship, @Nullable String relationshipCategory, @Nullable String bPRelationshipType, @Nullable String createdByUser, @Nullable LocalDateTime creationDate, @Nullable LocalTime creationTime, @Nullable String lastChangedByUser, @Nullable LocalDateTime lastChangeDate, @Nullable LocalTime lastChangeTime)
  • Method Details

    • getType

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

      public void setRelationshipNumber(@Nullable String relationshipNumber)
      (Key Field) Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: RelationshipNumber

      Parameters:
      relationshipNumber - BP Relationship Number
    • setBusinessPartner1

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

      Original property name from the Odata EDM: BusinessPartner1

      Parameters:
      businessPartner1 - Business Partner Number
    • setBusinessPartner2

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

      Original property name from the Odata EDM: BusinessPartner2

      Parameters:
      businessPartner2 - Business Partner Number
    • setValidityEndDate

      public void setValidityEndDate(@Nullable LocalDateTime validityEndDate)
      (Key Field) Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: ValidityEndDate

      Parameters:
      validityEndDate - Validity Date (Valid To)
    • setValidityStartDate

      public void setValidityStartDate(@Nullable LocalDateTime validityStartDate)
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: ValidityStartDate

      Parameters:
      validityStartDate - Validity Date (Valid From)
    • setIsStandardRelationship

      public void setIsStandardRelationship(@Nullable Boolean isStandardRelationship)
      Constraints: none

      Original property name from the Odata EDM: IsStandardRelationship

      Parameters:
      isStandardRelationship - Standard Relationship
    • setRelationshipCategory

      public void setRelationshipCategory(@Nullable String relationshipCategory)
      Constraints: Not nullable, Maximum length: 6

      Original property name from the Odata EDM: RelationshipCategory

      Parameters:
      relationshipCategory - Business Partner Relationship Category
    • setBPRelationshipType

      public void setBPRelationshipType(@Nullable String bPRelationshipType)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: BPRelationshipType

      Parameters:
      bPRelationshipType - Business partner relationship type
    • setCreatedByUser

      public void setCreatedByUser(@Nullable String createdByUser)
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: CreatedByUser

      Parameters:
      createdByUser - User who created the object
    • setCreationDate

      public void setCreationDate(@Nullable LocalDateTime creationDate)
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: CreationDate

      Parameters:
      creationDate - Date on which the object was created
    • setCreationTime

      public void setCreationTime(@Nullable LocalTime creationTime)
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: CreationTime

      Parameters:
      creationTime - Time at which the object was created
    • setLastChangedByUser

      public void setLastChangedByUser(@Nullable String lastChangedByUser)
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: LastChangedByUser

      Parameters:
      lastChangedByUser - Last user to change object
    • setLastChangeDate

      public void setLastChangeDate(@Nullable LocalDateTime lastChangeDate)
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: LastChangeDate

      Parameters:
      lastChangeDate - Date when object was last changed
    • setLastChangeTime

      public void setLastChangeTime(@Nullable LocalTime lastChangeTime)
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: LastChangeTime

      Parameters:
      lastChangeTime - Time at which object was last changed
    • getEntityCollection

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

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

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

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

      @Nonnull public static <T> BPRelationshipField<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> BPRelationshipField<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<BPRelationship>
    • setServicePathForFetch

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

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

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

      @Nonnull public static BPRelationship.BPRelationshipBuilder builder()
    • getRelationshipNumber

      @Nullable public String getRelationshipNumber()
      (Key Field) Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: RelationshipNumber

      Returns:
      BP Relationship Number
    • getBusinessPartner1

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

      Original property name from the Odata EDM: BusinessPartner1

      Returns:
      Business Partner Number
    • getBusinessPartner2

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

      Original property name from the Odata EDM: BusinessPartner2

      Returns:
      Business Partner Number
    • getValidityEndDate

      @Nullable public LocalDateTime getValidityEndDate()
      (Key Field) Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: ValidityEndDate

      Returns:
      Validity Date (Valid To)
    • getValidityStartDate

      @Nullable public LocalDateTime getValidityStartDate()
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: ValidityStartDate

      Returns:
      Validity Date (Valid From)
    • getIsStandardRelationship

      @Nullable public Boolean getIsStandardRelationship()
      Constraints: none

      Original property name from the Odata EDM: IsStandardRelationship

      Returns:
      Standard Relationship
    • getRelationshipCategory

      @Nullable public String getRelationshipCategory()
      Constraints: Not nullable, Maximum length: 6

      Original property name from the Odata EDM: RelationshipCategory

      Returns:
      Business Partner Relationship Category
    • getBPRelationshipType

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

      Original property name from the Odata EDM: BPRelationshipType

      Returns:
      Business partner relationship type
    • getCreatedByUser

      @Nullable public String getCreatedByUser()
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: CreatedByUser

      Returns:
      User who created the object
    • getCreationDate

      @Nullable public LocalDateTime getCreationDate()
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: CreationDate

      Returns:
      Date on which the object was created
    • getCreationTime

      @Nullable public LocalTime getCreationTime()
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: CreationTime

      Returns:
      Time at which the object was created
    • getLastChangedByUser

      @Nullable public String getLastChangedByUser()
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: LastChangedByUser

      Returns:
      Last user to change object
    • getLastChangeDate

      @Nullable public LocalDateTime getLastChangeDate()
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: LastChangeDate

      Returns:
      Date when object was last changed
    • getLastChangeTime

      @Nullable public LocalTime getLastChangeTime()
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: LastChangeTime

      Returns:
      Time at which object was last changed
    • toString

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

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

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

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