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

public class CntrlPurContrItmCndnValdty extends VdmEntity<CntrlPurContrItmCndnValdty>
Item Condition Validity

Original entity name from the Odata EDM: A_CntrlPurContrItmCndnValdtyType

  • Field Details

  • Constructor Details

  • Method Details

    • getType

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

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

      Original property name from the Odata EDM: CentralPurchaseContract

      Parameters:
      centralPurchaseContract - Purchasing Document Number
    • setCentralPurchaseContractItem

      public void setCentralPurchaseContractItem(@Nullable String centralPurchaseContractItem)
      (Key Field) Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: CentralPurchaseContractItem

      Parameters:
      centralPurchaseContractItem - Item Number of Purchasing Document
    • 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
    • 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
    • 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
    • setProcmtHubPlantUniqueID

      public void setProcmtHubPlantUniqueID(@Nullable String procmtHubPlantUniqueID)
      Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: ProcmtHubPlantUniqueID

      Parameters:
      procmtHubPlantUniqueID - Plant Unique ID
    • setConditionIsDeleted

      public void setConditionIsDeleted(@Nullable Boolean conditionIsDeleted)
      Constraints: none

      Original property name from the Odata EDM: ConditionIsDeleted

      Parameters:
      conditionIsDeleted - Deletion Indicator for Condition Record
    • getEntityCollection

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

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

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

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

      @Nonnull public static <T> CntrlPurContrItmCndnValdtyField<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> CntrlPurContrItmCndnValdtyField<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<CntrlPurContrItmCndnValdty>
    • setServicePathForFetch

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

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

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

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

      @Nullable public CentralPurchaseContract fetchCentralPurchaseContract()
      Fetches the CentralPurchaseContract entity (one to one) associated with this entity. This corresponds to the OData navigation property to_CentralPurchaseContract.

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

      Returns:
      The single associated CentralPurchaseContract 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.
    • getCentralPurchaseContractOrFetch

      @Nullable public CentralPurchaseContract getCentralPurchaseContractOrFetch()
      Retrieval of associated CentralPurchaseContract entity (one to one). This corresponds to the OData navigation property to_CentralPurchaseContract.

      If the navigation property to_CentralPurchaseContract of a queried CntrlPurContrItmCndnValdty 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 CentralPurchaseContract 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.
    • getCentralPurchaseContractIfPresent

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

      If the navigation property for an entity CntrlPurContrItmCndnValdty 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_CentralPurchaseContract is already loaded, the result will contain the CentralPurchaseContract entity. If not, an Option with result state empty is returned.
    • setCentralPurchaseContract

      public void setCentralPurchaseContract(CentralPurchaseContract value)
      Overwrites the associated CentralPurchaseContract entity for the loaded navigation property to_CentralPurchaseContract.
      Parameters:
      value - New CentralPurchaseContract entity.
    • fetchCntrlPurchaseContractItem

      @Nullable public CntrlPurchaseContractItem fetchCntrlPurchaseContractItem()
      Fetches the CntrlPurchaseContractItem entity (one to one) associated with this entity. This corresponds to the OData navigation property to_CntrlPurchaseContractItem.

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

      Returns:
      The single associated CntrlPurchaseContractItem 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.
    • getCntrlPurchaseContractItemOrFetch

      @Nullable public CntrlPurchaseContractItem getCntrlPurchaseContractItemOrFetch()
      Retrieval of associated CntrlPurchaseContractItem entity (one to one). This corresponds to the OData navigation property to_CntrlPurchaseContractItem.

      If the navigation property to_CntrlPurchaseContractItem of a queried CntrlPurContrItmCndnValdty 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 CntrlPurchaseContractItem 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.
    • getCntrlPurchaseContractItemIfPresent

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

      If the navigation property for an entity CntrlPurContrItmCndnValdty 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_CntrlPurchaseContractItem is already loaded, the result will contain the CntrlPurchaseContractItem entity. If not, an Option with result state empty is returned.
    • setCntrlPurchaseContractItem

      public void setCntrlPurchaseContractItem(CntrlPurchaseContractItem value)
      Overwrites the associated CntrlPurchaseContractItem entity for the loaded navigation property to_CntrlPurchaseContractItem.
      Parameters:
      value - New CntrlPurchaseContractItem entity.
    • fetchCntrlPurContrItmCndnAmount

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

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

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

      @Nonnull public List<CntrlPurContrItmCndnAmount> getCntrlPurContrItmCndnAmountOrFetch()
      Retrieval of associated CntrlPurContrItmCndnAmount entities (one to many). This corresponds to the OData navigation property to_CntrlPurContrItmCndnAmount.

      If the navigation property to_CntrlPurContrItmCndnAmount of a queried CntrlPurContrItmCndnValdty 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 CntrlPurContrItmCndnAmount 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.
    • getCntrlPurContrItmCndnAmountIfPresent

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

      If the navigation property for an entity CntrlPurContrItmCndnValdty 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_CntrlPurContrItmCndnAmount is already loaded, the result will contain the CntrlPurContrItmCndnAmount entities. If not, an Option with result state empty is returned.
    • setCntrlPurContrItmCndnAmount

      public void setCntrlPurContrItmCndnAmount(@Nonnull List<CntrlPurContrItmCndnAmount> value)
      Overwrites the list of associated CntrlPurContrItmCndnAmount entities for the loaded navigation property to_CntrlPurContrItmCndnAmount.

      If the navigation property to_CntrlPurContrItmCndnAmount of a queried CntrlPurContrItmCndnValdty 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 CntrlPurContrItmCndnAmount entities.
    • addCntrlPurContrItmCndnAmount

      public void addCntrlPurContrItmCndnAmount(CntrlPurContrItmCndnAmount... entity)
      Adds elements to the list of associated CntrlPurContrItmCndnAmount entities. This corresponds to the OData navigation property to_CntrlPurContrItmCndnAmount.

      If the navigation property to_CntrlPurContrItmCndnAmount of a queried CntrlPurContrItmCndnValdty 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 CntrlPurContrItmCndnAmount entities.
    • builder

    • getCentralPurchaseContract

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

      Original property name from the Odata EDM: CentralPurchaseContract

      Returns:
      Purchasing Document Number
    • getCentralPurchaseContractItem

      @Nullable public String getCentralPurchaseContractItem()
      (Key Field) Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: CentralPurchaseContractItem

      Returns:
      Item Number of Purchasing Document
    • 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
    • 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
    • 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
    • getProcmtHubPlantUniqueID

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

      Original property name from the Odata EDM: ProcmtHubPlantUniqueID

      Returns:
      Plant Unique ID
    • getConditionIsDeleted

      @Nullable public Boolean getConditionIsDeleted()
      Constraints: none

      Original property name from the Odata EDM: ConditionIsDeleted

      Returns:
      Deletion Indicator for Condition Record
    • toString

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

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

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

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