Class ProjectDemandMaterialSupply

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

public class ProjectDemandMaterialSupply extends VdmEntity<ProjectDemandMaterialSupply>
Material Supply Data

Original entity name from the Odata EDM: A_ProjectDemandMaterialSupply_Type

  • Field Details

    • ALL_FIELDS

      public static final ProjectDemandMaterialSupplySelectable ALL_FIELDS
      Selector for all available fields of ProjectDemandMaterialSupply.
    • PROJ_DEMAND_MATERIAL_SUPPLY_UUID

      public static final ProjectDemandMaterialSupplyField<UUID> PROJ_DEMAND_MATERIAL_SUPPLY_UUID
      Use with available fluent helpers to apply the ProjDemandMaterialSupplyUUID field to query operations.
    • PROJECT_DEMAND_MATERIAL_UUID

      public static final ProjectDemandMaterialSupplyField<UUID> PROJECT_DEMAND_MATERIAL_UUID
      Use with available fluent helpers to apply the ProjectDemandMaterialUUID field to query operations.
    • PURCHASE_REQUISITION

      public static final ProjectDemandMaterialSupplyField<String> PURCHASE_REQUISITION
      Use with available fluent helpers to apply the PurchaseRequisition field to query operations.
    • PURCHASE_REQUISITION_ITEM

      public static final ProjectDemandMaterialSupplyField<String> PURCHASE_REQUISITION_ITEM
      Use with available fluent helpers to apply the PurchaseRequisitionItem field to query operations.
    • PROJECT_DEMAND_REQUIREMENT_PLAN

      public static final ProjectDemandMaterialSupplyField<String> PROJECT_DEMAND_REQUIREMENT_PLAN
      Use with available fluent helpers to apply the ProjectDemandRequirementPlan field to query operations.
    • PROJ_DMND_PLND_INDEP_RQMT_ITEM

      public static final ProjectDemandMaterialSupplyField<String> PROJ_DMND_PLND_INDEP_RQMT_ITEM
      Use with available fluent helpers to apply the ProjDmndPlndIndepRqmtItem field to query operations.
    • PROJECT_DEMAND_UUID

      public static final ProjectDemandMaterialSupplyField<UUID> PROJECT_DEMAND_UUID
      Use with available fluent helpers to apply the ProjectDemandUUID field to query operations.
    • TO_MATERIAL

      Use with available fluent helpers to apply the to_Material navigation property to query operations.
    • TO_ROOT

      Use with available fluent helpers to apply the to_Root navigation property to query operations.
  • Constructor Details

    • ProjectDemandMaterialSupply

      public ProjectDemandMaterialSupply()
    • ProjectDemandMaterialSupply

      public ProjectDemandMaterialSupply(@Nullable UUID projDemandMaterialSupplyUUID, @Nullable UUID projectDemandMaterialUUID, @Nullable String purchaseRequisition, @Nullable String purchaseRequisitionItem, @Nullable String projectDemandRequirementPlan, @Nullable String projDmndPlndIndepRqmtItem, @Nullable UUID projectDemandUUID, @Nullable ProjectDemandMaterial toMaterial, @Nullable ProjectDemand toRoot)
  • Method Details

    • getType

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

      public void setProjDemandMaterialSupplyUUID(@Nullable UUID projDemandMaterialSupplyUUID)
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: ProjDemandMaterialSupplyUUID

      Parameters:
      projDemandMaterialSupplyUUID - UUID for the Material Demand Supply
    • setProjectDemandMaterialUUID

      public void setProjectDemandMaterialUUID(@Nullable UUID projectDemandMaterialUUID)
      Constraints: none

      Original property name from the Odata EDM: ProjectDemandMaterialUUID

      Parameters:
      projectDemandMaterialUUID - Global Identification for Material Demand
    • setPurchaseRequisition

      public void setPurchaseRequisition(@Nullable String purchaseRequisition)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: PurchaseRequisition

      Parameters:
      purchaseRequisition - Purchase Requisition Number
    • setPurchaseRequisitionItem

      public void setPurchaseRequisitionItem(@Nullable String purchaseRequisitionItem)
      Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: PurchaseRequisitionItem

      Parameters:
      purchaseRequisitionItem - Purchase Requisition Item Number
    • setProjectDemandRequirementPlan

      public void setProjectDemandRequirementPlan(@Nullable String projectDemandRequirementPlan)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: ProjectDemandRequirementPlan

      Parameters:
      projectDemandRequirementPlan - Project Demand Requirement Plan
    • setProjDmndPlndIndepRqmtItem

      public void setProjDmndPlndIndepRqmtItem(@Nullable String projDmndPlndIndepRqmtItem)
      Constraints: Not nullable, Maximum length: 60

      Original property name from the Odata EDM: ProjDmndPlndIndepRqmtItem

      Parameters:
      projDmndPlndIndepRqmtItem - Project Demand Planned Independent Requirement Item
    • setProjectDemandUUID

      public void setProjectDemandUUID(@Nullable UUID projectDemandUUID)
      Constraints: none

      Original property name from the Odata EDM: ProjectDemandUUID

      Parameters:
      projectDemandUUID - Global Identification of a Project Demand
    • getEntityCollection

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

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

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

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

      @Nonnull public static <T> ProjectDemandMaterialSupplyField<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> ProjectDemandMaterialSupplyField<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<ProjectDemandMaterialSupply>
    • setServicePathForFetch

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

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

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

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

      @Nullable public ProjectDemandMaterial fetchMaterial()
      Fetches the ProjectDemandMaterial entity (one to one) associated with this entity. This corresponds to the OData navigation property to_Material.

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

      Returns:
      The single associated ProjectDemandMaterial 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.
    • getMaterialOrFetch

      @Nullable public ProjectDemandMaterial getMaterialOrFetch()
      Retrieval of associated ProjectDemandMaterial entity (one to one). This corresponds to the OData navigation property to_Material.

      If the navigation property to_Material of a queried ProjectDemandMaterialSupply 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 ProjectDemandMaterial 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.
    • getMaterialIfPresent

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

      If the navigation property for an entity ProjectDemandMaterialSupply 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_Material is already loaded, the result will contain the ProjectDemandMaterial entity. If not, an Option with result state empty is returned.
    • setMaterial

      public void setMaterial(ProjectDemandMaterial value)
      Overwrites the associated ProjectDemandMaterial entity for the loaded navigation property to_Material.
      Parameters:
      value - New ProjectDemandMaterial entity.
    • fetchRoot

      @Nullable public ProjectDemand fetchRoot()
      Fetches the ProjectDemand entity (one to one) associated with this entity. This corresponds to the OData navigation property to_Root.

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

      Returns:
      The single associated ProjectDemand 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.
    • getRootOrFetch

      @Nullable public ProjectDemand getRootOrFetch()
      Retrieval of associated ProjectDemand entity (one to one). This corresponds to the OData navigation property to_Root.

      If the navigation property to_Root of a queried ProjectDemandMaterialSupply 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 ProjectDemand 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.
    • getRootIfPresent

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

      If the navigation property for an entity ProjectDemandMaterialSupply 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_Root is already loaded, the result will contain the ProjectDemand entity. If not, an Option with result state empty is returned.
    • setRoot

      public void setRoot(ProjectDemand value)
      Overwrites the associated ProjectDemand entity for the loaded navigation property to_Root.
      Parameters:
      value - New ProjectDemand entity.
    • builder

    • getProjDemandMaterialSupplyUUID

      @Nullable public UUID getProjDemandMaterialSupplyUUID()
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: ProjDemandMaterialSupplyUUID

      Returns:
      UUID for the Material Demand Supply
    • getProjectDemandMaterialUUID

      @Nullable public UUID getProjectDemandMaterialUUID()
      Constraints: none

      Original property name from the Odata EDM: ProjectDemandMaterialUUID

      Returns:
      Global Identification for Material Demand
    • getPurchaseRequisition

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

      Original property name from the Odata EDM: PurchaseRequisition

      Returns:
      Purchase Requisition Number
    • getPurchaseRequisitionItem

      @Nullable public String getPurchaseRequisitionItem()
      Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: PurchaseRequisitionItem

      Returns:
      Purchase Requisition Item Number
    • getProjectDemandRequirementPlan

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

      Original property name from the Odata EDM: ProjectDemandRequirementPlan

      Returns:
      Project Demand Requirement Plan
    • getProjDmndPlndIndepRqmtItem

      @Nullable public String getProjDmndPlndIndepRqmtItem()
      Constraints: Not nullable, Maximum length: 60

      Original property name from the Odata EDM: ProjDmndPlndIndepRqmtItem

      Returns:
      Project Demand Planned Independent Requirement Item
    • getProjectDemandUUID

      @Nullable public UUID getProjectDemandUUID()
      Constraints: none

      Original property name from the Odata EDM: ProjectDemandUUID

      Returns:
      Global Identification of a Project Demand
    • toString

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

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

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

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