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

public class ConsolidationVersion extends VdmEntity<ConsolidationVersion>
Consolidation Version

Original entity name from the Odata EDM: ConsolidationVersionType

  • Field Details

    • ALL_FIELDS

      public static final ConsolidationVersionSelectable ALL_FIELDS
      Selector for all available fields of ConsolidationVersion.
    • CONSOLIDATION_VERSION

      public static final ConsolidationVersionField<String> CONSOLIDATION_VERSION
      Use with available fluent helpers to apply the ConsolidationVersion field to query operations.
    • CONSOLIDATION_VERSION_TEXT

      public static final ConsolidationVersionField<String> CONSOLIDATION_VERSION_TEXT
      Use with available fluent helpers to apply the ConsolidationVersion_Text field to query operations.
    • CNSLDTN_REFERENCE_VERSION

      public static final ConsolidationVersionField<String> CNSLDTN_REFERENCE_VERSION
      Use with available fluent helpers to apply the CnsldtnReferenceVersion field to query operations.
    • CNSLDTN_REFERENCE_VERSION_TEXT

      public static final ConsolidationVersionField<String> CNSLDTN_REFERENCE_VERSION_TEXT
      Use with available fluent helpers to apply the CnsldtnReferenceVersion_Text field to query operations.
    • GROUP_CURRENCY

      public static final ConsolidationVersionField<String> GROUP_CURRENCY
      Use with available fluent helpers to apply the GroupCurrency field to query operations.
    • GROUP_CURRENCY_TEXT

      public static final ConsolidationVersionField<String> GROUP_CURRENCY_TEXT
      Use with available fluent helpers to apply the GroupCurrency_Text field to query operations.
    • CNSLDTN_IS_PLAN_VERSION

      public static final ConsolidationVersionField<Boolean> CNSLDTN_IS_PLAN_VERSION
      Use with available fluent helpers to apply the CnsldtnIsPlanVersion field to query operations.
    • CNSLDTN_VERSION_TYPE

      public static final ConsolidationVersionField<String> CNSLDTN_VERSION_TYPE
      Use with available fluent helpers to apply the CnsldtnVersionType field to query operations.
    • CNSLDTN_VERSION_TYPE_TEXT

      public static final ConsolidationVersionField<String> CNSLDTN_VERSION_TYPE_TEXT
      Use with available fluent helpers to apply the CnsldtnVersionType_Text field to query operations.
    • CNSLDTN_VERSION_RUN_MODE

      public static final ConsolidationVersionField<String> CNSLDTN_VERSION_RUN_MODE
      Use with available fluent helpers to apply the CnsldtnVersionRunMode field to query operations.
    • CNSLDTN_VERSION_HAS_ALL_KEY_FIGURES

      public static final ConsolidationVersionField<Boolean> CNSLDTN_VERSION_HAS_ALL_KEY_FIGURES
      Use with available fluent helpers to apply the CnsldtnVersionHasAllKeyFigures field to query operations.
    • TO_CNSLDTN_VERSION_T

      public static final ConsolidationVersionLink<ConsolidationVersionText> TO_CNSLDTN_VERSION_T
      Use with available fluent helpers to apply the to_CnsldtnVersionT navigation property to query operations.
  • Constructor Details

    • ConsolidationVersion

      public ConsolidationVersion()
    • ConsolidationVersion

      public ConsolidationVersion(@Nullable String consolidationVersion, @Nullable String consolidationVersion_Text, @Nullable String cnsldtnReferenceVersion, @Nullable String cnsldtnReferenceVersion_Text, @Nullable String groupCurrency, @Nullable String groupCurrency_Text, @Nullable Boolean cnsldtnIsPlanVersion, @Nullable String cnsldtnVersionType, @Nullable String cnsldtnVersionType_Text, @Nullable String cnsldtnVersionRunMode, @Nullable Boolean cnsldtnVersionHasAllKeyFigures, List<ConsolidationVersionText> toCnsldtnVersionT)
  • Method Details

    • getType

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

      public void setConsolidationVersion(@Nullable String consolidationVersion)
      (Key Field) Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: ConsolidationVersion

      Parameters:
      consolidationVersion - Consolidation Version
    • setConsolidationVersion_Text

      public void setConsolidationVersion_Text(@Nullable String consolidationVersion_Text)
      Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: ConsolidationVersion_Text

      Parameters:
      consolidationVersion_Text - Consolidation Version Description
    • setCnsldtnReferenceVersion

      public void setCnsldtnReferenceVersion(@Nullable String cnsldtnReferenceVersion)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: CnsldtnReferenceVersion

      Parameters:
      cnsldtnReferenceVersion - Reference Version
    • setCnsldtnReferenceVersion_Text

      public void setCnsldtnReferenceVersion_Text(@Nullable String cnsldtnReferenceVersion_Text)
      Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: CnsldtnReferenceVersion_Text

      Parameters:
      cnsldtnReferenceVersion_Text - Consolidation Version Description
    • setGroupCurrency

      public void setGroupCurrency(@Nullable String groupCurrency)
      Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: GroupCurrency

      Parameters:
      groupCurrency - Group Currency of Consolidation Version
    • setGroupCurrency_Text

      public void setGroupCurrency_Text(@Nullable String groupCurrency_Text)
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: GroupCurrency_Text

      Parameters:
      groupCurrency_Text - Group Currency Description
    • setCnsldtnIsPlanVersion

      public void setCnsldtnIsPlanVersion(@Nullable Boolean cnsldtnIsPlanVersion)
      Constraints: none

      Original property name from the Odata EDM: CnsldtnIsPlanVersion

      Parameters:
      cnsldtnIsPlanVersion - Is Planning Version
    • setCnsldtnVersionType

      public void setCnsldtnVersionType(@Nullable String cnsldtnVersionType)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: CnsldtnVersionType

      Parameters:
      cnsldtnVersionType - Consolidation Version Type
    • setCnsldtnVersionType_Text

      public void setCnsldtnVersionType_Text(@Nullable String cnsldtnVersionType_Text)
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: CnsldtnVersionType_Text

      Parameters:
      cnsldtnVersionType_Text - Consolidation Version Type Description
    • setCnsldtnVersionRunMode

      public void setCnsldtnVersionRunMode(@Nullable String cnsldtnVersionRunMode)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: CnsldtnVersionRunMode

      Parameters:
      cnsldtnVersionRunMode - Version Run Mode
    • setCnsldtnVersionHasAllKeyFigures

      public void setCnsldtnVersionHasAllKeyFigures(@Nullable Boolean cnsldtnVersionHasAllKeyFigures)
      Constraints: none

      Original property name from the Odata EDM: CnsldtnVersionHasAllKeyFigures

      Parameters:
      cnsldtnVersionHasAllKeyFigures - Version Has All Key Figures
    • getEntityCollection

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

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

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

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

      @Nonnull public static <T> ConsolidationVersionField<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> ConsolidationVersionField<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<ConsolidationVersion>
    • setServicePathForFetch

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

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

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

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

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

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

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

      @Nonnull public List<ConsolidationVersionText> getCnsldtnVersionTOrFetch()
      Retrieval of associated ConsolidationVersionText entities (one to many). This corresponds to the OData navigation property to_CnsldtnVersionT.

      If the navigation property to_CnsldtnVersionT of a queried ConsolidationVersion 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 ConsolidationVersionText 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.
    • getCnsldtnVersionTIfPresent

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

      If the navigation property for an entity ConsolidationVersion 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_CnsldtnVersionT is already loaded, the result will contain the ConsolidationVersionText entities. If not, an Option with result state empty is returned.
    • setCnsldtnVersionT

      public void setCnsldtnVersionT(@Nonnull List<ConsolidationVersionText> value)
      Overwrites the list of associated ConsolidationVersionText entities for the loaded navigation property to_CnsldtnVersionT.

      If the navigation property to_CnsldtnVersionT of a queried ConsolidationVersion 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 ConsolidationVersionText entities.
    • addCnsldtnVersionT

      public void addCnsldtnVersionT(ConsolidationVersionText... entity)
      Adds elements to the list of associated ConsolidationVersionText entities. This corresponds to the OData navigation property to_CnsldtnVersionT.

      If the navigation property to_CnsldtnVersionT of a queried ConsolidationVersion 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 ConsolidationVersionText entities.
    • builder

      @Nonnull public static ConsolidationVersion.ConsolidationVersionBuilder builder()
    • getConsolidationVersion

      @Nullable public String getConsolidationVersion()
      (Key Field) Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: ConsolidationVersion

      Returns:
      Consolidation Version
    • getConsolidationVersion_Text

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

      Original property name from the Odata EDM: ConsolidationVersion_Text

      Returns:
      Consolidation Version Description
    • getCnsldtnReferenceVersion

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

      Original property name from the Odata EDM: CnsldtnReferenceVersion

      Returns:
      Reference Version
    • getCnsldtnReferenceVersion_Text

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

      Original property name from the Odata EDM: CnsldtnReferenceVersion_Text

      Returns:
      Consolidation Version Description
    • getGroupCurrency

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

      Original property name from the Odata EDM: GroupCurrency

      Returns:
      Group Currency of Consolidation Version
    • getGroupCurrency_Text

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

      Original property name from the Odata EDM: GroupCurrency_Text

      Returns:
      Group Currency Description
    • getCnsldtnIsPlanVersion

      @Nullable public Boolean getCnsldtnIsPlanVersion()
      Constraints: none

      Original property name from the Odata EDM: CnsldtnIsPlanVersion

      Returns:
      Is Planning Version
    • getCnsldtnVersionType

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

      Original property name from the Odata EDM: CnsldtnVersionType

      Returns:
      Consolidation Version Type
    • getCnsldtnVersionType_Text

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

      Original property name from the Odata EDM: CnsldtnVersionType_Text

      Returns:
      Consolidation Version Type Description
    • getCnsldtnVersionRunMode

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

      Original property name from the Odata EDM: CnsldtnVersionRunMode

      Returns:
      Version Run Mode
    • getCnsldtnVersionHasAllKeyFigures

      @Nullable public Boolean getCnsldtnVersionHasAllKeyFigures()
      Constraints: none

      Original property name from the Odata EDM: CnsldtnVersionHasAllKeyFigures

      Returns:
      Version Has All Key Figures
    • toString

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

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

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

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