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

public class ProfitCenter extends VdmEntity<ProfitCenter>
Profit Center

Original entity name from the Odata EDM: A_ProfitCenterType

  • Field Details

    • ALL_FIELDS

      public static final ProfitCenterSelectable ALL_FIELDS
      Selector for all available fields of ProfitCenter.
    • CONTROLLING_AREA

      public static final ProfitCenterField<String> CONTROLLING_AREA
      Use with available fluent helpers to apply the ControllingArea field to query operations.
    • PROFIT_CENTER

      public static final ProfitCenterField<String> PROFIT_CENTER
      Use with available fluent helpers to apply the ProfitCenter field to query operations.
    • VALIDITY_END_DATE

      public static final ProfitCenterField<LocalDateTime> VALIDITY_END_DATE
      Use with available fluent helpers to apply the ValidityEndDate field to query operations.
    • PROFIT_CTR_RESPONSIBLE_PERSON_NAME

      public static final ProfitCenterField<String> PROFIT_CTR_RESPONSIBLE_PERSON_NAME
      Use with available fluent helpers to apply the ProfitCtrResponsiblePersonName field to query operations.
    • COMPANY_CODE

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

      public static final ProfitCenterField<String> PROFIT_CTR_RESPONSIBLE_USER
      Use with available fluent helpers to apply the ProfitCtrResponsibleUser field to query operations.
    • VALIDITY_START_DATE

      public static final ProfitCenterField<LocalDateTime> VALIDITY_START_DATE
      Use with available fluent helpers to apply the ValidityStartDate field to query operations.
    • DEPARTMENT

      public static final ProfitCenterField<String> DEPARTMENT
      Use with available fluent helpers to apply the Department field to query operations.
    • PROFIT_CENTER_STANDARD_HIERARCHY

      public static final ProfitCenterField<String> PROFIT_CENTER_STANDARD_HIERARCHY
      Use with available fluent helpers to apply the ProfitCenterStandardHierarchy field to query operations.
    • SEGMENT

      public static final ProfitCenterField<String> SEGMENT
      Use with available fluent helpers to apply the Segment field to query operations.
    • PROFIT_CENTER_IS_BLOCKED

      public static final ProfitCenterField<String> PROFIT_CENTER_IS_BLOCKED
      Use with available fluent helpers to apply the ProfitCenterIsBlocked field to query operations.
    • FORMULA_PLANNING_TEMPLATE

      public static final ProfitCenterField<String> FORMULA_PLANNING_TEMPLATE
      Use with available fluent helpers to apply the FormulaPlanningTemplate field to query operations.
    • FORM_OF_ADDRESS

      public static final ProfitCenterField<String> FORM_OF_ADDRESS
      Use with available fluent helpers to apply the FormOfAddress field to query operations.
    • ADDRESS_NAME

      public static final ProfitCenterField<String> ADDRESS_NAME
      Use with available fluent helpers to apply the AddressName field to query operations.
    • ADDITIONAL_NAME

      public static final ProfitCenterField<String> ADDITIONAL_NAME
      Use with available fluent helpers to apply the AdditionalName field to query operations.
    • PROFIT_CENTER_ADDR_NAME3

      public static final ProfitCenterField<String> PROFIT_CENTER_ADDR_NAME3
      Use with available fluent helpers to apply the ProfitCenterAddrName3 field to query operations.
    • PROFIT_CENTER_ADDR_NAME4

      public static final ProfitCenterField<String> PROFIT_CENTER_ADDR_NAME4
      Use with available fluent helpers to apply the ProfitCenterAddrName4 field to query operations.
    • STREET_ADDRESS_NAME

      public static final ProfitCenterField<String> STREET_ADDRESS_NAME
      Use with available fluent helpers to apply the StreetAddressName field to query operations.
    • PO_BOX

      public static final ProfitCenterField<String> PO_BOX
      Use with available fluent helpers to apply the POBox field to query operations.
    • CITY_NAME

      public static final ProfitCenterField<String> CITY_NAME
      Use with available fluent helpers to apply the CityName field to query operations.
    • POSTAL_CODE

      public static final ProfitCenterField<String> POSTAL_CODE
      Use with available fluent helpers to apply the PostalCode field to query operations.
    • DISTRICT

      public static final ProfitCenterField<String> DISTRICT
      Use with available fluent helpers to apply the District field to query operations.
    • COUNTRY

      public static final ProfitCenterField<String> COUNTRY
      Use with available fluent helpers to apply the Country field to query operations.
    • REGION

      public static final ProfitCenterField<String> REGION
      Use with available fluent helpers to apply the Region field to query operations.
    • TAX_JURISDICTION

      public static final ProfitCenterField<String> TAX_JURISDICTION
      Use with available fluent helpers to apply the TaxJurisdiction field to query operations.
    • LANGUAGE

      public static final ProfitCenterField<String> LANGUAGE
      Use with available fluent helpers to apply the Language field to query operations.
    • PHONE_NUMBER1

      public static final ProfitCenterField<String> PHONE_NUMBER1
      Use with available fluent helpers to apply the PhoneNumber1 field to query operations.
    • PHONE_NUMBER2

      public static final ProfitCenterField<String> PHONE_NUMBER2
      Use with available fluent helpers to apply the PhoneNumber2 field to query operations.
    • TELEBOX_NUMBER

      public static final ProfitCenterField<String> TELEBOX_NUMBER
      Use with available fluent helpers to apply the TeleboxNumber field to query operations.
    • TELEX_NUMBER

      public static final ProfitCenterField<String> TELEX_NUMBER
      Use with available fluent helpers to apply the TelexNumber field to query operations.
    • FAX_NUMBER

      public static final ProfitCenterField<String> FAX_NUMBER
      Use with available fluent helpers to apply the FaxNumber field to query operations.
    • DATA_COMMUNICATION_PHONE_NUMBER

      public static final ProfitCenterField<String> DATA_COMMUNICATION_PHONE_NUMBER
      Use with available fluent helpers to apply the DataCommunicationPhoneNumber field to query operations.
    • PROFIT_CENTER_PRINTER_NAME

      public static final ProfitCenterField<String> PROFIT_CENTER_PRINTER_NAME
      Use with available fluent helpers to apply the ProfitCenterPrinterName field to query operations.
    • PROFIT_CENTER_CREATED_BY_USER

      public static final ProfitCenterField<String> PROFIT_CENTER_CREATED_BY_USER
      Use with available fluent helpers to apply the ProfitCenterCreatedByUser field to query operations.
    • PROFIT_CENTER_CREATION_DATE

      public static final ProfitCenterField<LocalDateTime> PROFIT_CENTER_CREATION_DATE
      Use with available fluent helpers to apply the ProfitCenterCreationDate field to query operations.
    • TO_PRFT_CTR_COMPANY_CODE_ASSIGNMENT

      public static final ProfitCenterLink<PrftCtrCompanyCodeAssignment> TO_PRFT_CTR_COMPANY_CODE_ASSIGNMENT
      Use with available fluent helpers to apply the to_PrftCtrCompanyCodeAssignment navigation property to query operations.
    • TO_TEXT

      public static final ProfitCenterLink<ProfitCenterText> TO_TEXT
      Use with available fluent helpers to apply the to_Text navigation property to query operations.
  • Constructor Details

    • ProfitCenter

      public ProfitCenter()
    • ProfitCenter

      public ProfitCenter(@Nullable String controllingArea, @Nullable String profitCenter, @Nullable LocalDateTime validityEndDate, @Nullable String profitCtrResponsiblePersonName, @Nullable String companyCode, @Nullable String profitCtrResponsibleUser, @Nullable LocalDateTime validityStartDate, @Nullable String department, @Nullable String profitCenterStandardHierarchy, @Nullable String segment, @Nullable String profitCenterIsBlocked, @Nullable String formulaPlanningTemplate, @Nullable String formOfAddress, @Nullable String addressName, @Nullable String additionalName, @Nullable String profitCenterAddrName3, @Nullable String profitCenterAddrName4, @Nullable String streetAddressName, @Nullable String pOBox, @Nullable String cityName, @Nullable String postalCode, @Nullable String district, @Nullable String country, @Nullable String region, @Nullable String taxJurisdiction, @Nullable String language, @Nullable String phoneNumber1, @Nullable String phoneNumber2, @Nullable String teleboxNumber, @Nullable String telexNumber, @Nullable String faxNumber, @Nullable String dataCommunicationPhoneNumber, @Nullable String profitCenterPrinterName, @Nullable String profitCenterCreatedByUser, @Nullable LocalDateTime profitCenterCreationDate, List<PrftCtrCompanyCodeAssignment> toPrftCtrCompanyCodeAssignment, List<ProfitCenterText> toText)
  • Method Details

    • getType

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

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

      Original property name from the Odata EDM: ControllingArea

      Parameters:
      controllingArea - Controlling Area
    • setProfitCenter

      public void setProfitCenter(@Nullable String profitCenter)
      (Key Field) Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: ProfitCenter

      Parameters:
      profitCenter - Profit Center
    • setValidityEndDate

      public void setValidityEndDate(@Nullable LocalDateTime validityEndDate)
      (Key Field) Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: ValidityEndDate

      Parameters:
      validityEndDate - Valid To Date
    • setProfitCtrResponsiblePersonName

      public void setProfitCtrResponsiblePersonName(@Nullable String profitCtrResponsiblePersonName)
      Constraints: Not nullable, Maximum length: 20

      Original property name from the Odata EDM: ProfitCtrResponsiblePersonName

      Parameters:
      profitCtrResponsiblePersonName - Person Responsible for Profit Center
    • setCompanyCode

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

      Original property name from the Odata EDM: CompanyCode

      Parameters:
      companyCode - Company Code
    • setProfitCtrResponsibleUser

      public void setProfitCtrResponsibleUser(@Nullable String profitCtrResponsibleUser)
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: ProfitCtrResponsibleUser

      Parameters:
      profitCtrResponsibleUser - User Responsible for the Profit Center
    • setValidityStartDate

      public void setValidityStartDate(@Nullable LocalDateTime validityStartDate)
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: ValidityStartDate

      Parameters:
      validityStartDate - Valid-From Date
    • setDepartment

      public void setDepartment(@Nullable String department)
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: Department

      Parameters:
      department - Department
    • setProfitCenterStandardHierarchy

      public void setProfitCenterStandardHierarchy(@Nullable String profitCenterStandardHierarchy)
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: ProfitCenterStandardHierarchy

      Parameters:
      profitCenterStandardHierarchy - Profit center area
    • setSegment

      public void setSegment(@Nullable String segment)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: Segment

      Parameters:
      segment - Segment for Segmental Reporting
    • setProfitCenterIsBlocked

      public void setProfitCenterIsBlocked(@Nullable String profitCenterIsBlocked)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: ProfitCenterIsBlocked

      Parameters:
      profitCenterIsBlocked - Lock indicator
    • setFormulaPlanningTemplate

      public void setFormulaPlanningTemplate(@Nullable String formulaPlanningTemplate)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: FormulaPlanningTemplate

      Parameters:
      formulaPlanningTemplate - Template for Formula Planning in Profit Centers
    • setFormOfAddress

      public void setFormOfAddress(@Nullable String formOfAddress)
      Constraints: Not nullable, Maximum length: 15

      Original property name from the Odata EDM: FormOfAddress

      Parameters:
      formOfAddress - Title
    • setAddressName

      public void setAddressName(@Nullable String addressName)
      Constraints: Not nullable, Maximum length: 35

      Original property name from the Odata EDM: AddressName

      Parameters:
      addressName - Name 1
    • setAdditionalName

      public void setAdditionalName(@Nullable String additionalName)
      Constraints: Not nullable, Maximum length: 35

      Original property name from the Odata EDM: AdditionalName

      Parameters:
      additionalName - Name 2
    • setProfitCenterAddrName3

      public void setProfitCenterAddrName3(@Nullable String profitCenterAddrName3)
      Constraints: Not nullable, Maximum length: 35

      Original property name from the Odata EDM: ProfitCenterAddrName3

      Parameters:
      profitCenterAddrName3 - Name 3
    • setProfitCenterAddrName4

      public void setProfitCenterAddrName4(@Nullable String profitCenterAddrName4)
      Constraints: Not nullable, Maximum length: 35

      Original property name from the Odata EDM: ProfitCenterAddrName4

      Parameters:
      profitCenterAddrName4 - Name 4
    • setStreetAddressName

      public void setStreetAddressName(@Nullable String streetAddressName)
      Constraints: Not nullable, Maximum length: 35

      Original property name from the Odata EDM: StreetAddressName

      Parameters:
      streetAddressName - Street and House Number
    • setPOBox

      public void setPOBox(@Nullable String pOBox)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: POBox

      Parameters:
      pOBox - PO Box
    • setCityName

      public void setCityName(@Nullable String cityName)
      Constraints: Not nullable, Maximum length: 35

      Original property name from the Odata EDM: CityName

      Parameters:
      cityName - City
    • setPostalCode

      public void setPostalCode(@Nullable String postalCode)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: PostalCode

      Parameters:
      postalCode - Postal Code
    • setDistrict

      public void setDistrict(@Nullable String district)
      Constraints: Not nullable, Maximum length: 35

      Original property name from the Odata EDM: District

      Parameters:
      district - District
    • setCountry

      public void setCountry(@Nullable String country)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: Country

      Parameters:
      country - Country/Region Key
    • setRegion

      public void setRegion(@Nullable String region)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: Region

      Parameters:
      region - Region (State, Province, County)
    • setTaxJurisdiction

      public void setTaxJurisdiction(@Nullable String taxJurisdiction)
      Constraints: Not nullable, Maximum length: 15

      Original property name from the Odata EDM: TaxJurisdiction

      Parameters:
      taxJurisdiction - Tax Jurisdiction
    • setLanguage

      public void setLanguage(@Nullable String language)
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: Language

      Parameters:
      language - Language Key
    • setPhoneNumber1

      public void setPhoneNumber1(@Nullable String phoneNumber1)
      Constraints: Not nullable, Maximum length: 16

      Original property name from the Odata EDM: PhoneNumber1

      Parameters:
      phoneNumber1 - First telephone number
    • setPhoneNumber2

      public void setPhoneNumber2(@Nullable String phoneNumber2)
      Constraints: Not nullable, Maximum length: 16

      Original property name from the Odata EDM: PhoneNumber2

      Parameters:
      phoneNumber2 - Second telephone number
    • setTeleboxNumber

      public void setTeleboxNumber(@Nullable String teleboxNumber)
      Constraints: Not nullable, Maximum length: 15

      Original property name from the Odata EDM: TeleboxNumber

      Parameters:
      teleboxNumber - Telebox Number
    • setTelexNumber

      public void setTelexNumber(@Nullable String telexNumber)
      Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: TelexNumber

      Parameters:
      telexNumber - Telex Number
    • setFaxNumber

      public void setFaxNumber(@Nullable String faxNumber)
      Constraints: Not nullable, Maximum length: 31

      Original property name from the Odata EDM: FaxNumber

      Parameters:
      faxNumber - Fax Number
    • setDataCommunicationPhoneNumber

      public void setDataCommunicationPhoneNumber(@Nullable String dataCommunicationPhoneNumber)
      Constraints: Not nullable, Maximum length: 14

      Original property name from the Odata EDM: DataCommunicationPhoneNumber

      Parameters:
      dataCommunicationPhoneNumber - Data communication line no.
    • setProfitCenterPrinterName

      public void setProfitCenterPrinterName(@Nullable String profitCenterPrinterName)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: ProfitCenterPrinterName

      Parameters:
      profitCenterPrinterName - Printer name for profit center
    • setProfitCenterCreatedByUser

      public void setProfitCenterCreatedByUser(@Nullable String profitCenterCreatedByUser)
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: ProfitCenterCreatedByUser

      Parameters:
      profitCenterCreatedByUser - Entered By
    • setProfitCenterCreationDate

      public void setProfitCenterCreationDate(@Nullable LocalDateTime profitCenterCreationDate)
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: ProfitCenterCreationDate

      Parameters:
      profitCenterCreationDate - Created on
    • getEntityCollection

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

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

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

      protected void fromMap(Map<String,Object> inputValues)
      Overrides:
      fromMap in class VdmObject<ProfitCenter>
    • field

      @Nonnull public static <T> ProfitCenterField<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> ProfitCenterField<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<ProfitCenter>
    • setServicePathForFetch

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

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

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

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

      @Nonnull public List<PrftCtrCompanyCodeAssignment> fetchPrftCtrCompanyCodeAssignment()
      Fetches the PrftCtrCompanyCodeAssignment entities (one to many) associated with this entity. This corresponds to the OData navigation property to_PrftCtrCompanyCodeAssignment.

      Please note: This method will not cache or persist the query results.

      Returns:
      List containing one or more associated PrftCtrCompanyCodeAssignment 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.
    • getPrftCtrCompanyCodeAssignmentOrFetch

      @Nonnull public List<PrftCtrCompanyCodeAssignment> getPrftCtrCompanyCodeAssignmentOrFetch()
      Retrieval of associated PrftCtrCompanyCodeAssignment entities (one to many). This corresponds to the OData navigation property to_PrftCtrCompanyCodeAssignment.

      If the navigation property to_PrftCtrCompanyCodeAssignment of a queried ProfitCenter 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 PrftCtrCompanyCodeAssignment 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.
    • getPrftCtrCompanyCodeAssignmentIfPresent

      @Nonnull public io.vavr.control.Option<List<PrftCtrCompanyCodeAssignment>> getPrftCtrCompanyCodeAssignmentIfPresent()
      Retrieval of associated PrftCtrCompanyCodeAssignment entities (one to many). This corresponds to the OData navigation property to_PrftCtrCompanyCodeAssignment.

      If the navigation property for an entity ProfitCenter 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 to_PrftCtrCompanyCodeAssignment is already loaded, the result will contain the PrftCtrCompanyCodeAssignment entities. If not, an Option with result state empty is returned.
    • setPrftCtrCompanyCodeAssignment

      public void setPrftCtrCompanyCodeAssignment(@Nonnull List<PrftCtrCompanyCodeAssignment> value)
      Overwrites the list of associated PrftCtrCompanyCodeAssignment entities for the loaded navigation property to_PrftCtrCompanyCodeAssignment.

      If the navigation property to_PrftCtrCompanyCodeAssignment of a queried ProfitCenter 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 PrftCtrCompanyCodeAssignment entities.
    • addPrftCtrCompanyCodeAssignment

      public void addPrftCtrCompanyCodeAssignment(PrftCtrCompanyCodeAssignment... entity)
      Adds elements to the list of associated PrftCtrCompanyCodeAssignment entities. This corresponds to the OData navigation property to_PrftCtrCompanyCodeAssignment.

      If the navigation property to_PrftCtrCompanyCodeAssignment of a queried ProfitCenter 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 PrftCtrCompanyCodeAssignment entities.
    • fetchText

      @Nonnull public List<ProfitCenterText> fetchText()
      Fetches the ProfitCenterText entities (one to many) associated with this entity. This corresponds to the OData navigation property to_Text.

      Please note: This method will not cache or persist the query results.

      Returns:
      List containing one or more associated ProfitCenterText 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.
    • getTextOrFetch

      @Nonnull public List<ProfitCenterText> getTextOrFetch()
      Retrieval of associated ProfitCenterText entities (one to many). This corresponds to the OData navigation property to_Text.

      If the navigation property to_Text of a queried ProfitCenter 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 ProfitCenterText 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.
    • getTextIfPresent

      @Nonnull public io.vavr.control.Option<List<ProfitCenterText>> getTextIfPresent()
      Retrieval of associated ProfitCenterText entities (one to many). This corresponds to the OData navigation property to_Text.

      If the navigation property for an entity ProfitCenter 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 to_Text is already loaded, the result will contain the ProfitCenterText entities. If not, an Option with result state empty is returned.
    • setText

      public void setText(@Nonnull List<ProfitCenterText> value)
      Overwrites the list of associated ProfitCenterText entities for the loaded navigation property to_Text.

      If the navigation property to_Text of a queried ProfitCenter 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 ProfitCenterText entities.
    • addText

      public void addText(ProfitCenterText... entity)
      Adds elements to the list of associated ProfitCenterText entities. This corresponds to the OData navigation property to_Text.

      If the navigation property to_Text of a queried ProfitCenter 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 ProfitCenterText entities.
    • builder

      @Nonnull public static ProfitCenter.ProfitCenterBuilder builder()
    • getControllingArea

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

      Original property name from the Odata EDM: ControllingArea

      Returns:
      Controlling Area
    • getProfitCenter

      @Nullable public String getProfitCenter()
      (Key Field) Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: ProfitCenter

      Returns:
      Profit Center
    • getValidityEndDate

      @Nullable public LocalDateTime getValidityEndDate()
      (Key Field) Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: ValidityEndDate

      Returns:
      Valid To Date
    • getProfitCtrResponsiblePersonName

      @Nullable public String getProfitCtrResponsiblePersonName()
      Constraints: Not nullable, Maximum length: 20

      Original property name from the Odata EDM: ProfitCtrResponsiblePersonName

      Returns:
      Person Responsible for Profit Center
    • getCompanyCode

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

      Original property name from the Odata EDM: CompanyCode

      Returns:
      Company Code
    • getProfitCtrResponsibleUser

      @Nullable public String getProfitCtrResponsibleUser()
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: ProfitCtrResponsibleUser

      Returns:
      User Responsible for the Profit Center
    • getValidityStartDate

      @Nullable public LocalDateTime getValidityStartDate()
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: ValidityStartDate

      Returns:
      Valid-From Date
    • getDepartment

      @Nullable public String getDepartment()
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: Department

      Returns:
      Department
    • getProfitCenterStandardHierarchy

      @Nullable public String getProfitCenterStandardHierarchy()
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: ProfitCenterStandardHierarchy

      Returns:
      Profit center area
    • getSegment

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

      Original property name from the Odata EDM: Segment

      Returns:
      Segment for Segmental Reporting
    • getProfitCenterIsBlocked

      @Nullable public String getProfitCenterIsBlocked()
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: ProfitCenterIsBlocked

      Returns:
      Lock indicator
    • getFormulaPlanningTemplate

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

      Original property name from the Odata EDM: FormulaPlanningTemplate

      Returns:
      Template for Formula Planning in Profit Centers
    • getFormOfAddress

      @Nullable public String getFormOfAddress()
      Constraints: Not nullable, Maximum length: 15

      Original property name from the Odata EDM: FormOfAddress

      Returns:
      Title
    • getAddressName

      @Nullable public String getAddressName()
      Constraints: Not nullable, Maximum length: 35

      Original property name from the Odata EDM: AddressName

      Returns:
      Name 1
    • getAdditionalName

      @Nullable public String getAdditionalName()
      Constraints: Not nullable, Maximum length: 35

      Original property name from the Odata EDM: AdditionalName

      Returns:
      Name 2
    • getProfitCenterAddrName3

      @Nullable public String getProfitCenterAddrName3()
      Constraints: Not nullable, Maximum length: 35

      Original property name from the Odata EDM: ProfitCenterAddrName3

      Returns:
      Name 3
    • getProfitCenterAddrName4

      @Nullable public String getProfitCenterAddrName4()
      Constraints: Not nullable, Maximum length: 35

      Original property name from the Odata EDM: ProfitCenterAddrName4

      Returns:
      Name 4
    • getStreetAddressName

      @Nullable public String getStreetAddressName()
      Constraints: Not nullable, Maximum length: 35

      Original property name from the Odata EDM: StreetAddressName

      Returns:
      Street and House Number
    • getPOBox

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

      Original property name from the Odata EDM: POBox

      Returns:
      PO Box
    • getCityName

      @Nullable public String getCityName()
      Constraints: Not nullable, Maximum length: 35

      Original property name from the Odata EDM: CityName

      Returns:
      City
    • getPostalCode

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

      Original property name from the Odata EDM: PostalCode

      Returns:
      Postal Code
    • getDistrict

      @Nullable public String getDistrict()
      Constraints: Not nullable, Maximum length: 35

      Original property name from the Odata EDM: District

      Returns:
      District
    • getCountry

      @Nullable public String getCountry()
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: Country

      Returns:
      Country/Region Key
    • getRegion

      @Nullable public String getRegion()
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: Region

      Returns:
      Region (State, Province, County)
    • getTaxJurisdiction

      @Nullable public String getTaxJurisdiction()
      Constraints: Not nullable, Maximum length: 15

      Original property name from the Odata EDM: TaxJurisdiction

      Returns:
      Tax Jurisdiction
    • getLanguage

      @Nullable public String getLanguage()
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: Language

      Returns:
      Language Key
    • getPhoneNumber1

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

      Original property name from the Odata EDM: PhoneNumber1

      Returns:
      First telephone number
    • getPhoneNumber2

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

      Original property name from the Odata EDM: PhoneNumber2

      Returns:
      Second telephone number
    • getTeleboxNumber

      @Nullable public String getTeleboxNumber()
      Constraints: Not nullable, Maximum length: 15

      Original property name from the Odata EDM: TeleboxNumber

      Returns:
      Telebox Number
    • getTelexNumber

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

      Original property name from the Odata EDM: TelexNumber

      Returns:
      Telex Number
    • getFaxNumber

      @Nullable public String getFaxNumber()
      Constraints: Not nullable, Maximum length: 31

      Original property name from the Odata EDM: FaxNumber

      Returns:
      Fax Number
    • getDataCommunicationPhoneNumber

      @Nullable public String getDataCommunicationPhoneNumber()
      Constraints: Not nullable, Maximum length: 14

      Original property name from the Odata EDM: DataCommunicationPhoneNumber

      Returns:
      Data communication line no.
    • getProfitCenterPrinterName

      @Nullable public String getProfitCenterPrinterName()
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: ProfitCenterPrinterName

      Returns:
      Printer name for profit center
    • getProfitCenterCreatedByUser

      @Nullable public String getProfitCenterCreatedByUser()
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: ProfitCenterCreatedByUser

      Returns:
      Entered By
    • getProfitCenterCreationDate

      @Nullable public LocalDateTime getProfitCenterCreationDate()
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: ProfitCenterCreationDate

      Returns:
      Created on
    • toString

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

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

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

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