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

public class PurInfoRecdPrcgCndnValidity extends VdmEntity<PurInfoRecdPrcgCndnValidity>
Pricing Condition Validity

Original entity name from the Odata EDM: A_PurInfoRecdPrcgCndnValidityType

  • Field Details

  • Constructor Details

    • PurInfoRecdPrcgCndnValidity

      public PurInfoRecdPrcgCndnValidity()
    • PurInfoRecdPrcgCndnValidity

      public PurInfoRecdPrcgCndnValidity(@Nullable String conditionRecord, @Nullable LocalDateTime conditionValidityEndDate, @Nullable LocalDateTime conditionValidityStartDate, @Nullable String conditionApplication, @Nullable String conditionType, @Nullable String purgDocOrderQuantityUnit, @Nullable String purchasingOrganization, @Nullable String purchasingInfoRecordCategory, @Nullable String purchasingInfoRecord, @Nullable String supplier, @Nullable String materialGroup, @Nullable String material, @Nullable String plant, @Nullable PurchasingInfoRecord toPurgInfoRecd, @Nullable PurgInfoRecdOrgPlantData toPurgInfoRecdOrgPlantData, @Nullable PurInfoRecdPrcgCndn toPurInfoRecdPrcgCndn)
  • Method Details

    • getType

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

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

      Original property name from the Odata EDM: ConditionRecord

      Parameters:
      conditionRecord - Number of Condition Record
    • setConditionValidityEndDate

      public void setConditionValidityEndDate(@Nullable LocalDateTime conditionValidityEndDate)
      (Key Field) Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: ConditionValidityEndDate

      Parameters:
      conditionValidityEndDate - Validity end date of the condition record
    • setConditionValidityStartDate

      public void setConditionValidityStartDate(@Nullable LocalDateTime conditionValidityStartDate)
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: ConditionValidityStartDate

      Parameters:
      conditionValidityStartDate - Validity start date of the condition record
    • setConditionApplication

      public void setConditionApplication(@Nullable String conditionApplication)
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: ConditionApplication

      Parameters:
      conditionApplication - Application
    • setConditionType

      public void setConditionType(@Nullable String conditionType)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: ConditionType

      Parameters:
      conditionType - Condition Type
    • setPurgDocOrderQuantityUnit

      public void setPurgDocOrderQuantityUnit(@Nullable String purgDocOrderQuantityUnit)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: PurgDocOrderQuantityUnit

      Parameters:
      purgDocOrderQuantityUnit - Purchase Order Unit of Measure
    • setPurchasingOrganization

      public void setPurchasingOrganization(@Nullable String purchasingOrganization)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: PurchasingOrganization

      Parameters:
      purchasingOrganization - Purchasing Organization
    • setPurchasingInfoRecordCategory

      public void setPurchasingInfoRecordCategory(@Nullable String purchasingInfoRecordCategory)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: PurchasingInfoRecordCategory

      Parameters:
      purchasingInfoRecordCategory - Purchasing info record category
    • setPurchasingInfoRecord

      public void setPurchasingInfoRecord(@Nullable String purchasingInfoRecord)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: PurchasingInfoRecord

      Parameters:
      purchasingInfoRecord - Number of purchasing info record
    • setSupplier

      public void setSupplier(@Nullable String supplier)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: Supplier

      Parameters:
      supplier - Supplier's Account Number
    • setMaterialGroup

      public void setMaterialGroup(@Nullable String materialGroup)
      Constraints: Not nullable, Maximum length: 9

      Original property name from the Odata EDM: MaterialGroup

      Parameters:
      materialGroup - Material Group
    • 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
    • getEntityCollection

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

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

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

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

      @Nonnull public static <T> PurInfoRecdPrcgCndnValidityField<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> PurInfoRecdPrcgCndnValidityField<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<PurInfoRecdPrcgCndnValidity>
    • setServicePathForFetch

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

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

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

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

      @Nullable public PurchasingInfoRecord fetchPurgInfoRecd()
      Fetches the PurchasingInfoRecord entity (one to one) associated with this entity. This corresponds to the OData navigation property to_PurgInfoRecd.

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

      Returns:
      The single associated PurchasingInfoRecord 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.
    • getPurgInfoRecdOrFetch

      @Nullable public PurchasingInfoRecord getPurgInfoRecdOrFetch()
      Retrieval of associated PurchasingInfoRecord entity (one to one). This corresponds to the OData navigation property to_PurgInfoRecd.

      If the navigation property to_PurgInfoRecd of a queried PurInfoRecdPrcgCndnValidity 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 PurchasingInfoRecord 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.
    • getPurgInfoRecdIfPresent

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

      If the navigation property for an entity PurInfoRecdPrcgCndnValidity 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_PurgInfoRecd is already loaded, the result will contain the PurchasingInfoRecord entity. If not, an Option with result state empty is returned.
    • setPurgInfoRecd

      public void setPurgInfoRecd(PurchasingInfoRecord value)
      Overwrites the associated PurchasingInfoRecord entity for the loaded navigation property to_PurgInfoRecd.
      Parameters:
      value - New PurchasingInfoRecord entity.
    • fetchPurgInfoRecdOrgPlantData

      @Nullable public PurgInfoRecdOrgPlantData fetchPurgInfoRecdOrgPlantData()
      Fetches the PurgInfoRecdOrgPlantData entity (one to one) associated with this entity. This corresponds to the OData navigation property to_PurgInfoRecdOrgPlantData.

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

      Returns:
      The single associated PurgInfoRecdOrgPlantData 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.
    • getPurgInfoRecdOrgPlantDataOrFetch

      @Nullable public PurgInfoRecdOrgPlantData getPurgInfoRecdOrgPlantDataOrFetch()
      Retrieval of associated PurgInfoRecdOrgPlantData entity (one to one). This corresponds to the OData navigation property to_PurgInfoRecdOrgPlantData.

      If the navigation property to_PurgInfoRecdOrgPlantData of a queried PurInfoRecdPrcgCndnValidity 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 PurgInfoRecdOrgPlantData 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.
    • getPurgInfoRecdOrgPlantDataIfPresent

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

      If the navigation property for an entity PurInfoRecdPrcgCndnValidity 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_PurgInfoRecdOrgPlantData is already loaded, the result will contain the PurgInfoRecdOrgPlantData entity. If not, an Option with result state empty is returned.
    • setPurgInfoRecdOrgPlantData

      public void setPurgInfoRecdOrgPlantData(PurgInfoRecdOrgPlantData value)
      Overwrites the associated PurgInfoRecdOrgPlantData entity for the loaded navigation property to_PurgInfoRecdOrgPlantData.
      Parameters:
      value - New PurgInfoRecdOrgPlantData entity.
    • fetchPurInfoRecdPrcgCndn

      @Nullable public PurInfoRecdPrcgCndn fetchPurInfoRecdPrcgCndn()
      Fetches the PurInfoRecdPrcgCndn entity (one to one) associated with this entity. This corresponds to the OData navigation property to_PurInfoRecdPrcgCndn.

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

      Returns:
      The single associated PurInfoRecdPrcgCndn 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.
    • getPurInfoRecdPrcgCndnOrFetch

      @Nullable public PurInfoRecdPrcgCndn getPurInfoRecdPrcgCndnOrFetch()
      Retrieval of associated PurInfoRecdPrcgCndn entity (one to one). This corresponds to the OData navigation property to_PurInfoRecdPrcgCndn.

      If the navigation property to_PurInfoRecdPrcgCndn of a queried PurInfoRecdPrcgCndnValidity 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 PurInfoRecdPrcgCndn 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.
    • getPurInfoRecdPrcgCndnIfPresent

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

      If the navigation property for an entity PurInfoRecdPrcgCndnValidity 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_PurInfoRecdPrcgCndn is already loaded, the result will contain the PurInfoRecdPrcgCndn entity. If not, an Option with result state empty is returned.
    • setPurInfoRecdPrcgCndn

      public void setPurInfoRecdPrcgCndn(PurInfoRecdPrcgCndn value)
      Overwrites the associated PurInfoRecdPrcgCndn entity for the loaded navigation property to_PurInfoRecdPrcgCndn.
      Parameters:
      value - New PurInfoRecdPrcgCndn entity.
    • builder

    • getConditionRecord

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

      Original property name from the Odata EDM: ConditionRecord

      Returns:
      Number of Condition Record
    • getConditionValidityEndDate

      @Nullable public LocalDateTime getConditionValidityEndDate()
      (Key Field) Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: ConditionValidityEndDate

      Returns:
      Validity end date of the condition record
    • getConditionValidityStartDate

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

      Original property name from the Odata EDM: ConditionValidityStartDate

      Returns:
      Validity start date of the condition record
    • getConditionApplication

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

      Original property name from the Odata EDM: ConditionApplication

      Returns:
      Application
    • getConditionType

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

      Original property name from the Odata EDM: ConditionType

      Returns:
      Condition Type
    • getPurgDocOrderQuantityUnit

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

      Original property name from the Odata EDM: PurgDocOrderQuantityUnit

      Returns:
      Purchase Order Unit of Measure
    • getPurchasingOrganization

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

      Original property name from the Odata EDM: PurchasingOrganization

      Returns:
      Purchasing Organization
    • getPurchasingInfoRecordCategory

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

      Original property name from the Odata EDM: PurchasingInfoRecordCategory

      Returns:
      Purchasing info record category
    • getPurchasingInfoRecord

      @Nullable public String getPurchasingInfoRecord()
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: PurchasingInfoRecord

      Returns:
      Number of purchasing info record
    • getSupplier

      @Nullable public String getSupplier()
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: Supplier

      Returns:
      Supplier's Account Number
    • getMaterialGroup

      @Nullable public String getMaterialGroup()
      Constraints: Not nullable, Maximum length: 9

      Original property name from the Odata EDM: MaterialGroup

      Returns:
      Material Group
    • 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
    • toString

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

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

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

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