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 BusinessPlaceField<String>Use with available fluent helpers to apply the AddressID field to query operations.static final BusinessPlaceSelectableSelector for all available fields of BusinessPlace.static final BusinessPlaceField<String>Use with available fluent helpers to apply the BusinessPlaceDescription field to query operations.static final BusinessPlaceField<String>Use with available fluent helpers to apply the BusinessPlaceID field to query operations.static final BusinessPlaceField<String>Use with available fluent helpers to apply the CompanyCode field to query operations.static final BusinessPlaceField<String>Use with available fluent helpers to apply the TaxNumber1 field to query operations.static final BusinessPlaceField<String>Use with available fluent helpers to apply the TaxNumber2 field to query operations.static final BusinessPlaceLink<BusinessPlaceCntryInfo>Use with available fluent helpers to apply the BusinessPlaceCntryInfoSet navigation property to query operations.Fields inherited from class com.sap.cloud.sdk.datamodel.odata.helper.VdmObject
changedOriginalFields -
Constructor Summary
ConstructorsConstructorDescriptionBusinessPlace(String companyCode, String businessPlaceID, String addressID, String taxNumber1, String taxNumber2, String businessPlaceDescription, List<BusinessPlaceCntryInfo> toBusinessPlaceCntryInfoSet) -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds elements to the list of associated BusinessPlaceCntryInfo entities.voidattachToService(String servicePath, HttpDestinationProperties destination) builder()protected booleanbooleanFetches the BusinessPlaceCntryInfo 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 voidConstraints: Not nullable, Maximum length: 10io.vavr.control.Option<List<BusinessPlaceCntryInfo>>Retrieval of associated BusinessPlaceCntryInfo entities (one to many).Retrieval of associated BusinessPlaceCntryInfo entities (one to many).Constraints: Not nullable, Maximum length: 30(Key Field) Constraints: Not nullable, Maximum length: 4(Key Field) Constraints: Not nullable, Maximum length: 4protected Stringprotected StringgetKey()Constraints: Not nullable, Maximum length: 16Constraints: Not nullable, Maximum length: 11getType()inthashCode()voidsetAddressID(String addressID) Constraints: Not nullable, Maximum length: 10voidOverwrites the list of associated BusinessPlaceCntryInfo entities for the loaded navigation property BusinessPlaceCntryInfoSet.voidsetBusinessPlaceDescription(String businessPlaceDescription) Constraints: Not nullable, Maximum length: 30voidsetBusinessPlaceID(String businessPlaceID) (Key Field) Constraints: Not nullable, Maximum length: 4voidsetCompanyCode(String companyCode) (Key Field) Constraints: Not nullable, Maximum length: 4protected voidsetServicePathForFetch(String servicePathForFetch) voidsetTaxNumber1(String taxNumber1) Constraints: Not nullable, Maximum length: 16voidsetTaxNumber2(String taxNumber2) Constraints: Not nullable, Maximum length: 11toString()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. -
COMPANY_CODE
Use with available fluent helpers to apply the CompanyCode field to query operations. -
BUSINESS_PLACE_ID
Use with available fluent helpers to apply the BusinessPlaceID field to query operations. -
ADDRESS_ID
Use with available fluent helpers to apply the AddressID field to query operations. -
TAX_NUMBER1
Use with available fluent helpers to apply the TaxNumber1 field to query operations. -
TAX_NUMBER2
Use with available fluent helpers to apply the TaxNumber2 field to query operations. -
BUSINESS_PLACE_DESCRIPTION
Use with available fluent helpers to apply the BusinessPlaceDescription field to query operations. -
TO_BUSINESS_PLACE_CNTRY_INFO_SET
Use with available fluent helpers to apply the BusinessPlaceCntryInfoSet navigation property to query operations.
-
-
Constructor Details
-
BusinessPlace
public BusinessPlace() -
BusinessPlace
-
-
Method Details
-
getType
- Specified by:
getTypein classVdmObject<BusinessPlace>
-
setCompanyCode
(Key Field) Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: CompanyCode
- Parameters:
companyCode- Company Code
-
setBusinessPlaceID
(Key Field) Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: BusinessPlaceID
- Parameters:
businessPlaceID- Business Place
-
setAddressID
Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: AddressID
- Parameters:
addressID- Address
-
setTaxNumber1
Constraints: Not nullable, Maximum length: 16Original property name from the Odata EDM: TaxNumber1
- Parameters:
taxNumber1- Tax Number 1
-
setTaxNumber2
Constraints: Not nullable, Maximum length: 11Original property name from the Odata EDM: TaxNumber2
- Parameters:
taxNumber2- Tax Number 2
-
setBusinessPlaceDescription
Constraints: Not nullable, Maximum length: 30Original property name from the Odata EDM: BusinessPlaceDescription
- Parameters:
businessPlaceDescription- Name 1
-
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>
-
fetchBusinessPlaceCntryInfoSet
Fetches the BusinessPlaceCntryInfo entities (one to many) associated with this entity. This corresponds to the OData navigation property BusinessPlaceCntryInfoSet.Please note: This method will not cache or persist the query results.
- Returns:
- List containing one or more associated BusinessPlaceCntryInfo 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.
-
getBusinessPlaceCntryInfoSetOrFetch
Retrieval of associated BusinessPlaceCntryInfo entities (one to many). This corresponds to the OData navigation property BusinessPlaceCntryInfoSet.If the navigation property BusinessPlaceCntryInfoSet 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 BusinessPlaceCntryInfo 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.
-
getBusinessPlaceCntryInfoSetIfPresent
@Nonnull public io.vavr.control.Option<List<BusinessPlaceCntryInfo>> getBusinessPlaceCntryInfoSetIfPresent()Retrieval of associated BusinessPlaceCntryInfo entities (one to many). This corresponds to the OData navigation property BusinessPlaceCntryInfoSet.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 BusinessPlaceCntryInfoSet is already loaded, the result
will contain the BusinessPlaceCntryInfo entities. If not, an
Optionwith result stateemptyis returned.
-
setBusinessPlaceCntryInfoSet
Overwrites the list of associated BusinessPlaceCntryInfo entities for the loaded navigation property BusinessPlaceCntryInfoSet.If the navigation property BusinessPlaceCntryInfoSet 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 BusinessPlaceCntryInfo entities.
-
addBusinessPlaceCntryInfoSet
Adds elements to the list of associated BusinessPlaceCntryInfo entities. This corresponds to the OData navigation property BusinessPlaceCntryInfoSet.If the navigation property BusinessPlaceCntryInfoSet 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 BusinessPlaceCntryInfo entities.
-
builder
-
getCompanyCode
(Key Field) Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: CompanyCode
- Returns:
- Company Code
-
getBusinessPlaceID
(Key Field) Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: BusinessPlaceID
- Returns:
- Business Place
-
getAddressID
Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: AddressID
- Returns:
- Address
-
getTaxNumber1
Constraints: Not nullable, Maximum length: 16Original property name from the Odata EDM: TaxNumber1
- Returns:
- Tax Number 1
-
getTaxNumber2
Constraints: Not nullable, Maximum length: 11Original property name from the Odata EDM: TaxNumber2
- Returns:
- Tax Number 2
-
getBusinessPlaceDescription
Constraints: Not nullable, Maximum length: 30Original property name from the Odata EDM: BusinessPlaceDescription
- Returns:
- Name 1
-
toString
- Overrides:
toStringin classVdmObject<BusinessPlace>
-
equals
- Overrides:
equalsin classVdmEntity<BusinessPlace>
-
canEqual
- Overrides:
canEqualin classVdmEntity<BusinessPlace>
-
hashCode
public int hashCode()- Overrides:
hashCodein classVdmEntity<BusinessPlace>
-