Class BusinessPlace
Original entity name from the Odata EDM: BusinessPlace
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classHelper class to allow for fluent creation of BusinessPlace instances. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BusinessPlaceSelectableSelector for all available fields of BusinessPlace.static final BusinessPlaceField<String>Use with available fluent helpers to apply the Branch field to query operations.static final BusinessPlaceField<String>Use with available fluent helpers to apply the BusPlaceMunicipalTaxNumber field to query operations.static final BusinessPlaceField<String>Use with available fluent helpers to apply the BusinessPlaceStateTaxNumber field to query operations.static final BusinessPlaceField<String>Use with available fluent helpers to apply the CompanyCode field to query operations.static final BusinessPlaceLink<SmtpNumbers>Use with available fluent helpers to apply the to_emails navigation property to query operations.Fields inherited from class com.sap.cloud.sdk.datamodel.odata.helper.VdmObject
changedOriginalFields -
Constructor Summary
ConstructorsConstructorDescriptionBusinessPlace(BranchAddress branchAddress, BranchDetail branchDetail, String branch, String companyCode, String businessPlaceStateTaxNumber, String busPlaceMunicipalTaxNumber, List<SmtpNumbers> toEmails) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEmails(SmtpNumbers... entity) Adds elements to the list of associated SmtpNumbers entities.voidattachToService(String servicePath, HttpDestinationProperties destination) builder()protected booleanbooleanFetches the SmtpNumbers entities (one to many) associated with this entity.static <T,DomainT>
BusinessPlaceField<T>field(String fieldName, TypeConverter<T, DomainT> typeConverter) Use with available fluent helpers to apply an extension field to query operations.static <T> BusinessPlaceField<T>Use with available fluent helpers to apply an extension field to query operations.protected void(Key Field) Constraints: Not nullable, Maximum length: 4Constraints: Not nullableConstraints: Not nullableConstraints: Not nullable, Maximum length: 18Constraints: Not nullable, Maximum length: 20(Key Field) Constraints: Not nullable, Maximum length: 4protected Stringio.vavr.control.Option<List<SmtpNumbers>>Retrieval of associated SmtpNumbers entities (one to many).Retrieval of associated SmtpNumbers entities (one to many).protected StringgetKey()getType()inthashCode()void(Key Field) Constraints: Not nullable, Maximum length: 4voidsetBranchAddress(BranchAddress branchAddress) Constraints: Not nullablevoidsetBranchDetail(BranchDetail branchDetail) Constraints: Not nullablevoidsetBusinessPlaceStateTaxNumber(String businessPlaceStateTaxNumber) Constraints: Not nullable, Maximum length: 18voidsetBusPlaceMunicipalTaxNumber(String busPlaceMunicipalTaxNumber) Constraints: Not nullable, Maximum length: 20voidsetCompanyCode(String companyCode) (Key Field) Constraints: Not nullable, Maximum length: 4voidsetEmails(List<SmtpNumbers> value) Overwrites the list of associated SmtpNumbers entities for the loaded navigation property to_emails.protected voidsetServicePathForFetch(String servicePathForFetch) toString()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 BusinessPlace. -
BRANCH
Use with available fluent helpers to apply the Branch field to query operations. -
COMPANY_CODE
Use with available fluent helpers to apply the CompanyCode field to query operations. -
BUSINESS_PLACE_STATE_TAX_NUMBER
Use with available fluent helpers to apply the BusinessPlaceStateTaxNumber field to query operations. -
BUS_PLACE_MUNICIPAL_TAX_NUMBER
Use with available fluent helpers to apply the BusPlaceMunicipalTaxNumber field to query operations. -
TO_EMAILS
Use with available fluent helpers to apply the to_emails navigation property to query operations.
-
-
Constructor Details
-
BusinessPlace
public BusinessPlace() -
BusinessPlace
public BusinessPlace(@Nullable BranchAddress branchAddress, @Nullable BranchDetail branchDetail, @Nullable String branch, @Nullable String companyCode, @Nullable String businessPlaceStateTaxNumber, @Nullable String busPlaceMunicipalTaxNumber, List<SmtpNumbers> toEmails)
-
-
Method Details
-
getType
- Specified by:
getTypein classVdmObject<BusinessPlace>
-
setBranchAddress
Constraints: Not nullableOriginal property name from the Odata EDM: BranchAddress
- Parameters:
branchAddress- The branchAddress to set.
-
setBranchDetail
Constraints: Not nullableOriginal property name from the Odata EDM: BranchDetail
- Parameters:
branchDetail- The branchDetail to set.
-
setBranch
(Key Field) Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: Branch
- Parameters:
branch- Business Place
-
setCompanyCode
(Key Field) Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: CompanyCode
- Parameters:
companyCode- Company Code
-
setBusinessPlaceStateTaxNumber
Constraints: Not nullable, Maximum length: 18Original property name from the Odata EDM: BusinessPlaceStateTaxNumber
- Parameters:
businessPlaceStateTaxNumber- State Tax No.
-
setBusPlaceMunicipalTaxNumber
Constraints: Not nullable, Maximum length: 20Original property name from the Odata EDM: BusPlaceMunicipalTaxNumber
- Parameters:
busPlaceMunicipalTaxNumber- Munic. Tax No.
-
getEntityCollection
- Specified by:
getEntityCollectionin classVdmEntity<BusinessPlace>
-
getKey
- Overrides:
getKeyin classVdmObject<BusinessPlace>
-
toMapOfFields
- Overrides:
toMapOfFieldsin classVdmObject<BusinessPlace>
-
fromMap
- Overrides:
fromMapin classVdmObject<BusinessPlace>
-
field
@Nonnull public static <T> BusinessPlaceField<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> BusinessPlaceField<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<BusinessPlace>
-
setServicePathForFetch
- Overrides:
setServicePathForFetchin classVdmEntity<BusinessPlace>
-
attachToService
public void attachToService(@Nullable String servicePath, @Nonnull HttpDestinationProperties destination) - Overrides:
attachToServicein classVdmEntity<BusinessPlace>
-
getDefaultServicePath
- Overrides:
getDefaultServicePathin classVdmEntity<BusinessPlace>
-
fetchEmails
Fetches the SmtpNumbers entities (one to many) associated with this entity. This corresponds to the OData navigation property to_emails.Please note: This method will not cache or persist the query results.
- Returns:
- List containing one or more associated SmtpNumbers 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.
-
getEmailsOrFetch
Retrieval of associated SmtpNumbers entities (one to many). This corresponds to the OData navigation property to_emails.If the navigation property to_emails of a queried BusinessPlace 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 SmtpNumbers 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.
-
getEmailsIfPresent
Retrieval of associated SmtpNumbers entities (one to many). This corresponds to the OData navigation property to_emails.If the navigation property for an entity BusinessPlace 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_emails is already loaded, the result will contain
the SmtpNumbers entities. If not, an
Optionwith result stateemptyis returned.
-
setEmails
Overwrites the list of associated SmtpNumbers entities for the loaded navigation property to_emails.If the navigation property to_emails of a queried BusinessPlace 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 SmtpNumbers entities.
-
addEmails
Adds elements to the list of associated SmtpNumbers entities. This corresponds to the OData navigation property to_emails.If the navigation property to_emails of a queried BusinessPlace 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 SmtpNumbers entities.
-
builder
-
getBranchAddress
Constraints: Not nullableOriginal property name from the Odata EDM: BranchAddress
- Returns:
- The branchAddress contained in this entity.
-
getBranchDetail
Constraints: Not nullableOriginal property name from the Odata EDM: BranchDetail
- Returns:
- The branchDetail contained in this entity.
-
getBranch
(Key Field) Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: Branch
- Returns:
- Business Place
-
getCompanyCode
(Key Field) Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: CompanyCode
- Returns:
- Company Code
-
getBusinessPlaceStateTaxNumber
Constraints: Not nullable, Maximum length: 18Original property name from the Odata EDM: BusinessPlaceStateTaxNumber
- Returns:
- State Tax No.
-
getBusPlaceMunicipalTaxNumber
Constraints: Not nullable, Maximum length: 20Original property name from the Odata EDM: BusPlaceMunicipalTaxNumber
- Returns:
- Munic. Tax No.
-
toString
- Overrides:
toStringin classVdmObject<BusinessPlace>
-
equals
- Overrides:
equalsin classVdmEntity<BusinessPlace>
-
canEqual
- Overrides:
canEqualin classVdmEntity<BusinessPlace>
-
hashCode
public int hashCode()- Overrides:
hashCodein classVdmEntity<BusinessPlace>
-