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

public class ProjectDemandCategory extends VdmEntity<ProjectDemandCategory> implements VdmEntitySet
Demand Category

Original entity name from the Odata EDM: ProjectDemandCategory_Type

  • Field Details

  • Constructor Details

  • Method Details

    • getType

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

      public void setProjectDemandCategory(@Nullable String projectDemandCategory)
      (Key Field) Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: ProjectDemandCategory

      Parameters:
      projectDemandCategory - Project Demand Category
    • setProjectDemandCategoryName

      public void setProjectDemandCategoryName(@Nullable String projectDemandCategoryName)
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: ProjectDemandCategoryName

      Parameters:
      projectDemandCategoryName - Name of the Demand Category
    • getEntityCollection

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

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

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

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

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

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

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

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

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

      If the navigation property _Text of a queried ProjectDemandCategory 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 ProjectDemandCategoryText entities.
    • addText

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

      If the navigation property _Text of a queried ProjectDemandCategory 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 ProjectDemandCategoryText entities.
    • getTypeIfPresent

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

      If the navigation property for an entity ProjectDemandCategory 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 _Type is already loaded, the result will contain the ProjectDemandType entities. If not, an Option with result state empty is returned.
    • setType

      public void setType(@Nonnull List<ProjectDemandType> value)
      Overwrites the list of associated ProjectDemandType entities for the loaded navigation property _Type.

      If the navigation property _Type of a queried ProjectDemandCategory 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 ProjectDemandType entities.
    • addType

      public void addType(ProjectDemandType... entity)
      Adds elements to the list of associated ProjectDemandType entities. This corresponds to the OData navigation property _Type.

      If the navigation property _Type of a queried ProjectDemandCategory 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 ProjectDemandType entities.
    • builder

      @Nonnull public static ProjectDemandCategory.ProjectDemandCategoryBuilder builder()
    • getProjectDemandCategory

      @Nullable public String getProjectDemandCategory()
      (Key Field) Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: ProjectDemandCategory

      Returns:
      Project Demand Category
    • getProjectDemandCategoryName

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

      Original property name from the Odata EDM: ProjectDemandCategoryName

      Returns:
      Name of the Demand Category
    • toString

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

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

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

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

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