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

public class ProjectDemandLastUpdateSource extends VdmEntity<ProjectDemandLastUpdateSource> implements VdmEntitySet
Update Source

Original entity name from the Odata EDM: ProjectDemandLastUpdateSource_Type

  • Field Details

  • Constructor Details

    • ProjectDemandLastUpdateSource

      public ProjectDemandLastUpdateSource()
    • ProjectDemandLastUpdateSource

      public ProjectDemandLastUpdateSource(@Nullable String projectDemandLastUpdateSource, @Nullable String projDmndLastUpdateSourceText, List<ProjDmndLastUpdateSourceText> to_LastUpdateSourceTxt)
  • Method Details

    • getType

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

      public void setProjectDemandLastUpdateSource(@Nullable String projectDemandLastUpdateSource)
      (Key Field) Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: ProjectDemandLastUpdateSource

      Parameters:
      projectDemandLastUpdateSource - Source of Last Update to a Demand
    • setProjDmndLastUpdateSourceText

      public void setProjDmndLastUpdateSourceText(@Nullable String projDmndLastUpdateSourceText)
      Constraints: Not nullable, Maximum length: 60

      Original property name from the Odata EDM: ProjDmndLastUpdateSourceText

      Parameters:
      projDmndLastUpdateSourceText - text for LastUpdateSource code values
    • getEntityCollection

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

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

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

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

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

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

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

      If the navigation property for an entity ProjectDemandLastUpdateSource 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 _LastUpdateSourceTxt is already loaded, the result will contain the ProjDmndLastUpdateSourceText entities. If not, an Option with result state empty is returned.
    • setLastUpdateSourceTxt

      public void setLastUpdateSourceTxt(@Nonnull List<ProjDmndLastUpdateSourceText> value)
      Overwrites the list of associated ProjDmndLastUpdateSourceText entities for the loaded navigation property _LastUpdateSourceTxt.

      If the navigation property _LastUpdateSourceTxt of a queried ProjectDemandLastUpdateSource 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 ProjDmndLastUpdateSourceText entities.
    • addLastUpdateSourceTxt

      public void addLastUpdateSourceTxt(ProjDmndLastUpdateSourceText... entity)
      Adds elements to the list of associated ProjDmndLastUpdateSourceText entities. This corresponds to the OData navigation property _LastUpdateSourceTxt.

      If the navigation property _LastUpdateSourceTxt of a queried ProjectDemandLastUpdateSource 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 ProjDmndLastUpdateSourceText entities.
    • builder

    • getProjectDemandLastUpdateSource

      @Nullable public String getProjectDemandLastUpdateSource()
      (Key Field) Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: ProjectDemandLastUpdateSource

      Returns:
      Source of Last Update to a Demand
    • getProjDmndLastUpdateSourceText

      @Nullable public String getProjDmndLastUpdateSourceText()
      Constraints: Not nullable, Maximum length: 60

      Original property name from the Odata EDM: ProjDmndLastUpdateSourceText

      Returns:
      text for LastUpdateSource code values
    • toString

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

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

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

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

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