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

public class SrcgProjContactCategory extends VdmEntity<SrcgProjContactCategory> implements VdmEntitySet
Contact Category

Original entity name from the Odata EDM: SrcgProjContactCategoryType

  • Field Details

  • Constructor Details

    • SrcgProjContactCategory

      public SrcgProjContactCategory()
    • SrcgProjContactCategory

      public SrcgProjContactCategory(@Nullable String sourcingProjectContactCategory, @Nullable String sourcingProjectContactCatName, List<SrcgProjContactCategoryText> to_SourcingProjectContactCatT)
  • Method Details

    • getType

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

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

      Original property name from the Odata EDM: SourcingProjectContactCategory

      Parameters:
      sourcingProjectContactCategory - The sourcingProjectContactCategory to set.
    • setSourcingProjectContactCatName

      public void setSourcingProjectContactCatName(@Nullable String sourcingProjectContactCatName)
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: SourcingProjectContactCatName

      Parameters:
      sourcingProjectContactCatName - Contact Category Text for Sourcing Project
    • getEntityCollection

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

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

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

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

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

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

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

      If the navigation property for an entity SrcgProjContactCategory 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 _SourcingProjectContactCatT is already loaded, the result will contain the SrcgProjContactCategoryText entities. If not, an Option with result state empty is returned.
    • setSourcingProjectContactCatT

      public void setSourcingProjectContactCatT(@Nonnull List<SrcgProjContactCategoryText> value)
      Overwrites the list of associated SrcgProjContactCategoryText entities for the loaded navigation property _SourcingProjectContactCatT.

      If the navigation property _SourcingProjectContactCatT of a queried SrcgProjContactCategory 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 SrcgProjContactCategoryText entities.
    • addSourcingProjectContactCatT

      public void addSourcingProjectContactCatT(SrcgProjContactCategoryText... entity)
      Adds elements to the list of associated SrcgProjContactCategoryText entities. This corresponds to the OData navigation property _SourcingProjectContactCatT.

      If the navigation property _SourcingProjectContactCatT of a queried SrcgProjContactCategory 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 SrcgProjContactCategoryText entities.
    • builder

    • getSourcingProjectContactCategory

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

      Original property name from the Odata EDM: SourcingProjectContactCategory

      Returns:
      The sourcingProjectContactCategory contained in this VdmEntity.
    • getSourcingProjectContactCatName

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

      Original property name from the Odata EDM: SourcingProjectContactCatName

      Returns:
      Contact Category Text for Sourcing Project
    • toString

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

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

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

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

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