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

public class ProjectDemandType extends VdmEntity<ProjectDemandType> implements VdmEntitySet
Demand Type

Original entity name from the Odata EDM: ProjectDemandType_Type

  • Field Details

  • Constructor Details

  • Method Details

    • getType

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

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

      Original property name from the Odata EDM: ProjectDemandType

      Parameters:
      projectDemandType - Project Demand Type
    • setProjectDemandCategory

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

      Original property name from the Odata EDM: ProjectDemandCategory

      Parameters:
      projectDemandCategory - Project Demand Category
    • setProjectDemandTypeName

      public void setProjectDemandTypeName(@Nullable String projectDemandTypeName)
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: ProjectDemandTypeName

      Parameters:
      projectDemandTypeName - Name of the Demand Type
    • getEntityCollection

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

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

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

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

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

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

      @Nonnull public io.vavr.control.Option<ProjectDemandCategory> getProjectDemandCategoryIfPresent()
      Retrieval of associated ProjectDemandCategory entity (one to one). This corresponds to the OData navigation property _ProjectDemandCategory.

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

      public void setProjectDemandCategory(ProjectDemandCategory value)
      Overwrites the associated ProjectDemandCategory entity for the loaded navigation property _ProjectDemandCategory.
      Parameters:
      value - New ProjectDemandCategory entity.
    • getTextIfPresent

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

      If the navigation property for an entity ProjectDemandType 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 ProjectDemandTypeText entities. If not, an Option with result state empty is returned.
    • setText

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

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

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

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

      @Nonnull public static ProjectDemandType.ProjectDemandTypeBuilder builder()
    • getProjectDemandType

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

      Original property name from the Odata EDM: ProjectDemandType

      Returns:
      Project Demand Type
    • getProjectDemandCategory

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

      Original property name from the Odata EDM: ProjectDemandCategory

      Returns:
      Project Demand Category
    • getProjectDemandTypeName

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

      Original property name from the Odata EDM: ProjectDemandTypeName

      Returns:
      Name of the Demand Type
    • toString

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

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

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

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

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