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

public class EntProjectType extends VdmEntity<EntProjectType> implements VdmEntitySet
Internal Project Type

Original entity name from the Odata EDM: EntProjectTypeType

  • Field Details

  • Constructor Details

    • EntProjectType

      public EntProjectType()
    • EntProjectType

      public EntProjectType(@Nullable String entProjectTypeInternal, @Nullable String projectCategory, @Nullable String projectProfileCode, @Nullable String projectTypeName, List<EntProjectTypeText> to_EntProjectTypeText)
  • Method Details

    • getType

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

      public void setEntProjectTypeInternal(@Nullable String entProjectTypeInternal)
      (Key Field) Constraints: Not nullable, Maximum length: 15

      Original property name from the Odata EDM: EntProjectTypeInternal

      Parameters:
      entProjectTypeInternal - Project Type
    • setProjectCategory

      public void setProjectCategory(@Nullable String projectCategory)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: ProjectCategory

      Parameters:
      projectCategory - Project Category
    • setProjectProfileCode

      public void setProjectProfileCode(@Nullable String projectProfileCode)
      Constraints: Not nullable, Maximum length: 7

      Original property name from the Odata EDM: ProjectProfileCode

      Parameters:
      projectProfileCode - Project Profile
    • setProjectTypeName

      public void setProjectTypeName(@Nullable String projectTypeName)
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: ProjectTypeName

      Parameters:
      projectTypeName - Short Text for Type
    • getEntityCollection

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

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

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

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

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

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

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

      If the navigation property for an entity EntProjectType 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 _EntProjectTypeText is already loaded, the result will contain the EntProjectTypeText entities. If not, an Option with result state empty is returned.
    • setEntProjectTypeText

      public void setEntProjectTypeText(@Nonnull List<EntProjectTypeText> value)
      Overwrites the list of associated EntProjectTypeText entities for the loaded navigation property _EntProjectTypeText.

      If the navigation property _EntProjectTypeText of a queried EntProjectType 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 EntProjectTypeText entities.
    • addEntProjectTypeText

      public void addEntProjectTypeText(EntProjectTypeText... entity)
      Adds elements to the list of associated EntProjectTypeText entities. This corresponds to the OData navigation property _EntProjectTypeText.

      If the navigation property _EntProjectTypeText of a queried EntProjectType 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 EntProjectTypeText entities.
    • builder

      @Nonnull public static EntProjectType.EntProjectTypeBuilder builder()
    • getEntProjectTypeInternal

      @Nullable public String getEntProjectTypeInternal()
      (Key Field) Constraints: Not nullable, Maximum length: 15

      Original property name from the Odata EDM: EntProjectTypeInternal

      Returns:
      Project Type
    • getProjectCategory

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

      Original property name from the Odata EDM: ProjectCategory

      Returns:
      Project Category
    • getProjectProfileCode

      @Nullable public String getProjectProfileCode()
      Constraints: Not nullable, Maximum length: 7

      Original property name from the Odata EDM: ProjectProfileCode

      Returns:
      Project Profile
    • getProjectTypeName

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

      Original property name from the Odata EDM: ProjectTypeName

      Returns:
      Short Text for Type
    • toString

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

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

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

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

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