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

public class PurchasingQuotaArrangement extends VdmEntity<PurchasingQuotaArrangement>
Quota Arrangement

Original entity name from the Odata EDM: A_PurchasingQuotaArrangementType

  • Field Details

  • Constructor Details

  • Method Details

    • getType

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

      public void setQuotaArrangement(@Nullable String quotaArrangement)
      (Key Field) Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: QuotaArrangement

      Parameters:
      quotaArrangement - Number of quota arrangement
    • setMaterial

      public void setMaterial(@Nullable String material)
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: Material

      Parameters:
      material - Material Number
    • setPlant

      public void setPlant(@Nullable String plant)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: Plant

      Parameters:
      plant - Plant
    • setValidityEndDate

      public void setValidityEndDate(@Nullable LocalDateTime validityEndDate)
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: ValidityEndDate

      Parameters:
      validityEndDate - Quota arrangement period valid until
    • setValidityStartDate

      public void setValidityStartDate(@Nullable LocalDateTime validityStartDate)
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: ValidityStartDate

      Parameters:
      validityStartDate - Quota arrangement period valid from
    • setCreationDate

      public void setCreationDate(@Nullable LocalDateTime creationDate)
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: CreationDate

      Parameters:
      creationDate - Record Created On
    • setCreatedByUser

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

      Original property name from the Odata EDM: CreatedByUser

      Parameters:
      createdByUser - Name of Person Responsible for Creating the Object
    • setMinQtyForSpltQuota

      public void setMinQtyForSpltQuota(@Nullable BigDecimal minQtyForSpltQuota)
      Constraints: Not nullable, Precision: 15, Scale: 3

      Original property name from the Odata EDM: MinQtyForSpltQuota

      Parameters:
      minQtyForSpltQuota - Minimum Quantity for Splitting Quota
    • setLastChangeDateTime

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

      Original property name from the Odata EDM: LastChangeDateTime

      Parameters:
      lastChangeDateTime - UTC Time Stamp in Long Form (YYYYMMDDhhmmssmmmuuun)
    • setUserDescription

      public void setUserDescription(@Nullable String userDescription)
      Constraints: Not nullable, Maximum length: 80

      Original property name from the Odata EDM: UserDescription

      Parameters:
      userDescription - Description of the Technical User Account
    • setMaterialBaseUnit

      public void setMaterialBaseUnit(@Nullable String materialBaseUnit)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: MaterialBaseUnit

      Parameters:
      materialBaseUnit - Base Unit of Measure
    • getEntityCollection

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

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

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

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

      @Nonnull public static <T> PurchasingQuotaArrangementField<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> PurchasingQuotaArrangementField<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<PurchasingQuotaArrangement>
    • setServicePathForFetch

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

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

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

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

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

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

      Returns:
      List containing one or more associated PurgQuotaArrangementItem 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.
    • getPurgQuotaArrangementItemOrFetch

      @Nonnull public List<PurgQuotaArrangementItem> getPurgQuotaArrangementItemOrFetch()
      Retrieval of associated PurgQuotaArrangementItem entities (one to many). This corresponds to the OData navigation property to_PurgQuotaArrangementItem.

      If the navigation property to_PurgQuotaArrangementItem of a queried PurchasingQuotaArrangement 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 PurgQuotaArrangementItem 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.
    • getPurgQuotaArrangementItemIfPresent

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

      If the navigation property for an entity PurchasingQuotaArrangement 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_PurgQuotaArrangementItem is already loaded, the result will contain the PurgQuotaArrangementItem entities. If not, an Option with result state empty is returned.
    • setPurgQuotaArrangementItem

      public void setPurgQuotaArrangementItem(@Nonnull List<PurgQuotaArrangementItem> value)
      Overwrites the list of associated PurgQuotaArrangementItem entities for the loaded navigation property to_PurgQuotaArrangementItem.

      If the navigation property to_PurgQuotaArrangementItem of a queried PurchasingQuotaArrangement 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 PurgQuotaArrangementItem entities.
    • addPurgQuotaArrangementItem

      public void addPurgQuotaArrangementItem(PurgQuotaArrangementItem... entity)
      Adds elements to the list of associated PurgQuotaArrangementItem entities. This corresponds to the OData navigation property to_PurgQuotaArrangementItem.

      If the navigation property to_PurgQuotaArrangementItem of a queried PurchasingQuotaArrangement 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 PurgQuotaArrangementItem entities.
    • builder

    • getQuotaArrangement

      @Nullable public String getQuotaArrangement()
      (Key Field) Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: QuotaArrangement

      Returns:
      Number of quota arrangement
    • getMaterial

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

      Original property name from the Odata EDM: Material

      Returns:
      Material Number
    • getPlant

      @Nullable public String getPlant()
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: Plant

      Returns:
      Plant
    • getValidityEndDate

      @Nullable public LocalDateTime getValidityEndDate()
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: ValidityEndDate

      Returns:
      Quota arrangement period valid until
    • getValidityStartDate

      @Nullable public LocalDateTime getValidityStartDate()
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: ValidityStartDate

      Returns:
      Quota arrangement period valid from
    • getCreationDate

      @Nullable public LocalDateTime getCreationDate()
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: CreationDate

      Returns:
      Record Created On
    • getCreatedByUser

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

      Original property name from the Odata EDM: CreatedByUser

      Returns:
      Name of Person Responsible for Creating the Object
    • getMinQtyForSpltQuota

      @Nullable public BigDecimal getMinQtyForSpltQuota()
      Constraints: Not nullable, Precision: 15, Scale: 3

      Original property name from the Odata EDM: MinQtyForSpltQuota

      Returns:
      Minimum Quantity for Splitting Quota
    • getLastChangeDateTime

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

      Original property name from the Odata EDM: LastChangeDateTime

      Returns:
      UTC Time Stamp in Long Form (YYYYMMDDhhmmssmmmuuun)
    • getUserDescription

      @Nullable public String getUserDescription()
      Constraints: Not nullable, Maximum length: 80

      Original property name from the Odata EDM: UserDescription

      Returns:
      Description of the Technical User Account
    • getMaterialBaseUnit

      @Nullable public String getMaterialBaseUnit()
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: MaterialBaseUnit

      Returns:
      Base Unit of Measure
    • toString

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

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

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

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