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

public class CnsldtnUnitForElimination extends VdmEntity<CnsldtnUnitForElimination>
Consolidation Unit for Elimination

Original entity name from the Odata EDM: CnsldtnUnitForEliminationType

  • Field Details

    • ALL_FIELDS

      public static final CnsldtnUnitForEliminationSelectable ALL_FIELDS
      Selector for all available fields of CnsldtnUnitForElimination.
    • CONSOLIDATION_UNIT

      public static final CnsldtnUnitForEliminationField<String> CONSOLIDATION_UNIT
      Use with available fluent helpers to apply the ConsolidationUnit field to query operations.
    • CONSOLIDATION_UNIT_TEXT

      public static final CnsldtnUnitForEliminationField<String> CONSOLIDATION_UNIT_TEXT
      Use with available fluent helpers to apply the ConsolidationUnit_Text field to query operations.
    • ADDITIONAL_MASTER_DATA_SOURCE

      public static final CnsldtnUnitForEliminationField<String> ADDITIONAL_MASTER_DATA_SOURCE
      Use with available fluent helpers to apply the AdditionalMasterDataSource field to query operations.
    • CONSOLIDATION_UNIT_LOCAL_CURRENCY

      public static final CnsldtnUnitForEliminationField<String> CONSOLIDATION_UNIT_LOCAL_CURRENCY
      Use with available fluent helpers to apply the ConsolidationUnitLocalCurrency field to query operations.
    • CONSOLIDATION_UNIT_LOCAL_CURRENCY_TEXT

      public static final CnsldtnUnitForEliminationField<String> CONSOLIDATION_UNIT_LOCAL_CURRENCY_TEXT
      Use with available fluent helpers to apply the ConsolidationUnitLocalCurrency_Text field to query operations.
    • COUNTRY

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

      public static final CnsldtnUnitForEliminationField<String> COUNTRY_TEXT
      Use with available fluent helpers to apply the Country_Text field to query operations.
    • TO_CNSLDTN_UNIT_FOR_ELIMINATION_T

      public static final CnsldtnUnitForEliminationLink<CnsldtnUnitForElimText> TO_CNSLDTN_UNIT_FOR_ELIMINATION_T
      Use with available fluent helpers to apply the to_CnsldtnUnitForEliminationT navigation property to query operations.
    • TO_CNSLDTN_UNIT_HIER_FOR_ELIM

      public static final CnsldtnUnitForEliminationLink<CnsldtnUnitHierForElim> TO_CNSLDTN_UNIT_HIER_FOR_ELIM
      Use with available fluent helpers to apply the to_CnsldtnUnitHierForElim navigation property to query operations.
  • Constructor Details

    • CnsldtnUnitForElimination

      public CnsldtnUnitForElimination()
    • CnsldtnUnitForElimination

      public CnsldtnUnitForElimination(@Nullable String consolidationUnit, @Nullable String consolidationUnit_Text, @Nullable String additionalMasterDataSource, @Nullable String consolidationUnitLocalCurrency, @Nullable String consolidationUnitLocalCurrency_Text, @Nullable String country, @Nullable String country_Text, List<CnsldtnUnitForElimText> toCnsldtnUnitForEliminationT, List<CnsldtnUnitHierForElim> toCnsldtnUnitHierForElim)
  • Method Details

    • getType

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

      public void setConsolidationUnit(@Nullable String consolidationUnit)
      (Key Field) Constraints: Not nullable, Maximum length: 25

      Original property name from the Odata EDM: ConsolidationUnit

      Parameters:
      consolidationUnit - Consolidation Elimination Member
    • setConsolidationUnit_Text

      public void setConsolidationUnit_Text(@Nullable String consolidationUnit_Text)
      Constraints: Not nullable, Maximum length: 50

      Original property name from the Odata EDM: ConsolidationUnit_Text

      Parameters:
      consolidationUnit_Text - Consolidation Unit for Elimination Description
    • setAdditionalMasterDataSource

      public void setAdditionalMasterDataSource(@Nullable String additionalMasterDataSource)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: AdditionalMasterDataSource

      Parameters:
      additionalMasterDataSource - Master Data Source
    • setConsolidationUnitLocalCurrency

      public void setConsolidationUnitLocalCurrency(@Nullable String consolidationUnitLocalCurrency)
      Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: ConsolidationUnitLocalCurrency

      Parameters:
      consolidationUnitLocalCurrency - Consolidation Local Currency
    • setConsolidationUnitLocalCurrency_Text

      public void setConsolidationUnitLocalCurrency_Text(@Nullable String consolidationUnitLocalCurrency_Text)
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: ConsolidationUnitLocalCurrency_Text

      Parameters:
      consolidationUnitLocalCurrency_Text - Transaction Currency Description
    • 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
    • setCountry_Text

      public void setCountry_Text(@Nullable String country_Text)
      Constraints: Not nullable, Maximum length: 50

      Original property name from the Odata EDM: Country_Text

      Parameters:
      country_Text - Customer/Supplier Country/Region Description
    • getEntityCollection

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

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

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

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

      @Nonnull public static <T> CnsldtnUnitForEliminationField<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> CnsldtnUnitForEliminationField<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<CnsldtnUnitForElimination>
    • setServicePathForFetch

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

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

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

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

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

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

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

      @Nonnull public List<CnsldtnUnitForElimText> getCnsldtnUnitForEliminationTOrFetch()
      Retrieval of associated CnsldtnUnitForElimText entities (one to many). This corresponds to the OData navigation property to_CnsldtnUnitForEliminationT.

      If the navigation property to_CnsldtnUnitForEliminationT of a queried CnsldtnUnitForElimination 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 CnsldtnUnitForElimText 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.
    • getCnsldtnUnitForEliminationTIfPresent

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

      If the navigation property for an entity CnsldtnUnitForElimination 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_CnsldtnUnitForEliminationT is already loaded, the result will contain the CnsldtnUnitForElimText entities. If not, an Option with result state empty is returned.
    • setCnsldtnUnitForEliminationT

      public void setCnsldtnUnitForEliminationT(@Nonnull List<CnsldtnUnitForElimText> value)
      Overwrites the list of associated CnsldtnUnitForElimText entities for the loaded navigation property to_CnsldtnUnitForEliminationT.

      If the navigation property to_CnsldtnUnitForEliminationT of a queried CnsldtnUnitForElimination 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 CnsldtnUnitForElimText entities.
    • addCnsldtnUnitForEliminationT

      public void addCnsldtnUnitForEliminationT(CnsldtnUnitForElimText... entity)
      Adds elements to the list of associated CnsldtnUnitForElimText entities. This corresponds to the OData navigation property to_CnsldtnUnitForEliminationT.

      If the navigation property to_CnsldtnUnitForEliminationT of a queried CnsldtnUnitForElimination 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 CnsldtnUnitForElimText entities.
    • fetchCnsldtnUnitHierForElim

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

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

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

      @Nonnull public List<CnsldtnUnitHierForElim> getCnsldtnUnitHierForElimOrFetch()
      Retrieval of associated CnsldtnUnitHierForElim entities (one to many). This corresponds to the OData navigation property to_CnsldtnUnitHierForElim.

      If the navigation property to_CnsldtnUnitHierForElim of a queried CnsldtnUnitForElimination 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 CnsldtnUnitHierForElim 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.
    • getCnsldtnUnitHierForElimIfPresent

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

      If the navigation property for an entity CnsldtnUnitForElimination 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_CnsldtnUnitHierForElim is already loaded, the result will contain the CnsldtnUnitHierForElim entities. If not, an Option with result state empty is returned.
    • setCnsldtnUnitHierForElim

      public void setCnsldtnUnitHierForElim(@Nonnull List<CnsldtnUnitHierForElim> value)
      Overwrites the list of associated CnsldtnUnitHierForElim entities for the loaded navigation property to_CnsldtnUnitHierForElim.

      If the navigation property to_CnsldtnUnitHierForElim of a queried CnsldtnUnitForElimination 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 CnsldtnUnitHierForElim entities.
    • addCnsldtnUnitHierForElim

      public void addCnsldtnUnitHierForElim(CnsldtnUnitHierForElim... entity)
      Adds elements to the list of associated CnsldtnUnitHierForElim entities. This corresponds to the OData navigation property to_CnsldtnUnitHierForElim.

      If the navigation property to_CnsldtnUnitHierForElim of a queried CnsldtnUnitForElimination 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 CnsldtnUnitHierForElim entities.
    • builder

    • getConsolidationUnit

      @Nullable public String getConsolidationUnit()
      (Key Field) Constraints: Not nullable, Maximum length: 25

      Original property name from the Odata EDM: ConsolidationUnit

      Returns:
      Consolidation Elimination Member
    • getConsolidationUnit_Text

      @Nullable public String getConsolidationUnit_Text()
      Constraints: Not nullable, Maximum length: 50

      Original property name from the Odata EDM: ConsolidationUnit_Text

      Returns:
      Consolidation Unit for Elimination Description
    • getAdditionalMasterDataSource

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

      Original property name from the Odata EDM: AdditionalMasterDataSource

      Returns:
      Master Data Source
    • getConsolidationUnitLocalCurrency

      @Nullable public String getConsolidationUnitLocalCurrency()
      Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: ConsolidationUnitLocalCurrency

      Returns:
      Consolidation Local Currency
    • getConsolidationUnitLocalCurrency_Text

      @Nullable public String getConsolidationUnitLocalCurrency_Text()
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: ConsolidationUnitLocalCurrency_Text

      Returns:
      Transaction Currency Description
    • getCountry

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

      Original property name from the Odata EDM: Country

      Returns:
      Country/Region
    • getCountry_Text

      @Nullable public String getCountry_Text()
      Constraints: Not nullable, Maximum length: 50

      Original property name from the Odata EDM: Country_Text

      Returns:
      Customer/Supplier Country/Region Description
    • toString

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

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

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

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