java.lang.Object
com.sap.cloud.sdk.datamodel.odata.helper.VdmObject<EntityT>
com.sap.cloud.sdk.datamodel.odata.helper.VdmEntity<PurgCat>
com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.purchasingcategory.PurgCat

public class PurgCat extends VdmEntity<PurgCat>
Purchasing Category

Original entity name from the Odata EDM: A_PurgCatType

  • Field Details

    • ALL_FIELDS

      public static final PurgCatSelectable ALL_FIELDS
      Selector for all available fields of PurgCat.
    • PURG_CAT_UUID

      public static final PurgCatField<UUID> PURG_CAT_UUID
      Use with available fluent helpers to apply the PurgCatUUID field to query operations.
    • PURCHASING_CATEGORY

      public static final PurgCatField<String> PURCHASING_CATEGORY
      Use with available fluent helpers to apply the PurchasingCategory field to query operations.
    • PURG_CAT_NAME

      public static final PurgCatField<String> PURG_CAT_NAME
      Use with available fluent helpers to apply the PurgCatName field to query operations.
    • CREATION_DATE_TIME

      public static final PurgCatField<ZonedDateTime> CREATION_DATE_TIME
      Use with available fluent helpers to apply the CreationDateTime field to query operations.
    • CREATED_BY_USER

      public static final PurgCatField<String> CREATED_BY_USER
      Use with available fluent helpers to apply the CreatedByUser field to query operations.
    • LAST_CHANGE_DATE_TIME

      public static final PurgCatField<ZonedDateTime> LAST_CHANGE_DATE_TIME
      Use with available fluent helpers to apply the LastChangeDateTime field to query operations.
    • LAST_CHANGED_BY_USER

      public static final PurgCatField<String> LAST_CHANGED_BY_USER
      Use with available fluent helpers to apply the LastChangedByUser field to query operations.
    • LANGUAGE

      public static final PurgCatField<String> LANGUAGE
      Use with available fluent helpers to apply the Language field to query operations.
    • PURG_CAT_IS_INACTIVE

      public static final PurgCatField<String> PURG_CAT_IS_INACTIVE
      Use with available fluent helpers to apply the PurgCatIsInactive field to query operations.
    • PURG_CAT_TRANSLATION_OVRL_STATUS

      public static final PurgCatField<String> PURG_CAT_TRANSLATION_OVRL_STATUS
      Use with available fluent helpers to apply the PurgCatTranslationOvrlStatus field to query operations.
    • TO_PURG_CAT_DESCRIPTION

      public static final PurgCatLink<PurgCatDescription> TO_PURG_CAT_DESCRIPTION
      Use with available fluent helpers to apply the to_PurgCatDescription navigation property to query operations.
    • TO_PURG_CAT_MATERIAL_GROUP

      public static final PurgCatLink<PurgCatMaterialGroup> TO_PURG_CAT_MATERIAL_GROUP
      Use with available fluent helpers to apply the to_PurgCatMaterialGroup navigation property to query operations.
    • TO_PURG_CAT_MEMBER

      public static final PurgCatLink<PurgCatMember> TO_PURG_CAT_MEMBER
      Use with available fluent helpers to apply the to_PurgCatMember navigation property to query operations.
    • TO_PURG_CAT_PLANNED_SPEND

      public static final PurgCatLink<PurgCatPlannedSpend> TO_PURG_CAT_PLANNED_SPEND
      Use with available fluent helpers to apply the to_PurgCatPlannedSpend navigation property to query operations.
    • TO_PURG_CAT_PURCHASER_RESPONSIBLE

      public static final PurgCatOneToOneLink<PurgCatPurchaserResponsible> TO_PURG_CAT_PURCHASER_RESPONSIBLE
      Use with available fluent helpers to apply the to_PurgCatPurchaserResponsible navigation property to query operations.
    • TO_PURG_CAT_SUPPLIER

      public static final PurgCatLink<PurgCatSupplier> TO_PURG_CAT_SUPPLIER
      Use with available fluent helpers to apply the to_PurgCatSupplier navigation property to query operations.
    • TO_PURG_CAT_TRANSLATION_STATUS

      public static final PurgCatLink<PurgCatTranslationStatus> TO_PURG_CAT_TRANSLATION_STATUS
      Use with available fluent helpers to apply the to_PurgCatTranslationStatus navigation property to query operations.
  • Constructor Details

  • Method Details

    • getType

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

      public void setPurgCatUUID(@Nullable UUID purgCatUUID)
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: PurgCatUUID

      Parameters:
      purgCatUUID - Purchasing Category UUID
    • setPurchasingCategory

      public void setPurchasingCategory(@Nullable String purchasingCategory)
      Constraints: Not nullable, Maximum length: 20

      Original property name from the Odata EDM: PurchasingCategory

      Parameters:
      purchasingCategory - Purchasing Category ID
    • setPurgCatName

      public void setPurgCatName(@Nullable String purgCatName)
      Constraints: Not nullable, Maximum length: 60

      Original property name from the Odata EDM: PurgCatName

      Parameters:
      purgCatName - Name of Purchasing Category
    • setCreationDateTime

      public void setCreationDateTime(@Nullable ZonedDateTime creationDateTime)
      Constraints: Not nullable, Precision: 7

      Original property name from the Odata EDM: CreationDateTime

      Parameters:
      creationDateTime - Created On
    • setCreatedByUser

      public void setCreatedByUser(@Nullable String createdByUser)
      Constraints: Not nullable, Maximum length: 60

      Original property name from the Odata EDM: CreatedByUser

      Parameters:
      createdByUser - Created-By Name
    • setLastChangeDateTime

      public void setLastChangeDateTime(@Nullable ZonedDateTime lastChangeDateTime)
      Constraints: Not nullable, Precision: 7

      Original property name from the Odata EDM: LastChangeDateTime

      Parameters:
      lastChangeDateTime - Last Changed On
    • setLastChangedByUser

      public void setLastChangedByUser(@Nullable String lastChangedByUser)
      Constraints: Not nullable, Maximum length: 60

      Original property name from the Odata EDM: LastChangedByUser

      Parameters:
      lastChangedByUser - Changed-By Name
    • setLanguage

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

      Original property name from the Odata EDM: Language

      Parameters:
      language - Language
    • setPurgCatIsInactive

      public void setPurgCatIsInactive(@Nullable String purgCatIsInactive)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: PurgCatIsInactive

      Parameters:
      purgCatIsInactive - Inactive Status
    • setPurgCatTranslationOvrlStatus

      public void setPurgCatTranslationOvrlStatus(@Nullable String purgCatTranslationOvrlStatus)
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: PurgCatTranslationOvrlStatus

      Parameters:
      purgCatTranslationOvrlStatus - Status of All Translations
    • getEntityCollection

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

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

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

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

      @Nonnull public static <T> PurgCatField<T> field(@Nonnull String fieldName, @Nonnull Class<T> fieldType)
      Use with available fluent helpers to apply an extension field to query operations.
      Type Parameters:
      T - The type of the extension field when performing value comparisons.
      Parameters:
      fieldName - The name of the extension field as returned by the OData service.
      fieldType - The Java type to use for the extension field when performing value comparisons.
      Returns:
      A representation of an extension field from this entity.
    • field

      @Nonnull public static <T, DomainT> PurgCatField<T> field(@Nonnull String fieldName, @Nonnull TypeConverter<T,DomainT> typeConverter)
      Use with available fluent helpers to apply an extension field to query operations.
      Type Parameters:
      T - The type of the extension field when performing value comparisons.
      DomainT - The type of the extension field as returned by the OData service.
      Parameters:
      typeConverter - A TypeConverter<T, DomainT> instance whose first generic type matches the Java type of the field
      fieldName - The name of the extension field as returned by the OData service.
      Returns:
      A representation of an extension field from this entity, holding a reference to the given TypeConverter.
    • getDestinationForFetch

      @Nullable public HttpDestinationProperties getDestinationForFetch()
      Overrides:
      getDestinationForFetch in class VdmEntity<PurgCat>
    • setServicePathForFetch

      protected void setServicePathForFetch(@Nullable String servicePathForFetch)
      Overrides:
      setServicePathForFetch in class VdmEntity<PurgCat>
    • attachToService

      public void attachToService(@Nullable String servicePath, @Nonnull HttpDestinationProperties destination)
      Overrides:
      attachToService in class VdmEntity<PurgCat>
    • getDefaultServicePath

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

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

      @Nonnull public List<PurgCatDescription> fetchPurgCatDescription()
      Fetches the PurgCatDescription entities (one to many) associated with this entity. This corresponds to the OData navigation property to_PurgCatDescription.

      Please note: This method will not cache or persist the query results.

      Returns:
      List containing one or more associated PurgCatDescription entities. If no entities are associated then an empty list is returned.
      Throws:
      com.sap.cloud.sdk.datamodel.odata.client.exception.ODataException - If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and therefore has no ERP configuration context assigned. An entity is managed if it has been either retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or UPDATE call.
    • getPurgCatDescriptionOrFetch

      @Nonnull public List<PurgCatDescription> getPurgCatDescriptionOrFetch()
      Retrieval of associated PurgCatDescription entities (one to many). This corresponds to the OData navigation property to_PurgCatDescription.

      If the navigation property to_PurgCatDescription of a queried PurgCat 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.

      Returns:
      List of associated PurgCatDescription entities.
      Throws:
      com.sap.cloud.sdk.datamodel.odata.client.exception.ODataException - If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and therefore has no ERP configuration context assigned. An entity is managed if it has been either retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or UPDATE call.
    • getPurgCatDescriptionIfPresent

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

      If the navigation property for an entity PurgCat 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 to_PurgCatDescription is already loaded, the result will contain the PurgCatDescription entities. If not, an Option with result state empty is returned.
    • setPurgCatDescription

      public void setPurgCatDescription(@Nonnull List<PurgCatDescription> value)
      Overwrites the list of associated PurgCatDescription entities for the loaded navigation property to_PurgCatDescription.

      If the navigation property to_PurgCatDescription of a queried PurgCat 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 PurgCatDescription entities.
    • addPurgCatDescription

      public void addPurgCatDescription(PurgCatDescription... entity)
      Adds elements to the list of associated PurgCatDescription entities. This corresponds to the OData navigation property to_PurgCatDescription.

      If the navigation property to_PurgCatDescription of a queried PurgCat 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 PurgCatDescription entities.
    • fetchPurgCatMaterialGroup

      @Nonnull public List<PurgCatMaterialGroup> fetchPurgCatMaterialGroup()
      Fetches the PurgCatMaterialGroup entities (one to many) associated with this entity. This corresponds to the OData navigation property to_PurgCatMaterialGroup.

      Please note: This method will not cache or persist the query results.

      Returns:
      List containing one or more associated PurgCatMaterialGroup entities. If no entities are associated then an empty list is returned.
      Throws:
      com.sap.cloud.sdk.datamodel.odata.client.exception.ODataException - If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and therefore has no ERP configuration context assigned. An entity is managed if it has been either retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or UPDATE call.
    • getPurgCatMaterialGroupOrFetch

      @Nonnull public List<PurgCatMaterialGroup> getPurgCatMaterialGroupOrFetch()
      Retrieval of associated PurgCatMaterialGroup entities (one to many). This corresponds to the OData navigation property to_PurgCatMaterialGroup.

      If the navigation property to_PurgCatMaterialGroup of a queried PurgCat 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.

      Returns:
      List of associated PurgCatMaterialGroup entities.
      Throws:
      com.sap.cloud.sdk.datamodel.odata.client.exception.ODataException - If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and therefore has no ERP configuration context assigned. An entity is managed if it has been either retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or UPDATE call.
    • getPurgCatMaterialGroupIfPresent

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

      If the navigation property for an entity PurgCat 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 to_PurgCatMaterialGroup is already loaded, the result will contain the PurgCatMaterialGroup entities. If not, an Option with result state empty is returned.
    • setPurgCatMaterialGroup

      public void setPurgCatMaterialGroup(@Nonnull List<PurgCatMaterialGroup> value)
      Overwrites the list of associated PurgCatMaterialGroup entities for the loaded navigation property to_PurgCatMaterialGroup.

      If the navigation property to_PurgCatMaterialGroup of a queried PurgCat 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 PurgCatMaterialGroup entities.
    • addPurgCatMaterialGroup

      public void addPurgCatMaterialGroup(PurgCatMaterialGroup... entity)
      Adds elements to the list of associated PurgCatMaterialGroup entities. This corresponds to the OData navigation property to_PurgCatMaterialGroup.

      If the navigation property to_PurgCatMaterialGroup of a queried PurgCat 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 PurgCatMaterialGroup entities.
    • fetchPurgCatMember

      @Nonnull public List<PurgCatMember> fetchPurgCatMember()
      Fetches the PurgCatMember entities (one to many) associated with this entity. This corresponds to the OData navigation property to_PurgCatMember.

      Please note: This method will not cache or persist the query results.

      Returns:
      List containing one or more associated PurgCatMember entities. If no entities are associated then an empty list is returned.
      Throws:
      com.sap.cloud.sdk.datamodel.odata.client.exception.ODataException - If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and therefore has no ERP configuration context assigned. An entity is managed if it has been either retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or UPDATE call.
    • getPurgCatMemberOrFetch

      @Nonnull public List<PurgCatMember> getPurgCatMemberOrFetch()
      Retrieval of associated PurgCatMember entities (one to many). This corresponds to the OData navigation property to_PurgCatMember.

      If the navigation property to_PurgCatMember of a queried PurgCat 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.

      Returns:
      List of associated PurgCatMember entities.
      Throws:
      com.sap.cloud.sdk.datamodel.odata.client.exception.ODataException - If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and therefore has no ERP configuration context assigned. An entity is managed if it has been either retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or UPDATE call.
    • getPurgCatMemberIfPresent

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

      If the navigation property for an entity PurgCat 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 to_PurgCatMember is already loaded, the result will contain the PurgCatMember entities. If not, an Option with result state empty is returned.
    • setPurgCatMember

      public void setPurgCatMember(@Nonnull List<PurgCatMember> value)
      Overwrites the list of associated PurgCatMember entities for the loaded navigation property to_PurgCatMember.

      If the navigation property to_PurgCatMember of a queried PurgCat 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 PurgCatMember entities.
    • addPurgCatMember

      public void addPurgCatMember(PurgCatMember... entity)
      Adds elements to the list of associated PurgCatMember entities. This corresponds to the OData navigation property to_PurgCatMember.

      If the navigation property to_PurgCatMember of a queried PurgCat 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 PurgCatMember entities.
    • fetchPurgCatPlannedSpend

      @Nonnull public List<PurgCatPlannedSpend> fetchPurgCatPlannedSpend()
      Fetches the PurgCatPlannedSpend entities (one to many) associated with this entity. This corresponds to the OData navigation property to_PurgCatPlannedSpend.

      Please note: This method will not cache or persist the query results.

      Returns:
      List containing one or more associated PurgCatPlannedSpend entities. If no entities are associated then an empty list is returned.
      Throws:
      com.sap.cloud.sdk.datamodel.odata.client.exception.ODataException - If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and therefore has no ERP configuration context assigned. An entity is managed if it has been either retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or UPDATE call.
    • getPurgCatPlannedSpendOrFetch

      @Nonnull public List<PurgCatPlannedSpend> getPurgCatPlannedSpendOrFetch()
      Retrieval of associated PurgCatPlannedSpend entities (one to many). This corresponds to the OData navigation property to_PurgCatPlannedSpend.

      If the navigation property to_PurgCatPlannedSpend of a queried PurgCat 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.

      Returns:
      List of associated PurgCatPlannedSpend entities.
      Throws:
      com.sap.cloud.sdk.datamodel.odata.client.exception.ODataException - If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and therefore has no ERP configuration context assigned. An entity is managed if it has been either retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or UPDATE call.
    • getPurgCatPlannedSpendIfPresent

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

      If the navigation property for an entity PurgCat 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 to_PurgCatPlannedSpend is already loaded, the result will contain the PurgCatPlannedSpend entities. If not, an Option with result state empty is returned.
    • setPurgCatPlannedSpend

      public void setPurgCatPlannedSpend(@Nonnull List<PurgCatPlannedSpend> value)
      Overwrites the list of associated PurgCatPlannedSpend entities for the loaded navigation property to_PurgCatPlannedSpend.

      If the navigation property to_PurgCatPlannedSpend of a queried PurgCat 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 PurgCatPlannedSpend entities.
    • addPurgCatPlannedSpend

      public void addPurgCatPlannedSpend(PurgCatPlannedSpend... entity)
      Adds elements to the list of associated PurgCatPlannedSpend entities. This corresponds to the OData navigation property to_PurgCatPlannedSpend.

      If the navigation property to_PurgCatPlannedSpend of a queried PurgCat 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 PurgCatPlannedSpend entities.
    • fetchPurgCatPurchaserResponsible

      @Nullable public PurgCatPurchaserResponsible fetchPurgCatPurchaserResponsible()
      Fetches the PurgCatPurchaserResponsible entity (one to one) associated with this entity. This corresponds to the OData navigation property to_PurgCatPurchaserResponsible.

      Please note: This method will not cache or persist the query results.

      Returns:
      The single associated PurgCatPurchaserResponsible entity, or null if an entity is not associated.
      Throws:
      com.sap.cloud.sdk.datamodel.odata.client.exception.ODataException - If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and therefore has no ERP configuration context assigned. An entity is managed if it has been either retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or UPDATE call.
    • getPurgCatPurchaserResponsibleOrFetch

      @Nullable public PurgCatPurchaserResponsible getPurgCatPurchaserResponsibleOrFetch()
      Retrieval of associated PurgCatPurchaserResponsible entity (one to one). This corresponds to the OData navigation property to_PurgCatPurchaserResponsible.

      If the navigation property to_PurgCatPurchaserResponsible of a queried PurgCat 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.

      Returns:
      List of associated PurgCatPurchaserResponsible entity.
      Throws:
      com.sap.cloud.sdk.datamodel.odata.client.exception.ODataException - If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and therefore has no ERP configuration context assigned. An entity is managed if it has been either retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or UPDATE call.
    • getPurgCatPurchaserResponsibleIfPresent

      @Nonnull public io.vavr.control.Option<PurgCatPurchaserResponsible> getPurgCatPurchaserResponsibleIfPresent()
      Retrieval of associated PurgCatPurchaserResponsible entity (one to one). This corresponds to the OData navigation property to_PurgCatPurchaserResponsible.

      If the navigation property for an entity PurgCat 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 to_PurgCatPurchaserResponsible is already loaded, the result will contain the PurgCatPurchaserResponsible entity. If not, an Option with result state empty is returned.
    • setPurgCatPurchaserResponsible

      public void setPurgCatPurchaserResponsible(PurgCatPurchaserResponsible value)
      Overwrites the associated PurgCatPurchaserResponsible entity for the loaded navigation property to_PurgCatPurchaserResponsible.
      Parameters:
      value - New PurgCatPurchaserResponsible entity.
    • fetchPurgCatSupplier

      @Nonnull public List<PurgCatSupplier> fetchPurgCatSupplier()
      Fetches the PurgCatSupplier entities (one to many) associated with this entity. This corresponds to the OData navigation property to_PurgCatSupplier.

      Please note: This method will not cache or persist the query results.

      Returns:
      List containing one or more associated PurgCatSupplier entities. If no entities are associated then an empty list is returned.
      Throws:
      com.sap.cloud.sdk.datamodel.odata.client.exception.ODataException - If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and therefore has no ERP configuration context assigned. An entity is managed if it has been either retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or UPDATE call.
    • getPurgCatSupplierOrFetch

      @Nonnull public List<PurgCatSupplier> getPurgCatSupplierOrFetch()
      Retrieval of associated PurgCatSupplier entities (one to many). This corresponds to the OData navigation property to_PurgCatSupplier.

      If the navigation property to_PurgCatSupplier of a queried PurgCat 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.

      Returns:
      List of associated PurgCatSupplier entities.
      Throws:
      com.sap.cloud.sdk.datamodel.odata.client.exception.ODataException - If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and therefore has no ERP configuration context assigned. An entity is managed if it has been either retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or UPDATE call.
    • getPurgCatSupplierIfPresent

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

      If the navigation property for an entity PurgCat 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 to_PurgCatSupplier is already loaded, the result will contain the PurgCatSupplier entities. If not, an Option with result state empty is returned.
    • setPurgCatSupplier

      public void setPurgCatSupplier(@Nonnull List<PurgCatSupplier> value)
      Overwrites the list of associated PurgCatSupplier entities for the loaded navigation property to_PurgCatSupplier.

      If the navigation property to_PurgCatSupplier of a queried PurgCat 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 PurgCatSupplier entities.
    • addPurgCatSupplier

      public void addPurgCatSupplier(PurgCatSupplier... entity)
      Adds elements to the list of associated PurgCatSupplier entities. This corresponds to the OData navigation property to_PurgCatSupplier.

      If the navigation property to_PurgCatSupplier of a queried PurgCat 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 PurgCatSupplier entities.
    • fetchPurgCatTranslationStatus

      @Nonnull public List<PurgCatTranslationStatus> fetchPurgCatTranslationStatus()
      Fetches the PurgCatTranslationStatus entities (one to many) associated with this entity. This corresponds to the OData navigation property to_PurgCatTranslationStatus.

      Please note: This method will not cache or persist the query results.

      Returns:
      List containing one or more associated PurgCatTranslationStatus entities. If no entities are associated then an empty list is returned.
      Throws:
      com.sap.cloud.sdk.datamodel.odata.client.exception.ODataException - If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and therefore has no ERP configuration context assigned. An entity is managed if it has been either retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or UPDATE call.
    • getPurgCatTranslationStatusOrFetch

      @Nonnull public List<PurgCatTranslationStatus> getPurgCatTranslationStatusOrFetch()
      Retrieval of associated PurgCatTranslationStatus entities (one to many). This corresponds to the OData navigation property to_PurgCatTranslationStatus.

      If the navigation property to_PurgCatTranslationStatus of a queried PurgCat 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.

      Returns:
      List of associated PurgCatTranslationStatus entities.
      Throws:
      com.sap.cloud.sdk.datamodel.odata.client.exception.ODataException - If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and therefore has no ERP configuration context assigned. An entity is managed if it has been either retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or UPDATE call.
    • getPurgCatTranslationStatusIfPresent

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

      If the navigation property for an entity PurgCat 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 to_PurgCatTranslationStatus is already loaded, the result will contain the PurgCatTranslationStatus entities. If not, an Option with result state empty is returned.
    • setPurgCatTranslationStatus

      public void setPurgCatTranslationStatus(@Nonnull List<PurgCatTranslationStatus> value)
      Overwrites the list of associated PurgCatTranslationStatus entities for the loaded navigation property to_PurgCatTranslationStatus.

      If the navigation property to_PurgCatTranslationStatus of a queried PurgCat 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 PurgCatTranslationStatus entities.
    • addPurgCatTranslationStatus

      public void addPurgCatTranslationStatus(PurgCatTranslationStatus... entity)
      Adds elements to the list of associated PurgCatTranslationStatus entities. This corresponds to the OData navigation property to_PurgCatTranslationStatus.

      If the navigation property to_PurgCatTranslationStatus of a queried PurgCat 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 PurgCatTranslationStatus entities.
    • builder

      @Nonnull public static PurgCat.PurgCatBuilder builder()
    • getPurgCatUUID

      @Nullable public UUID getPurgCatUUID()
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: PurgCatUUID

      Returns:
      Purchasing Category UUID
    • getPurchasingCategory

      @Nullable public String getPurchasingCategory()
      Constraints: Not nullable, Maximum length: 20

      Original property name from the Odata EDM: PurchasingCategory

      Returns:
      Purchasing Category ID
    • getPurgCatName

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

      Original property name from the Odata EDM: PurgCatName

      Returns:
      Name of Purchasing Category
    • getCreationDateTime

      @Nullable public ZonedDateTime getCreationDateTime()
      Constraints: Not nullable, Precision: 7

      Original property name from the Odata EDM: CreationDateTime

      Returns:
      Created On
    • getCreatedByUser

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

      Original property name from the Odata EDM: CreatedByUser

      Returns:
      Created-By Name
    • getLastChangeDateTime

      @Nullable public ZonedDateTime getLastChangeDateTime()
      Constraints: Not nullable, Precision: 7

      Original property name from the Odata EDM: LastChangeDateTime

      Returns:
      Last Changed On
    • getLastChangedByUser

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

      Original property name from the Odata EDM: LastChangedByUser

      Returns:
      Changed-By Name
    • getLanguage

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

      Original property name from the Odata EDM: Language

      Returns:
      Language
    • getPurgCatIsInactive

      @Nullable public String getPurgCatIsInactive()
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: PurgCatIsInactive

      Returns:
      Inactive Status
    • getPurgCatTranslationOvrlStatus

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

      Original property name from the Odata EDM: PurgCatTranslationOvrlStatus

      Returns:
      Status of All Translations
    • toString

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

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

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

      public int hashCode()
      Overrides:
      hashCode in class VdmEntity<PurgCat>