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

public class PurContrItmCndnValdty extends VdmEntity<PurContrItmCndnValdty>
Purchase Contract Item Condition Validity

Original entity name from the Odata EDM: A_PurContrItmCndnValdtyType

  • Field Details

    • ALL_FIELDS

      public static final PurContrItmCndnValdtySelectable ALL_FIELDS
      Selector for all available fields of PurContrItmCndnValdty.
    • PURCHASE_CONTRACT

      public static final PurContrItmCndnValdtyField<String> PURCHASE_CONTRACT
      Use with available fluent helpers to apply the PurchaseContract field to query operations.
    • PURCHASE_CONTRACT_ITEM

      public static final PurContrItmCndnValdtyField<String> PURCHASE_CONTRACT_ITEM
      Use with available fluent helpers to apply the PurchaseContractItem field to query operations.
    • CONDITION_RECORD

      public static final PurContrItmCndnValdtyField<String> CONDITION_RECORD
      Use with available fluent helpers to apply the ConditionRecord field to query operations.
    • CONDITION_VALIDITY_END_DATE

      public static final PurContrItmCndnValdtyField<LocalDateTime> CONDITION_VALIDITY_END_DATE
      Use with available fluent helpers to apply the ConditionValidityEndDate field to query operations.
    • CONDITION_APPLICATION

      public static final PurContrItmCndnValdtyField<String> CONDITION_APPLICATION
      Use with available fluent helpers to apply the ConditionApplication field to query operations.
    • CONDITION_TYPE

      public static final PurContrItmCndnValdtyField<String> CONDITION_TYPE
      Use with available fluent helpers to apply the ConditionType field to query operations.
    • CONDITION_IS_DELETED

      public static final PurContrItmCndnValdtyField<Boolean> CONDITION_IS_DELETED
      Use with available fluent helpers to apply the ConditionIsDeleted field to query operations.
    • PLANT

      public static final PurContrItmCndnValdtyField<String> PLANT
      Use with available fluent helpers to apply the Plant field to query operations.
    • CONDITION_VALIDITY_START_DATE

      public static final PurContrItmCndnValdtyField<LocalDateTime> CONDITION_VALIDITY_START_DATE
      Use with available fluent helpers to apply the ConditionValidityStartDate field to query operations.
    • TO_PURCHASE_CONTRACT_ITEM

      public static final PurContrItmCndnValdtyOneToOneLink<PurchaseContractItem> TO_PURCHASE_CONTRACT_ITEM
      Use with available fluent helpers to apply the to_PurchaseContractItem navigation property to query operations.
    • TO_PURCHASE_CONTRACT

      public static final PurContrItmCndnValdtyOneToOneLink<PurchaseContract> TO_PURCHASE_CONTRACT
      Use with available fluent helpers to apply the to_PurchaseContract navigation property to query operations.
    • TO_PUR_CONTR_ITM_CNDN_AMOUNT

      public static final PurContrItmCndnValdtyLink<PurContrItmCndnAmount> TO_PUR_CONTR_ITM_CNDN_AMOUNT
      Use with available fluent helpers to apply the to_PurContrItmCndnAmount navigation property to query operations.
  • Constructor Details

  • Method Details

    • getType

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

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

      Original property name from the Odata EDM: PurchaseContract

      Parameters:
      purchaseContract - Purchasing Document Number
    • setPurchaseContractItem

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

      Original property name from the Odata EDM: PurchaseContractItem

      Parameters:
      purchaseContractItem - 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
    • setConditionIsDeleted

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

      Original property name from the Odata EDM: ConditionIsDeleted

      Parameters:
      conditionIsDeleted - Deletion Indicator for Condition Record
    • setPlant

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

      Original property name from the Odata EDM: Plant

      Parameters:
      plant - Plant
    • 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
    • getEntityCollection

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

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

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

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

      @Nonnull public static <T> PurContrItmCndnValdtyField<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> PurContrItmCndnValdtyField<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<PurContrItmCndnValdty>
    • setServicePathForFetch

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

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

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

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

      @Nullable public PurchaseContractItem fetchPurchaseContractItem()
      Fetches the PurchaseContractItem entity (one to one) associated with this entity. This corresponds to the OData navigation property to_PurchaseContractItem.

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

      Returns:
      The single associated PurchaseContractItem 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.
    • getPurchaseContractItemOrFetch

      @Nullable public PurchaseContractItem getPurchaseContractItemOrFetch()
      Retrieval of associated PurchaseContractItem entity (one to one). This corresponds to the OData navigation property to_PurchaseContractItem.

      If the navigation property to_PurchaseContractItem of a queried PurContrItmCndnValdty 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 PurchaseContractItem 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.
    • getPurchaseContractItemIfPresent

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

      If the navigation property for an entity PurContrItmCndnValdty 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_PurchaseContractItem is already loaded, the result will contain the PurchaseContractItem entity. If not, an Option with result state empty is returned.
    • setPurchaseContractItem

      public void setPurchaseContractItem(PurchaseContractItem value)
      Overwrites the associated PurchaseContractItem entity for the loaded navigation property to_PurchaseContractItem.
      Parameters:
      value - New PurchaseContractItem entity.
    • fetchPurchaseContract

      @Nullable public PurchaseContract fetchPurchaseContract()
      Fetches the PurchaseContract entity (one to one) associated with this entity. This corresponds to the OData navigation property to_PurchaseContract.

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

      Returns:
      The single associated PurchaseContract 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.
    • getPurchaseContractOrFetch

      @Nullable public PurchaseContract getPurchaseContractOrFetch()
      Retrieval of associated PurchaseContract entity (one to one). This corresponds to the OData navigation property to_PurchaseContract.

      If the navigation property to_PurchaseContract of a queried PurContrItmCndnValdty 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 PurchaseContract 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.
    • getPurchaseContractIfPresent

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

      If the navigation property for an entity PurContrItmCndnValdty 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_PurchaseContract is already loaded, the result will contain the PurchaseContract entity. If not, an Option with result state empty is returned.
    • setPurchaseContract

      public void setPurchaseContract(PurchaseContract value)
      Overwrites the associated PurchaseContract entity for the loaded navigation property to_PurchaseContract.
      Parameters:
      value - New PurchaseContract entity.
    • fetchPurContrItmCndnAmount

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

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

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

      @Nonnull public List<PurContrItmCndnAmount> getPurContrItmCndnAmountOrFetch()
      Retrieval of associated PurContrItmCndnAmount entities (one to many). This corresponds to the OData navigation property to_PurContrItmCndnAmount.

      If the navigation property to_PurContrItmCndnAmount of a queried PurContrItmCndnValdty 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 PurContrItmCndnAmount 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.
    • getPurContrItmCndnAmountIfPresent

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

      If the navigation property for an entity PurContrItmCndnValdty 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_PurContrItmCndnAmount is already loaded, the result will contain the PurContrItmCndnAmount entities. If not, an Option with result state empty is returned.
    • setPurContrItmCndnAmount

      public void setPurContrItmCndnAmount(@Nonnull List<PurContrItmCndnAmount> value)
      Overwrites the list of associated PurContrItmCndnAmount entities for the loaded navigation property to_PurContrItmCndnAmount.

      If the navigation property to_PurContrItmCndnAmount of a queried PurContrItmCndnValdty 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 PurContrItmCndnAmount entities.
    • addPurContrItmCndnAmount

      public void addPurContrItmCndnAmount(PurContrItmCndnAmount... entity)
      Adds elements to the list of associated PurContrItmCndnAmount entities. This corresponds to the OData navigation property to_PurContrItmCndnAmount.

      If the navigation property to_PurContrItmCndnAmount of a queried PurContrItmCndnValdty 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 PurContrItmCndnAmount entities.
    • builder

      @Nonnull public static PurContrItmCndnValdty.PurContrItmCndnValdtyBuilder builder()
    • getPurchaseContract

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

      Original property name from the Odata EDM: PurchaseContract

      Returns:
      Purchasing Document Number
    • getPurchaseContractItem

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

      Original property name from the Odata EDM: PurchaseContractItem

      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
    • getConditionIsDeleted

      @Nullable public Boolean getConditionIsDeleted()
      Constraints: none

      Original property name from the Odata EDM: ConditionIsDeleted

      Returns:
      Deletion Indicator for Condition Record
    • getPlant

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

      Original property name from the Odata EDM: Plant

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

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

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

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

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