Class BusinessPartnerContact
Original entity name from the Odata EDM: A_BusinessPartnerContactType
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classHelper class to allow for fluent creation of BusinessPartnerContact instances. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BusinessPartnerContactSelectableSelector for all available fields of BusinessPartnerContact.static final BusinessPartnerContactField<String>Use with available fluent helpers to apply the BusinessPartnerCompany field to query operations.static final BusinessPartnerContactField<String>Use with available fluent helpers to apply the BusinessPartnerPerson field to query operations.static final BusinessPartnerContactField<Boolean>Use with available fluent helpers to apply the IsStandardRelationship field to query operations.static final BusinessPartnerContactField<String>Use with available fluent helpers to apply the RelationshipCategory field to query operations.static final BusinessPartnerContactField<String>Use with available fluent helpers to apply the RelationshipNumber field to query operations.static final BusinessPartnerContactLink<BPContactToAddress>Use with available fluent helpers to apply the to_ContactAddress navigation property to query operations.static final BusinessPartnerContactOneToOneLink<BPContactToFuncAndDept>Use with available fluent helpers to apply the to_ContactRelationship navigation property to query operations.static final BusinessPartnerContactField<LocalDateTime>Use with available fluent helpers to apply the ValidityEndDate field to query operations.static final BusinessPartnerContactField<LocalDateTime>Use with available fluent helpers to apply the ValidityStartDate field to query operations.Fields inherited from class com.sap.cloud.sdk.datamodel.odata.helper.VdmObject
changedOriginalFields -
Constructor Summary
ConstructorsConstructorDescriptionBusinessPartnerContact(String relationshipNumber, String businessPartnerCompany, String businessPartnerPerson, LocalDateTime validityEndDate, LocalDateTime validityStartDate, Boolean isStandardRelationship, String relationshipCategory, List<BPContactToAddress> toContactAddress, BPContactToFuncAndDept toContactRelationship) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddContactAddress(BPContactToAddress... entity) Adds elements to the list of associated BPContactToAddress entities.voidattachToService(String servicePath, HttpDestinationProperties destination) builder()protected booleanbooleanFetches the BPContactToAddress entities (one to many) associated with this entity.Fetches the BPContactToFuncAndDept entity (one to one) associated with this entity.static <T,DomainT>
BusinessPartnerContactField<T>field(String fieldName, TypeConverter<T, DomainT> typeConverter) Use with available fluent helpers to apply an extension field to query operations.static <T> BusinessPartnerContactField<T>Use with available fluent helpers to apply an extension field to query operations.protected void(Key Field) Constraints: Not nullable, Maximum length: 10(Key Field) Constraints: Not nullable, Maximum length: 10io.vavr.control.Option<List<BPContactToAddress>>Retrieval of associated BPContactToAddress entities (one to many).Retrieval of associated BPContactToAddress entities (one to many).io.vavr.control.Option<BPContactToFuncAndDept>Retrieval of associated BPContactToFuncAndDept entity (one to one).Retrieval of associated BPContactToFuncAndDept entity (one to one).protected Stringprotected StringConstraints: nonegetKey()Constraints: Not nullable, Maximum length: 6(Key Field) Constraints: Not nullable, Maximum length: 12getType()(Key Field) Constraints: Not nullable, Precision: 0Constraints: Not nullable, Precision: 0inthashCode()voidsetBusinessPartnerCompany(String businessPartnerCompany) (Key Field) Constraints: Not nullable, Maximum length: 10voidsetBusinessPartnerPerson(String businessPartnerPerson) (Key Field) Constraints: Not nullable, Maximum length: 10voidsetContactAddress(List<BPContactToAddress> value) Overwrites the list of associated BPContactToAddress entities for the loaded navigation property to_ContactAddress.voidOverwrites the associated BPContactToFuncAndDept entity for the loaded navigation property to_ContactRelationship.voidsetIsStandardRelationship(Boolean isStandardRelationship) Constraints: nonevoidsetRelationshipCategory(String relationshipCategory) Constraints: Not nullable, Maximum length: 6voidsetRelationshipNumber(String relationshipNumber) (Key Field) Constraints: Not nullable, Maximum length: 12protected voidsetServicePathForFetch(String servicePathForFetch) voidsetValidityEndDate(LocalDateTime validityEndDate) (Key Field) Constraints: Not nullable, Precision: 0voidsetValidityStartDate(LocalDateTime validityStartDate) Constraints: Not nullable, Precision: 0toString()Methods inherited from class com.sap.cloud.sdk.datamodel.odata.helper.VdmEntity
fetchFieldAsList, fetchFieldAsSingle, getServicePathForFetch, getVersionIdentifier, setDestinationForFetch, setVersionIdentifierMethods inherited from class com.sap.cloud.sdk.datamodel.odata.helper.VdmObject
getChangedFields, getCustomField, getCustomField, getCustomFieldNames, getCustomFields, getSetOfCustomFields, getSetOfFields, getSetOfNavigationProperties, hasCustomField, hasCustomField, rememberChangedField, resetChangedFields, setCustomField, setCustomField, toMap, toMapOfCustomFields
-
Field Details
-
ALL_FIELDS
Selector for all available fields of BusinessPartnerContact. -
RELATIONSHIP_NUMBER
Use with available fluent helpers to apply the RelationshipNumber field to query operations. -
BUSINESS_PARTNER_COMPANY
Use with available fluent helpers to apply the BusinessPartnerCompany field to query operations. -
BUSINESS_PARTNER_PERSON
Use with available fluent helpers to apply the BusinessPartnerPerson field to query operations. -
VALIDITY_END_DATE
Use with available fluent helpers to apply the ValidityEndDate field to query operations. -
VALIDITY_START_DATE
Use with available fluent helpers to apply the ValidityStartDate field to query operations. -
IS_STANDARD_RELATIONSHIP
Use with available fluent helpers to apply the IsStandardRelationship field to query operations. -
RELATIONSHIP_CATEGORY
Use with available fluent helpers to apply the RelationshipCategory field to query operations. -
TO_CONTACT_ADDRESS
Use with available fluent helpers to apply the to_ContactAddress navigation property to query operations. -
TO_CONTACT_RELATIONSHIP
public static final BusinessPartnerContactOneToOneLink<BPContactToFuncAndDept> TO_CONTACT_RELATIONSHIPUse with available fluent helpers to apply the to_ContactRelationship navigation property to query operations.
-
-
Constructor Details
-
BusinessPartnerContact
public BusinessPartnerContact() -
BusinessPartnerContact
public BusinessPartnerContact(@Nullable String relationshipNumber, @Nullable String businessPartnerCompany, @Nullable String businessPartnerPerson, @Nullable LocalDateTime validityEndDate, @Nullable LocalDateTime validityStartDate, @Nullable Boolean isStandardRelationship, @Nullable String relationshipCategory, List<BPContactToAddress> toContactAddress, @Nullable BPContactToFuncAndDept toContactRelationship)
-
-
Method Details
-
getType
- Specified by:
getTypein classVdmObject<BusinessPartnerContact>
-
setRelationshipNumber
(Key Field) Constraints: Not nullable, Maximum length: 12Original property name from the Odata EDM: RelationshipNumber
- Parameters:
relationshipNumber- BP Relationship Number
-
setBusinessPartnerCompany
(Key Field) Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: BusinessPartnerCompany
- Parameters:
businessPartnerCompany- Business Partner Number
-
setBusinessPartnerPerson
(Key Field) Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: BusinessPartnerPerson
- Parameters:
businessPartnerPerson- Business Partner Number
-
setValidityEndDate
(Key Field) Constraints: Not nullable, Precision: 0Original property name from the Odata EDM: ValidityEndDate
- Parameters:
validityEndDate- Validity Date (Valid To)
-
setValidityStartDate
Constraints: Not nullable, Precision: 0Original property name from the Odata EDM: ValidityStartDate
- Parameters:
validityStartDate- Validity Date (Valid From)
-
setIsStandardRelationship
Constraints: noneOriginal property name from the Odata EDM: IsStandardRelationship
- Parameters:
isStandardRelationship- Standard Relationship
-
setRelationshipCategory
Constraints: Not nullable, Maximum length: 6Original property name from the Odata EDM: RelationshipCategory
- Parameters:
relationshipCategory- Business Partner Relationship Category
-
getEntityCollection
- Specified by:
getEntityCollectionin classVdmEntity<BusinessPartnerContact>
-
getKey
- Overrides:
getKeyin classVdmObject<BusinessPartnerContact>
-
toMapOfFields
- Overrides:
toMapOfFieldsin classVdmObject<BusinessPartnerContact>
-
fromMap
- Overrides:
fromMapin classVdmObject<BusinessPartnerContact>
-
field
@Nonnull public static <T> BusinessPartnerContactField<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> BusinessPartnerContactField<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 fieldfieldName- 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
- Overrides:
getDestinationForFetchin classVdmEntity<BusinessPartnerContact>
-
setServicePathForFetch
- Overrides:
setServicePathForFetchin classVdmEntity<BusinessPartnerContact>
-
attachToService
public void attachToService(@Nullable String servicePath, @Nonnull HttpDestinationProperties destination) - Overrides:
attachToServicein classVdmEntity<BusinessPartnerContact>
-
getDefaultServicePath
- Overrides:
getDefaultServicePathin classVdmEntity<BusinessPartnerContact>
-
fetchContactAddress
Fetches the BPContactToAddress entities (one to many) associated with this entity. This corresponds to the OData navigation property to_ContactAddress.Please note: This method will not cache or persist the query results.
- Returns:
- List containing one or more associated BPContactToAddress entities. If no entities are associated then an empty list is returned.
- Throws:
com.sap.cloud.sdk.datamodel.odata.client.exception.ODataException- If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and therefore has no ERP configuration context assigned. An entity is managed if it has been either retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or UPDATE call.
-
getContactAddressOrFetch
Retrieval of associated BPContactToAddress entities (one to many). This corresponds to the OData navigation property to_ContactAddress.If the navigation property to_ContactAddress of a queried BusinessPartnerContact is operated lazily, an ODataException can be thrown in case of an OData query error.
Please note: Lazy loading of OData entity associations is the process of asynchronous retrieval and persisting of items from a navigation property. If a lazy property is requested by the application for the first time and it has not yet been loaded, an OData query will be run in order to load the missing information and its result will get cached for future invocations.
- Returns:
- List of associated BPContactToAddress entities.
- Throws:
com.sap.cloud.sdk.datamodel.odata.client.exception.ODataException- If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and therefore has no ERP configuration context assigned. An entity is managed if it has been either retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or UPDATE call.
-
getContactAddressIfPresent
Retrieval of associated BPContactToAddress entities (one to many). This corresponds to the OData navigation property to_ContactAddress.If the navigation property for an entity BusinessPartnerContact has not been resolved yet, this method will not query further information. Instead its
Optionresult state will beempty.- Returns:
- If the information for navigation property to_ContactAddress is already loaded, the result will
contain the BPContactToAddress entities. If not, an
Optionwith result stateemptyis returned.
-
setContactAddress
Overwrites the list of associated BPContactToAddress entities for the loaded navigation property to_ContactAddress.If the navigation property to_ContactAddress of a queried BusinessPartnerContact is operated lazily, an ODataException can be thrown in case of an OData query error.
Please note: Lazy loading of OData entity associations is the process of asynchronous retrieval and persisting of items from a navigation property. If a lazy property is requested by the application for the first time and it has not yet been loaded, an OData query will be run in order to load the missing information and its result will get cached for future invocations.
- Parameters:
value- List of BPContactToAddress entities.
-
addContactAddress
Adds elements to the list of associated BPContactToAddress entities. This corresponds to the OData navigation property to_ContactAddress.If the navigation property to_ContactAddress of a queried BusinessPartnerContact is operated lazily, an ODataException can be thrown in case of an OData query error.
Please note: Lazy loading of OData entity associations is the process of asynchronous retrieval and persisting of items from a navigation property. If a lazy property is requested by the application for the first time and it has not yet been loaded, an OData query will be run in order to load the missing information and its result will get cached for future invocations.
- Parameters:
entity- Array of BPContactToAddress entities.
-
fetchContactRelationship
Fetches the BPContactToFuncAndDept entity (one to one) associated with this entity. This corresponds to the OData navigation property to_ContactRelationship.Please note: This method will not cache or persist the query results.
- Returns:
- The single associated BPContactToFuncAndDept entity, or
nullif an entity is not associated. - Throws:
com.sap.cloud.sdk.datamodel.odata.client.exception.ODataException- If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and therefore has no ERP configuration context assigned. An entity is managed if it has been either retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or UPDATE call.
-
getContactRelationshipOrFetch
Retrieval of associated BPContactToFuncAndDept entity (one to one). This corresponds to the OData navigation property to_ContactRelationship.If the navigation property to_ContactRelationship of a queried BusinessPartnerContact is operated lazily, an ODataException can be thrown in case of an OData query error.
Please note: Lazy loading of OData entity associations is the process of asynchronous retrieval and persisting of items from a navigation property. If a lazy property is requested by the application for the first time and it has not yet been loaded, an OData query will be run in order to load the missing information and its result will get cached for future invocations.
- Returns:
- List of associated BPContactToFuncAndDept entity.
- Throws:
com.sap.cloud.sdk.datamodel.odata.client.exception.ODataException- If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and therefore has no ERP configuration context assigned. An entity is managed if it has been either retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or UPDATE call.
-
getContactRelationshipIfPresent
Retrieval of associated BPContactToFuncAndDept entity (one to one). This corresponds to the OData navigation property to_ContactRelationship.If the navigation property for an entity BusinessPartnerContact has not been resolved yet, this method will not query further information. Instead its
Optionresult state will beempty.- Returns:
- If the information for navigation property to_ContactRelationship is already loaded, the result
will contain the BPContactToFuncAndDept entity. If not, an
Optionwith result stateemptyis returned.
-
setContactRelationship
Overwrites the associated BPContactToFuncAndDept entity for the loaded navigation property to_ContactRelationship.- Parameters:
value- New BPContactToFuncAndDept entity.
-
builder
-
getRelationshipNumber
(Key Field) Constraints: Not nullable, Maximum length: 12Original property name from the Odata EDM: RelationshipNumber
- Returns:
- BP Relationship Number
-
getBusinessPartnerCompany
(Key Field) Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: BusinessPartnerCompany
- Returns:
- Business Partner Number
-
getBusinessPartnerPerson
(Key Field) Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: BusinessPartnerPerson
- Returns:
- Business Partner Number
-
getValidityEndDate
(Key Field) Constraints: Not nullable, Precision: 0Original property name from the Odata EDM: ValidityEndDate
- Returns:
- Validity Date (Valid To)
-
getValidityStartDate
Constraints: Not nullable, Precision: 0Original property name from the Odata EDM: ValidityStartDate
- Returns:
- Validity Date (Valid From)
-
getIsStandardRelationship
Constraints: noneOriginal property name from the Odata EDM: IsStandardRelationship
- Returns:
- Standard Relationship
-
getRelationshipCategory
Constraints: Not nullable, Maximum length: 6Original property name from the Odata EDM: RelationshipCategory
- Returns:
- Business Partner Relationship Category
-
toString
- Overrides:
toStringin classVdmObject<BusinessPartnerContact>
-
equals
- Overrides:
equalsin classVdmEntity<BusinessPartnerContact>
-
canEqual
- Overrides:
canEqualin classVdmEntity<BusinessPartnerContact>
-
hashCode
public int hashCode()- Overrides:
hashCodein classVdmEntity<BusinessPartnerContact>
-