java.lang.Object
com.sap.cloud.sdk.datamodel.odatav4.core.VdmObject<EntityT>
com.sap.cloud.sdk.datamodel.odatav4.core.VdmEntity<CategoryDef>
com.sap.cloud.sdk.s4hana.datamodel.odatav4.namespaces.statutoryreportingcategorydefinition.CategoryDef
All Implemented Interfaces:
VdmEntitySet

public class CategoryDef extends VdmEntity<CategoryDef> implements VdmEntitySet
Statutory Reporting Category Definition

Original entity name from the Odata EDM: CategoryDef_Type

  • Field Details

  • Constructor Details

    • CategoryDef

      public CategoryDef()
    • CategoryDef

      public CategoryDef(@Nullable String statryRptCategory, @Nullable String country, List<ActivityDef> to_ActivityDef, List<PhaseDef> to_PhaseDef)
  • Method Details

    • getType

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

      public void setStatryRptCategory(@Nullable String statryRptCategory)
      (Key Field) Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: StatryRptCategory

      Parameters:
      statryRptCategory - Report Category ID
    • 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
    • getEntityCollection

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

      @Nonnull protected ODataEntityKey getKey()
      Overrides:
      getKey in class VdmObject<CategoryDef>
    • toMapOfFields

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

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

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

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

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

      If the navigation property for an entity CategoryDef 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 _ActivityDef is already loaded, the result will contain the ActivityDef entities. If not, an Option with result state empty is returned.
    • setActivityDef

      public void setActivityDef(@Nonnull List<ActivityDef> value)
      Overwrites the list of associated ActivityDef entities for the loaded navigation property _ActivityDef.

      If the navigation property _ActivityDef of a queried CategoryDef 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 ActivityDef entities.
    • addActivityDef

      public void addActivityDef(ActivityDef... entity)
      Adds elements to the list of associated ActivityDef entities. This corresponds to the OData navigation property _ActivityDef.

      If the navigation property _ActivityDef of a queried CategoryDef 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 ActivityDef entities.
    • getPhaseDefIfPresent

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

      If the navigation property for an entity CategoryDef 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 _PhaseDef is already loaded, the result will contain the PhaseDef entities. If not, an Option with result state empty is returned.
    • setPhaseDef

      public void setPhaseDef(@Nonnull List<PhaseDef> value)
      Overwrites the list of associated PhaseDef entities for the loaded navigation property _PhaseDef.

      If the navigation property _PhaseDef of a queried CategoryDef 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 PhaseDef entities.
    • addPhaseDef

      public void addPhaseDef(PhaseDef... entity)
      Adds elements to the list of associated PhaseDef entities. This corresponds to the OData navigation property _PhaseDef.

      If the navigation property _PhaseDef of a queried CategoryDef 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 PhaseDef entities.
    • builder

      @Nonnull public static CategoryDef.CategoryDefBuilder builder()
    • getStatryRptCategory

      @Nullable public String getStatryRptCategory()
      (Key Field) Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: StatryRptCategory

      Returns:
      Report Category ID
    • getCountry

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

      Original property name from the Odata EDM: Country

      Returns:
      Country/Region Key
    • toString

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

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

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

      public int hashCode()
      Overrides:
      hashCode in class VdmEntity<CategoryDef>
    • getOdataType

      public String getOdataType()
      Specified by:
      getOdataType in class VdmObject<CategoryDef>