public class BusinessPartnerContact extends Entity<BusinessPartnerContact>
Modifier and Type | Class and Description |
---|---|
static class |
BusinessPartnerContact.BusinessPartnerContactBuilder |
Modifier and Type | Field and Description |
---|---|
static EntityField<BusinessPartnerContact,String> |
BUSINESS_PARTNER_COMPANY
Use with available fluent helpers to apply the BusinessPartnerCompany field to query operations.
|
static EntityField<BusinessPartnerContact,String> |
BUSINESS_PARTNER_PERSON
Use with available fluent helpers to apply the BusinessPartnerPerson field to query operations.
|
static EntityField<BusinessPartnerContact,Boolean> |
IS_STANDARD_RELATIONSHIP
Use with available fluent helpers to apply the IsStandardRelationship field to query operations.
|
static EntityField<BusinessPartnerContact,String> |
RELATIONSHIP_CATEGORY
Use with available fluent helpers to apply the RelationshipCategory field to query operations.
|
static EntityField<BusinessPartnerContact,String> |
RELATIONSHIP_NUMBER
Use with available fluent helpers to apply the RelationshipNumber field to query operations.
|
static EntityField<BusinessPartnerContact,Calendar> |
VALIDITY_END_DATE
Use with available fluent helpers to apply the ValidityEndDate field to query operations.
|
static EntityField<BusinessPartnerContact,Calendar> |
VALIDITY_START_DATE
Use with available fluent helpers to apply the ValidityStartDate field to query operations.
|
Constructor and Description |
---|
BusinessPartnerContact() |
BusinessPartnerContact(String relationshipNumber,
String businessPartnerCompany,
String businessPartnerPerson,
Calendar validityEndDate,
Calendar validityStartDate,
Boolean isStandardRelationship,
String relationshipCategory,
ErpConfigContext erpConfigContext) |
Modifier and Type | Method and Description |
---|---|
static BusinessPartnerContact.BusinessPartnerContactBuilder |
builder() |
boolean |
equals(Object o) |
List<BPContactToAddress> |
fetchContactAddress()
Fetches the BPContactToAddress entities (one to many) associated with this entity.
|
BPContactToFuncAndDept |
fetchContactRelationship()
Fetches the BPContactToFuncAndDept entity (one to one) associated with this entity.
|
static <T> EntityField<BusinessPartnerContact,T> |
field(String fieldName,
Class<T> fieldType)
Use with available fluent helpers to apply an extension field to query operations.
|
String |
getBusinessPartnerCompany()
(Key Field) Constraints: Not nullable, Maximum length: 10
|
String |
getBusinessPartnerPerson()
(Key Field) Constraints: Not nullable, Maximum length: 10
|
ErpConfigContext |
getErpConfigContext()
Convienence field for reusing the same ERP system context with multiple queries (e.g.
|
Boolean |
getIsStandardRelationship()
Constraints: none
|
String |
getRelationshipCategory()
Constraints: Not nullable, Maximum length: 6
|
String |
getRelationshipNumber()
(Key Field) Constraints: Not nullable, Maximum length: 12
|
Class<BusinessPartnerContact> |
getType() |
Calendar |
getValidityEndDate()
(Key Field) Constraints: Not nullable, Precision: 0
|
Calendar |
getValidityStartDate()
Constraints: Not nullable, Precision: 0
|
int |
hashCode() |
void |
setBusinessPartnerCompany(String businessPartnerCompany)
(Key Field) Constraints: Not nullable, Maximum length: 10
|
void |
setBusinessPartnerPerson(String businessPartnerPerson)
(Key Field) Constraints: Not nullable, Maximum length: 10
|
void |
setErpConfigContext(ErpConfigContext erpConfigContext)
Convienence field for reusing the same ERP system context with multiple queries (e.g.
|
void |
setIsStandardRelationship(Boolean isStandardRelationship)
Constraints: none
|
void |
setRelationshipCategory(String relationshipCategory)
Constraints: Not nullable, Maximum length: 6
|
void |
setRelationshipNumber(String relationshipNumber)
(Key Field) Constraints: Not nullable, Maximum length: 12
|
void |
setValidityEndDate(Calendar validityEndDate)
(Key Field) Constraints: Not nullable, Precision: 0
|
void |
setValidityStartDate(Calendar validityStartDate)
Constraints: Not nullable, Precision: 0
|
String |
toString() |
public static final EntityField<BusinessPartnerContact,String> RELATIONSHIP_NUMBER
public static final EntityField<BusinessPartnerContact,String> BUSINESS_PARTNER_COMPANY
public static final EntityField<BusinessPartnerContact,String> BUSINESS_PARTNER_PERSON
public static final EntityField<BusinessPartnerContact,Calendar> VALIDITY_END_DATE
public static final EntityField<BusinessPartnerContact,Calendar> VALIDITY_START_DATE
public static final EntityField<BusinessPartnerContact,Boolean> IS_STANDARD_RELATIONSHIP
public static final EntityField<BusinessPartnerContact,String> RELATIONSHIP_CATEGORY
@Generated(value="lombok") public BusinessPartnerContact()
@ConstructorProperties(value={"relationshipNumber","businessPartnerCompany","businessPartnerPerson","validityEndDate","validityStartDate","isStandardRelationship","relationshipCategory","erpConfigContext"}) @Generated(value="lombok") public BusinessPartnerContact(@Nullable String relationshipNumber, @Nullable String businessPartnerCompany, @Nullable String businessPartnerPerson, @Nullable Calendar validityEndDate, @Nullable Calendar validityStartDate, @Nullable Boolean isStandardRelationship, @Nullable String relationshipCategory, ErpConfigContext erpConfigContext)
public Class<BusinessPartnerContact> getType()
getType
in class Entity<BusinessPartnerContact>
public static <T> EntityField<BusinessPartnerContact,T> field(String fieldName, Class<T> fieldType)
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.public List<BPContactToAddress> fetchContactAddress() throws com.sap.cloud.sdk.odatav2.connectivity.ODataException
com.sap.cloud.sdk.odatav2.connectivity.ODataException
public BPContactToFuncAndDept fetchContactRelationship() throws com.sap.cloud.sdk.odatav2.connectivity.ODataException
com.sap.cloud.sdk.odatav2.connectivity.ODataException
@Generated(value="lombok") public static BusinessPartnerContact.BusinessPartnerContactBuilder builder()
@Nullable @Generated(value="lombok") public String getRelationshipNumber()
@Nullable @Generated(value="lombok") public String getBusinessPartnerCompany()
@Nullable @Generated(value="lombok") public String getBusinessPartnerPerson()
@Nullable @Generated(value="lombok") public Calendar getValidityEndDate()
@Nullable @Generated(value="lombok") public Calendar getValidityStartDate()
@Nullable @Generated(value="lombok") public Boolean getIsStandardRelationship()
If several relationships of the BP relationship category contact person have been defined for, you can set the indicator standard relationship for one of these relationships. A relationship that is marked as a standard relationship can be used when A certain scenario automatically selects a contact person The contact person responsible is not known You can give this indicator to only one business partner relationship of a BP relationship category for a particular period. Another relationship of the same relationship category can be indicated as the standard relationship only if the periods for the relationship do not overlap or coincide.
@Nullable @Generated(value="lombok") public String getRelationshipCategory()
A distinction is made between a one-way and an undirected business partner relationship category. In a one-way relationship category, the relationship extends from one partner to another, but not vice versa. Marriage (undirected) Employee (one-way) Contact person (one-way)
@Generated(value="lombok") public ErpConfigContext getErpConfigContext()
@Generated(value="lombok") public void setRelationshipNumber(@Nullable String relationshipNumber)
relationshipNumber
- @Generated(value="lombok") public void setBusinessPartnerCompany(@Nullable String businessPartnerCompany)
businessPartnerCompany
- @Generated(value="lombok") public void setBusinessPartnerPerson(@Nullable String businessPartnerPerson)
businessPartnerPerson
- @Generated(value="lombok") public void setValidityEndDate(@Nullable Calendar validityEndDate)
validityEndDate
- @Generated(value="lombok") public void setValidityStartDate(@Nullable Calendar validityStartDate)
validityStartDate
- @Generated(value="lombok") public void setIsStandardRelationship(@Nullable Boolean isStandardRelationship)
If several relationships of the BP relationship category contact person have been defined for, you can set the indicator standard relationship for one of these relationships. A relationship that is marked as a standard relationship can be used when A certain scenario automatically selects a contact person The contact person responsible is not known You can give this indicator to only one business partner relationship of a BP relationship category for a particular period. Another relationship of the same relationship category can be indicated as the standard relationship only if the periods for the relationship do not overlap or coincide.
isStandardRelationship
- @Generated(value="lombok") public void setRelationshipCategory(@Nullable String relationshipCategory)
A distinction is made between a one-way and an undirected business partner relationship category. In a one-way relationship category, the relationship extends from one partner to another, but not vice versa. Marriage (undirected) Employee (one-way) Contact person (one-way)
relationshipCategory
- @Generated(value="lombok") public void setErpConfigContext(ErpConfigContext erpConfigContext)
erpConfigContext
- @Generated(value="lombok") public String toString()
toString
in class Entity<BusinessPartnerContact>
@Generated(value="lombok") public boolean equals(Object o)
equals
in class Entity<BusinessPartnerContact>
@Generated(value="lombok") public int hashCode()
hashCode
in class Entity<BusinessPartnerContact>
Copyright © 2017 SAP SE. All rights reserved.