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

public class CePuCoDistrdOutlineAgrmt extends VdmEntity<CePuCoDistrdOutlineAgrmt>
Distributed Outline Agreement

Original entity name from the Odata EDM: A_CePuCoDistrdOutlineAgrmtType

  • Field Details

    • ALL_FIELDS

      public static final CePuCoDistrdOutlineAgrmtSelectable ALL_FIELDS
      Selector for all available fields of CePuCoDistrdOutlineAgrmt.
    • CENTRAL_PURCHASE_CONTRACT

      public static final CePuCoDistrdOutlineAgrmtField<String> CENTRAL_PURCHASE_CONTRACT
      Use with available fluent helpers to apply the CentralPurchaseContract field to query operations.
    • EXT_CONTRACT_FOR_PURG

      public static final CePuCoDistrdOutlineAgrmtField<String> EXT_CONTRACT_FOR_PURG
      Use with available fluent helpers to apply the ExtContractForPurg field to query operations.
    • PROCUREMENT_HUB_SOURCE_SYSTEM

      public static final CePuCoDistrdOutlineAgrmtField<String> PROCUREMENT_HUB_SOURCE_SYSTEM
      Use with available fluent helpers to apply the ProcurementHubSourceSystem field to query operations.
    • COMPANY_CODE

      public static final CePuCoDistrdOutlineAgrmtField<String> COMPANY_CODE
      Use with available fluent helpers to apply the CompanyCode field to query operations.
    • PURCHASING_ORGANIZATION

      public static final CePuCoDistrdOutlineAgrmtField<String> PURCHASING_ORGANIZATION
      Use with available fluent helpers to apply the PurchasingOrganization field to query operations.
    • PURCHASING_GROUP

      public static final CePuCoDistrdOutlineAgrmtField<String> PURCHASING_GROUP
      Use with available fluent helpers to apply the PurchasingGroup field to query operations.
    • PURG_DOC_ITEM_DISTRIBUTION_STATUS

      public static final CePuCoDistrdOutlineAgrmtField<String> PURG_DOC_ITEM_DISTRIBUTION_STATUS
      Use with available fluent helpers to apply the PurgDocItemDistributionStatus field to query operations.
    • SOURCE_LIST_IS_UPDATED

      public static final CePuCoDistrdOutlineAgrmtField<String> SOURCE_LIST_IS_UPDATED
      Use with available fluent helpers to apply the SourceListIsUpdated field to query operations.
    • SOURCE_LIST_CHANGE_CONF_STATUS

      public static final CePuCoDistrdOutlineAgrmtField<String> SOURCE_LIST_CHANGE_CONF_STATUS
      Use with available fluent helpers to apply the SourceListChangeConfStatus field to query operations.
    • TO_CENTRAL_PURCHASE_CONTRACT

      public static final CePuCoDistrdOutlineAgrmtOneToOneLink<CentralPurchaseContract> TO_CENTRAL_PURCHASE_CONTRACT
      Use with available fluent helpers to apply the to_CentralPurchaseContract navigation property to query operations.
    • TO_DISTRIBUTED_PAYMENT_TERMS

      public static final CePuCoDistrdOutlineAgrmtOneToOneLink<CePuCoDistrdContrPaytTrms> TO_DISTRIBUTED_PAYMENT_TERMS
      Use with available fluent helpers to apply the to_DistributedPaymentTerms navigation property to query operations.
  • Constructor Details

    • CePuCoDistrdOutlineAgrmt

      public CePuCoDistrdOutlineAgrmt()
    • CePuCoDistrdOutlineAgrmt

      public CePuCoDistrdOutlineAgrmt(@Nullable String centralPurchaseContract, @Nullable String extContractForPurg, @Nullable String procurementHubSourceSystem, @Nullable String companyCode, @Nullable String purchasingOrganization, @Nullable String purchasingGroup, @Nullable String purgDocItemDistributionStatus, @Nullable String sourceListIsUpdated, @Nullable String sourceListChangeConfStatus, @Nullable CentralPurchaseContract toCentralPurchaseContract, @Nullable CePuCoDistrdContrPaytTrms toDistributedPaymentTerms)
  • Method Details

    • getType

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

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

      Original property name from the Odata EDM: ExtContractForPurg

      Parameters:
      extContractForPurg - Contract of External System
    • setProcurementHubSourceSystem

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

      Original property name from the Odata EDM: ProcurementHubSourceSystem

      Parameters:
      procurementHubSourceSystem - Logical System
    • setCompanyCode

      public void setCompanyCode(@Nullable String companyCode)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: CompanyCode

      Parameters:
      companyCode - Company Code
    • 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
    • setPurchasingGroup

      public void setPurchasingGroup(@Nullable String purchasingGroup)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: PurchasingGroup

      Parameters:
      purchasingGroup - Purchasing Group
    • setPurgDocItemDistributionStatus

      public void setPurgDocItemDistributionStatus(@Nullable String purgDocItemDistributionStatus)
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: PurgDocItemDistributionStatus

      Parameters:
      purgDocItemDistributionStatus - Distribution Status
    • setSourceListIsUpdated

      public void setSourceListIsUpdated(@Nullable String sourceListIsUpdated)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: SourceListIsUpdated

      Parameters:
      sourceListIsUpdated - Sourcelist Updated
    • setSourceListChangeConfStatus

      public void setSourceListChangeConfStatus(@Nullable String sourceListChangeConfStatus)
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: SourceListChangeConfStatus

      Parameters:
      sourceListChangeConfStatus - Source List Change Status
    • getEntityCollection

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

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

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

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

      @Nonnull public static <T> CePuCoDistrdOutlineAgrmtField<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> CePuCoDistrdOutlineAgrmtField<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<CePuCoDistrdOutlineAgrmt>
    • setServicePathForFetch

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

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

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

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

      @Nullable public CePuCoDistrdContrPaytTrms fetchDistributedPaymentTerms()
      Fetches the CePuCoDistrdContrPaytTrms entity (one to one) associated with this entity. This corresponds to the OData navigation property to_DistributedPaymentTerms.

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

      Returns:
      The single associated CePuCoDistrdContrPaytTrms 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.
    • getDistributedPaymentTermsOrFetch

      @Nullable public CePuCoDistrdContrPaytTrms getDistributedPaymentTermsOrFetch()
      Retrieval of associated CePuCoDistrdContrPaytTrms entity (one to one). This corresponds to the OData navigation property to_DistributedPaymentTerms.

      If the navigation property to_DistributedPaymentTerms of a queried CePuCoDistrdOutlineAgrmt 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 CePuCoDistrdContrPaytTrms 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.
    • getDistributedPaymentTermsIfPresent

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

      If the navigation property for an entity CePuCoDistrdOutlineAgrmt 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_DistributedPaymentTerms is already loaded, the result will contain the CePuCoDistrdContrPaytTrms entity. If not, an Option with result state empty is returned.
    • setDistributedPaymentTerms

      public void setDistributedPaymentTerms(CePuCoDistrdContrPaytTrms value)
      Overwrites the associated CePuCoDistrdContrPaytTrms entity for the loaded navigation property to_DistributedPaymentTerms.
      Parameters:
      value - New CePuCoDistrdContrPaytTrms entity.
    • 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
    • getExtContractForPurg

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

      Original property name from the Odata EDM: ExtContractForPurg

      Returns:
      Contract of External System
    • getProcurementHubSourceSystem

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

      Original property name from the Odata EDM: ProcurementHubSourceSystem

      Returns:
      Logical System
    • getCompanyCode

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

      Original property name from the Odata EDM: CompanyCode

      Returns:
      Company Code
    • getPurchasingOrganization

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

      Original property name from the Odata EDM: PurchasingOrganization

      Returns:
      Purchasing Organization
    • getPurchasingGroup

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

      Original property name from the Odata EDM: PurchasingGroup

      Returns:
      Purchasing Group
    • getPurgDocItemDistributionStatus

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

      Original property name from the Odata EDM: PurgDocItemDistributionStatus

      Returns:
      Distribution Status
    • getSourceListIsUpdated

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

      Original property name from the Odata EDM: SourceListIsUpdated

      Returns:
      Sourcelist Updated
    • getSourceListChangeConfStatus

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

      Original property name from the Odata EDM: SourceListChangeConfStatus

      Returns:
      Source List Change Status
    • toString

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

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

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

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