java.lang.Object
com.sap.cloud.sdk.datamodel.odatav4.core.VdmObject<EntityT>
com.sap.cloud.sdk.datamodel.odatav4.core.VdmEntity<ProcurementProject>
com.sap.cloud.sdk.s4hana.datamodel.odatav4.namespaces.procurementproject.ProcurementProject
All Implemented Interfaces:
VdmEntitySet

public class ProcurementProject extends VdmEntity<ProcurementProject> implements VdmEntitySet
Procurement Project

Original entity name from the Odata EDM: ProcurementProject_Type

  • Field Details

  • Constructor Details

    • ProcurementProject

      public ProcurementProject()
    • ProcurementProject

      public ProcurementProject(@Nullable UUID procurementProjectUUID, @Nullable String procurementProject, @Nullable String procurementProjectName, @Nullable String externalProjectReference, @Nullable String companyCode, @Nullable String lastChangedByUser, @Nullable String createdByUser, @Nullable OffsetDateTime lastChangeDateTime, @Nullable OffsetDateTime creationDateTime, @Nullable String procurementProjectActvtnSts, @Nullable String sourcingOrigin, @Nullable String sourcingScenario, @Nullable UUID procmtPlanningSubprojectUUID, @Nullable String isEndOfPurposeBlocked, @Nullable Collection<SAP__Message> _Messages, List<ProcurementProjectPlant> to_ProcurementProjectPlant)
  • Method Details

    • getType

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

      public void setProcurementProjectUUID(@Nullable UUID procurementProjectUUID)
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: ProcurementProjectUUID

      Parameters:
      procurementProjectUUID - Procurement Project UUID
    • setProcurementProject

      public void setProcurementProject(@Nullable String procurementProject)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: ProcurementProject

      Parameters:
      procurementProject - Procurement Project
    • setProcurementProjectName

      public void setProcurementProjectName(@Nullable String procurementProjectName)
      Constraints: Not nullable, Maximum length: 60

      Original property name from the Odata EDM: ProcurementProjectName

      Parameters:
      procurementProjectName - Procurement Project Name
    • setExternalProjectReference

      public void setExternalProjectReference(@Nullable String externalProjectReference)
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: ExternalProjectReference

      Parameters:
      externalProjectReference - External Project Reference
    • 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
    • setLastChangedByUser

      public void setLastChangedByUser(@Nullable String lastChangedByUser)
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: LastChangedByUser

      Parameters:
      lastChangedByUser - Last Changed By User
    • setCreatedByUser

      public void setCreatedByUser(@Nullable String createdByUser)
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: CreatedByUser

      Parameters:
      createdByUser - Created By User
    • setLastChangeDateTime

      public void setLastChangeDateTime(@Nullable OffsetDateTime lastChangeDateTime)
      Constraints: Nullable, Precision: 7

      Original property name from the Odata EDM: LastChangeDateTime

      Parameters:
      lastChangeDateTime - Last Changed On
    • setCreationDateTime

      public void setCreationDateTime(@Nullable OffsetDateTime creationDateTime)
      Constraints: Nullable, Precision: 7

      Original property name from the Odata EDM: CreationDateTime

      Parameters:
      creationDateTime - Creation Date
    • setProcurementProjectActvtnSts

      public void setProcurementProjectActvtnSts(@Nullable String procurementProjectActvtnSts)
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: ProcurementProjectActvtnSts

      Parameters:
      procurementProjectActvtnSts - Procurement Project Activation Status
    • setSourcingOrigin

      public void setSourcingOrigin(@Nullable String sourcingOrigin)
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: SourcingOrigin

      Parameters:
      sourcingOrigin - Sourcing Origin
    • setSourcingScenario

      public void setSourcingScenario(@Nullable String sourcingScenario)
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: SourcingScenario

      Parameters:
      sourcingScenario - Sourcing Integration Scenario
    • setProcmtPlanningSubprojectUUID

      public void setProcmtPlanningSubprojectUUID(@Nullable UUID procmtPlanningSubprojectUUID)
      Constraints: Nullable

      Original property name from the Odata EDM: ProcmtPlanningSubprojectUUID

      Parameters:
      procmtPlanningSubprojectUUID - Procurement Planning Subproject UUID
    • setIsEndOfPurposeBlocked

      public void setIsEndOfPurposeBlocked(@Nullable String isEndOfPurposeBlocked)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: IsEndOfPurposeBlocked

      Parameters:
      isEndOfPurposeBlocked - Business Purpose Completed
    • set_Messages

      public void set_Messages(@Nullable Collection<SAP__Message> _Messages)
      Constraints: Not nullable

      Original property name from the Odata EDM: SAP__Messages

      Parameters:
      _Messages - The _Messages to set.
    • getEntityCollection

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

      @Nonnull protected ODataEntityKey getKey()
      Overrides:
      getKey in class VdmObject<ProcurementProject>
    • toMapOfFields

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

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

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

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

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

      If the navigation property for an entity ProcurementProject 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 _ProcurementProjectPlant is already loaded, the result will contain the ProcurementProjectPlant entities. If not, an Option with result state empty is returned.
    • setProcurementProjectPlant

      public void setProcurementProjectPlant(@Nonnull List<ProcurementProjectPlant> value)
      Overwrites the list of associated ProcurementProjectPlant entities for the loaded navigation property _ProcurementProjectPlant.

      If the navigation property _ProcurementProjectPlant of a queried ProcurementProject 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 ProcurementProjectPlant entities.
    • addProcurementProjectPlant

      public void addProcurementProjectPlant(ProcurementProjectPlant... entity)
      Adds elements to the list of associated ProcurementProjectPlant entities. This corresponds to the OData navigation property _ProcurementProjectPlant.

      If the navigation property _ProcurementProjectPlant of a queried ProcurementProject 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 ProcurementProjectPlant entities.
    • deactivateProcurementProject

      @Nonnull public static BoundAction.SingleToSingle<ProcurementProject,ProcurementProject> deactivateProcurementProject()
      Action that can be applied to any entity object of this class.

      Returns:
      Action object prepared with the given parameters to be applied to any entity object of this class.

      To execute it use the service.forEntity(entity).applyAction(thisAction) API.
    • activateProcurementProject

      @Nonnull public static BoundAction.SingleToSingle<ProcurementProject,ProcurementProject> activateProcurementProject()
      Action that can be applied to any entity object of this class.

      Returns:
      Action object prepared with the given parameters to be applied to any entity object of this class.

      To execute it use the service.forEntity(entity).applyAction(thisAction) API.
    • builder

      @Nonnull public static ProcurementProject.ProcurementProjectBuilder builder()
    • getProcurementProjectUUID

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

      Original property name from the Odata EDM: ProcurementProjectUUID

      Returns:
      Procurement Project UUID
    • getProcurementProject

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

      Original property name from the Odata EDM: ProcurementProject

      Returns:
      Procurement Project
    • getProcurementProjectName

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

      Original property name from the Odata EDM: ProcurementProjectName

      Returns:
      Procurement Project Name
    • getExternalProjectReference

      @Nullable public String getExternalProjectReference()
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: ExternalProjectReference

      Returns:
      External Project Reference
    • getCompanyCode

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

      Original property name from the Odata EDM: CompanyCode

      Returns:
      Company Code
    • getLastChangedByUser

      @Nullable public String getLastChangedByUser()
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: LastChangedByUser

      Returns:
      Last Changed By User
    • getCreatedByUser

      @Nullable public String getCreatedByUser()
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: CreatedByUser

      Returns:
      Created By User
    • getLastChangeDateTime

      @Nullable public OffsetDateTime getLastChangeDateTime()
      Constraints: Nullable, Precision: 7

      Original property name from the Odata EDM: LastChangeDateTime

      Returns:
      Last Changed On
    • getCreationDateTime

      @Nullable public OffsetDateTime getCreationDateTime()
      Constraints: Nullable, Precision: 7

      Original property name from the Odata EDM: CreationDateTime

      Returns:
      Creation Date
    • getProcurementProjectActvtnSts

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

      Original property name from the Odata EDM: ProcurementProjectActvtnSts

      Returns:
      Procurement Project Activation Status
    • getSourcingOrigin

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

      Original property name from the Odata EDM: SourcingOrigin

      Returns:
      Sourcing Origin
    • getSourcingScenario

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

      Original property name from the Odata EDM: SourcingScenario

      Returns:
      Sourcing Integration Scenario
    • getProcmtPlanningSubprojectUUID

      @Nullable public UUID getProcmtPlanningSubprojectUUID()
      Constraints: Nullable

      Original property name from the Odata EDM: ProcmtPlanningSubprojectUUID

      Returns:
      Procurement Planning Subproject UUID
    • getIsEndOfPurposeBlocked

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

      Original property name from the Odata EDM: IsEndOfPurposeBlocked

      Returns:
      Business Purpose Completed
    • get_Messages

      @Nullable public Collection<SAP__Message> get_Messages()
      Constraints: Not nullable

      Original property name from the Odata EDM: SAP__Messages

      Returns:
      The _Messages contained in this VdmEntity.
    • toString

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

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

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

      public int hashCode()
      Overrides:
      hashCode in class VdmEntity<ProcurementProject>
    • getOdataType

      public String getOdataType()
      Specified by:
      getOdataType in class VdmObject<ProcurementProject>