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

public class BusinessPlace extends VdmEntity<BusinessPlace>
Business Place Lists

Original entity name from the Odata EDM: BusinessPlace

  • Field Details

    • ALL_FIELDS

      public static final BusinessPlaceSelectable ALL_FIELDS
      Selector for all available fields of BusinessPlace.
    • COMPANY_CODE

      public static final BusinessPlaceField<String> COMPANY_CODE
      Use with available fluent helpers to apply the CompanyCode field to query operations.
    • BUSINESS_PLACE_ID

      public static final BusinessPlaceField<String> BUSINESS_PLACE_ID
      Use with available fluent helpers to apply the BusinessPlaceID field to query operations.
    • ADDRESS_ID

      public static final BusinessPlaceField<String> ADDRESS_ID
      Use with available fluent helpers to apply the AddressID field to query operations.
    • TAX_NUMBER1

      public static final BusinessPlaceField<String> TAX_NUMBER1
      Use with available fluent helpers to apply the TaxNumber1 field to query operations.
    • TAX_NUMBER2

      public static final BusinessPlaceField<String> TAX_NUMBER2
      Use with available fluent helpers to apply the TaxNumber2 field to query operations.
    • BUSINESS_PLACE_DESCRIPTION

      public static final BusinessPlaceField<String> BUSINESS_PLACE_DESCRIPTION
      Use with available fluent helpers to apply the BusinessPlaceDescription field to query operations.
    • TO_BUSINESS_PLACE_CNTRY_INFO_SET

      public static final BusinessPlaceLink<BusinessPlaceCntryInfo> 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

      public BusinessPlace(@Nullable String companyCode, @Nullable String businessPlaceID, @Nullable String addressID, @Nullable String taxNumber1, @Nullable String taxNumber2, @Nullable String businessPlaceDescription, List<BusinessPlaceCntryInfo> toBusinessPlaceCntryInfoSet)
  • Method Details

    • getType

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

      public void setCompanyCode(@Nullable String companyCode)
      (Key Field) Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: CompanyCode

      Parameters:
      companyCode - Company Code
    • setBusinessPlaceID

      public void setBusinessPlaceID(@Nullable String businessPlaceID)
      (Key Field) Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: BusinessPlaceID

      Parameters:
      businessPlaceID - Business Place
    • setAddressID

      public void setAddressID(@Nullable String addressID)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: AddressID

      Parameters:
      addressID - Address
    • setTaxNumber1

      public void setTaxNumber1(@Nullable String taxNumber1)
      Constraints: Not nullable, Maximum length: 16

      Original property name from the Odata EDM: TaxNumber1

      Parameters:
      taxNumber1 - Tax Number 1
    • setTaxNumber2

      public void setTaxNumber2(@Nullable String taxNumber2)
      Constraints: Not nullable, Maximum length: 11

      Original property name from the Odata EDM: TaxNumber2

      Parameters:
      taxNumber2 - Tax Number 2
    • setBusinessPlaceDescription

      public void setBusinessPlaceDescription(@Nullable String businessPlaceDescription)
      Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: BusinessPlaceDescription

      Parameters:
      businessPlaceDescription - Name 1
    • getEntityCollection

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

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

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

      protected void fromMap(Map<String,Object> inputValues)
      Overrides:
      fromMap in class VdmObject<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 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<BusinessPlace>
    • setServicePathForFetch

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

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

      protected String getDefaultServicePath()
      Overrides:
      getDefaultServicePath in class VdmEntity<BusinessPlace>
    • toMapOfNavigationProperties

      @Nonnull protected Map<String,Object> toMapOfNavigationProperties()
      Overrides:
      toMapOfNavigationProperties in class VdmObject<BusinessPlace>
    • fetchBusinessPlaceCntryInfoSet

      @Nonnull public List<BusinessPlaceCntryInfo> 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

      @Nonnull public List<BusinessPlaceCntryInfo> 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 Option result state will be empty.

      Returns:
      If the information for navigation property BusinessPlaceCntryInfoSet is already loaded, the result will contain the BusinessPlaceCntryInfo entities. If not, an Option with result state empty is returned.
    • setBusinessPlaceCntryInfoSet

      public void setBusinessPlaceCntryInfoSet(@Nonnull List<BusinessPlaceCntryInfo> value)
      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

      public void addBusinessPlaceCntryInfoSet(BusinessPlaceCntryInfo... entity)
      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

      @Nonnull public static BusinessPlace.BusinessPlaceBuilder builder()
    • getCompanyCode

      @Nullable public String getCompanyCode()
      (Key Field) Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: CompanyCode

      Returns:
      Company Code
    • getBusinessPlaceID

      @Nullable public String getBusinessPlaceID()
      (Key Field) Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: BusinessPlaceID

      Returns:
      Business Place
    • getAddressID

      @Nullable public String getAddressID()
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: AddressID

      Returns:
      Address
    • getTaxNumber1

      @Nullable public String getTaxNumber1()
      Constraints: Not nullable, Maximum length: 16

      Original property name from the Odata EDM: TaxNumber1

      Returns:
      Tax Number 1
    • getTaxNumber2

      @Nullable public String getTaxNumber2()
      Constraints: Not nullable, Maximum length: 11

      Original property name from the Odata EDM: TaxNumber2

      Returns:
      Tax Number 2
    • getBusinessPlaceDescription

      @Nullable public String getBusinessPlaceDescription()
      Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: BusinessPlaceDescription

      Returns:
      Name 1
    • toString

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

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

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

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