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

public class CatalogProfile extends VdmEntity<CatalogProfile> implements VdmEntitySet
Catalog Profile

Original entity name from the Odata EDM: CatalogProfile_Type

  • Field Details

  • Constructor Details

    • CatalogProfile

      public CatalogProfile()
    • CatalogProfile

      public CatalogProfile(@Nullable String maintNotifCatalogProfile, @Nullable String language, @Nullable String maintNotifCatalogProfileText, List<Catalog> to_Catalog)
  • Method Details

    • getType

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

      public void setMaintNotifCatalogProfile(@Nullable String maintNotifCatalogProfile)
      (Key Field) Constraints: Not nullable, Maximum length: 9

      Original property name from the Odata EDM: MaintNotifCatalogProfile

      Parameters:
      maintNotifCatalogProfile - Catalog Profile
    • setLanguage

      public void setLanguage(@Nullable String language)
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: Language

      Parameters:
      language - Language Key
    • setMaintNotifCatalogProfileText

      public void setMaintNotifCatalogProfileText(@Nullable String maintNotifCatalogProfileText)
      Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: MaintNotifCatalogProfileText

      Parameters:
      maintNotifCatalogProfileText - Catalog Profile Text
    • getEntityCollection

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

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

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

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

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

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

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

      If the navigation property for an entity CatalogProfile 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 _Catalog is already loaded, the result will contain the Catalog entities. If not, an Option with result state empty is returned.
    • setCatalog

      public void setCatalog(@Nonnull List<Catalog> value)
      Overwrites the list of associated Catalog entities for the loaded navigation property _Catalog.

      If the navigation property _Catalog of a queried CatalogProfile 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 Catalog entities.
    • addCatalog

      public void addCatalog(Catalog... entity)
      Adds elements to the list of associated Catalog entities. This corresponds to the OData navigation property _Catalog.

      If the navigation property _Catalog of a queried CatalogProfile 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 Catalog entities.
    • builder

      @Nonnull public static CatalogProfile.CatalogProfileBuilder builder()
    • getMaintNotifCatalogProfile

      @Nullable public String getMaintNotifCatalogProfile()
      (Key Field) Constraints: Not nullable, Maximum length: 9

      Original property name from the Odata EDM: MaintNotifCatalogProfile

      Returns:
      Catalog Profile
    • getLanguage

      @Nullable public String getLanguage()
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: Language

      Returns:
      Language Key
    • getMaintNotifCatalogProfileText

      @Nullable public String getMaintNotifCatalogProfileText()
      Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: MaintNotifCatalogProfileText

      Returns:
      Catalog Profile Text
    • toString

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

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

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

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

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