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

public class SrcgProjItemDemandConfCode extends VdmEntity<SrcgProjItemDemandConfCode> implements VdmEntitySet
Demand Confirmation Code

Original entity name from the Odata EDM: SrcgProjItemDemandConfCodeType

  • Field Details

  • Constructor Details

    • SrcgProjItemDemandConfCode

      public SrcgProjItemDemandConfCode()
    • SrcgProjItemDemandConfCode

      public SrcgProjItemDemandConfCode(@Nullable String srcgProjItemDemandConfCode, @Nullable String srcgProjItemDemandConfCodeName, List<SrcgProjItemDmndConfCodeTxt> to_Text)
  • Method Details

    • getType

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

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

      Original property name from the Odata EDM: SrcgProjItemDemandConfCode

      Parameters:
      srcgProjItemDemandConfCode - Demand is Confirmed
    • setSrcgProjItemDemandConfCodeName

      public void setSrcgProjItemDemandConfCodeName(@Nullable String srcgProjItemDemandConfCodeName)
      Constraints: Not nullable, Maximum length: 60

      Original property name from the Odata EDM: SrcgProjItemDemandConfCodeName

      Parameters:
      srcgProjItemDemandConfCodeName - Short Text for Fixed Values
    • getEntityCollection

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

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

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

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

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

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

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

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

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

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

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

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

    • getSrcgProjItemDemandConfCode

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

      Original property name from the Odata EDM: SrcgProjItemDemandConfCode

      Returns:
      Demand is Confirmed
    • getSrcgProjItemDemandConfCodeName

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

      Original property name from the Odata EDM: SrcgProjItemDemandConfCodeName

      Returns:
      Short Text for Fixed Values
    • toString

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

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

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

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

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