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

public class EntProjPriorityCode extends VdmEntity<EntProjPriorityCode> implements VdmEntitySet
Project Priority

Original entity name from the Odata EDM: EntProjPriorityCodeType

  • Field Details

  • Constructor Details

    • EntProjPriorityCode

      public EntProjPriorityCode()
    • EntProjPriorityCode

      public EntProjPriorityCode(@Nullable String priorityCode, @Nullable String priorityCodeName, List<EntProjPriorityCodeText> to_PriorityCodeText)
  • Method Details

    • getType

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

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

      Original property name from the Odata EDM: PriorityCode

      Parameters:
      priorityCode - The priorityCode to set.
    • setPriorityCodeName

      public void setPriorityCodeName(@Nullable String priorityCodeName)
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: PriorityCodeName

      Parameters:
      priorityCodeName - Object Name
    • getEntityCollection

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

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

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

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

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

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

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

      If the navigation property for an entity EntProjPriorityCode 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 _PriorityCodeText is already loaded, the result will contain the EntProjPriorityCodeText entities. If not, an Option with result state empty is returned.
    • setPriorityCodeText

      public void setPriorityCodeText(@Nonnull List<EntProjPriorityCodeText> value)
      Overwrites the list of associated EntProjPriorityCodeText entities for the loaded navigation property _PriorityCodeText.

      If the navigation property _PriorityCodeText of a queried EntProjPriorityCode 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 EntProjPriorityCodeText entities.
    • addPriorityCodeText

      public void addPriorityCodeText(EntProjPriorityCodeText... entity)
      Adds elements to the list of associated EntProjPriorityCodeText entities. This corresponds to the OData navigation property _PriorityCodeText.

      If the navigation property _PriorityCodeText of a queried EntProjPriorityCode 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 EntProjPriorityCodeText entities.
    • builder

      @Nonnull public static EntProjPriorityCode.EntProjPriorityCodeBuilder builder()
    • getPriorityCode

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

      Original property name from the Odata EDM: PriorityCode

      Returns:
      The priorityCode contained in this VdmEntity.
    • getPriorityCodeName

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

      Original property name from the Odata EDM: PriorityCodeName

      Returns:
      Object Name
    • toString

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

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

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

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

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