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

public class PurContrHdrCndnValdty extends VdmEntity<PurContrHdrCndnValdty>
Purchase Contract Header Conditions Validity

Original entity name from the Odata EDM: A_PurContrHdrCndnValdtyType

  • Field Details

    • ALL_FIELDS

      public static final PurContrHdrCndnValdtySelectable ALL_FIELDS
      Selector for all available fields of PurContrHdrCndnValdty.
    • PURCHASE_CONTRACT

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

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

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

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

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

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

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

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

      public static final PurContrHdrCndnValdtyLink<PurContrHdrCndnAmount> TO_PUR_CONTR_HDR_CNDN_AMOUNT
      Use with available fluent helpers to apply the to_PurContrHdrCndnAmount navigation property to query operations.
  • Constructor Details

    • PurContrHdrCndnValdty

      public PurContrHdrCndnValdty()
    • PurContrHdrCndnValdty

      public PurContrHdrCndnValdty(@Nullable String purchaseContract, @Nullable String conditionRecord, @Nullable LocalDateTime conditionValidityEndDate, @Nullable String conditionApplication, @Nullable String conditionType, @Nullable Boolean conditionIsDeleted, @Nullable LocalDateTime conditionValidityStartDate, @Nullable PurchaseContract toPurchaseContract, List<PurContrHdrCndnAmount> toPurContrHdrCndnAmount)
  • Method Details

    • getType

      @Nonnull public Class<PurContrHdrCndnValdty> getType()
      Specified by:
      getType in class VdmObject<PurContrHdrCndnValdty>
    • 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
    • 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
    • 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<PurContrHdrCndnValdty>
    • getKey

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

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

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

      @Nonnull public static <T> PurContrHdrCndnValdtyField<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> PurContrHdrCndnValdtyField<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<PurContrHdrCndnValdty>
    • setServicePathForFetch

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

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

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

      @Nonnull protected Map<String,Object> toMapOfNavigationProperties()
      Overrides:
      toMapOfNavigationProperties in class VdmObject<PurContrHdrCndnValdty>
    • 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 PurContrHdrCndnValdty 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 PurContrHdrCndnValdty 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.
    • fetchPurContrHdrCndnAmount

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

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

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

      @Nonnull public List<PurContrHdrCndnAmount> getPurContrHdrCndnAmountOrFetch()
      Retrieval of associated PurContrHdrCndnAmount entities (one to many). This corresponds to the OData navigation property to_PurContrHdrCndnAmount.

      If the navigation property to_PurContrHdrCndnAmount of a queried PurContrHdrCndnValdty 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 PurContrHdrCndnAmount 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.
    • getPurContrHdrCndnAmountIfPresent

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

      If the navigation property for an entity PurContrHdrCndnValdty 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_PurContrHdrCndnAmount is already loaded, the result will contain the PurContrHdrCndnAmount entities. If not, an Option with result state empty is returned.
    • setPurContrHdrCndnAmount

      public void setPurContrHdrCndnAmount(@Nonnull List<PurContrHdrCndnAmount> value)
      Overwrites the list of associated PurContrHdrCndnAmount entities for the loaded navigation property to_PurContrHdrCndnAmount.

      If the navigation property to_PurContrHdrCndnAmount of a queried PurContrHdrCndnValdty 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 PurContrHdrCndnAmount entities.
    • addPurContrHdrCndnAmount

      public void addPurContrHdrCndnAmount(PurContrHdrCndnAmount... entity)
      Adds elements to the list of associated PurContrHdrCndnAmount entities. This corresponds to the OData navigation property to_PurContrHdrCndnAmount.

      If the navigation property to_PurContrHdrCndnAmount of a queried PurContrHdrCndnValdty 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 PurContrHdrCndnAmount entities.
    • builder

      @Nonnull public static PurContrHdrCndnValdty.PurContrHdrCndnValdtyBuilder 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
    • 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
    • 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<PurContrHdrCndnValdty>
    • equals

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

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

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