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

public class ProjDmndExpenseDistr extends VdmEntity<ProjDmndExpenseDistr>
Demand Distribution for Expense

Original entity name from the Odata EDM: ProjDmndExpenseDistr_Type

  • Field Details

    • ALL_FIELDS

      public static final ProjDmndExpenseDistrSelectable ALL_FIELDS
      Selector for all available fields of ProjDmndExpenseDistr.
    • PROJ_DMND_EXPN_DISTRIBUTION_UUID

      public static final ProjDmndExpenseDistrField<UUID> PROJ_DMND_EXPN_DISTRIBUTION_UUID
      Use with available fluent helpers to apply the ProjDmndExpnDistributionUUID field to query operations.
    • PROJECT_DEMAND_EXPENSE_UUID

      public static final ProjDmndExpenseDistrField<UUID> PROJECT_DEMAND_EXPENSE_UUID
      Use with available fluent helpers to apply the ProjectDemandExpenseUUID field to query operations.
    • PROJECT_DEMAND_UUID

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

      public static final ProjDmndExpenseDistrField<UUID> PROJ_DMND_REFERENCED_PLAN_DATA_UUID
      Use with available fluent helpers to apply the ProjDmndReferencedPlanDataUUID field to query operations.
    • PROJ_DMND_EXPN_DISTR_PERIOD_VAL

      public static final ProjDmndExpenseDistrField<String> PROJ_DMND_EXPN_DISTR_PERIOD_VAL
      Use with available fluent helpers to apply the ProjDmndExpnDistrPeriodVal field to query operations.
    • PROJ_DMND_EXPN_DISTR_YEAR_VAL

      public static final ProjDmndExpenseDistrField<String> PROJ_DMND_EXPN_DISTR_YEAR_VAL
      Use with available fluent helpers to apply the ProjDmndExpnDistrYearVal field to query operations.
    • PROJ_DMND_EXPN_DISTR_AMOUNT

      public static final ProjDmndExpenseDistrField<BigDecimal> PROJ_DMND_EXPN_DISTR_AMOUNT
      Use with available fluent helpers to apply the ProjDmndExpnDistrAmount field to query operations.
    • PROJ_DMND_EXPN_DISTR_REVENUE_AMT

      public static final ProjDmndExpenseDistrField<BigDecimal> PROJ_DMND_EXPN_DISTR_REVENUE_AMT
      Use with available fluent helpers to apply the ProjDmndExpnDistrRevenueAmt field to query operations.
    • PROJECT_UUID

      public static final ProjDmndExpenseDistrField<UUID> PROJECT_UUID
      Use with available fluent helpers to apply the ProjectUUID field to query operations.
    • REFERENCED_OBJECT_UUID

      public static final ProjDmndExpenseDistrField<UUID> REFERENCED_OBJECT_UUID
      Use with available fluent helpers to apply the ReferencedObjectUUID field to query operations.
    • PROJ_DMND_EXPN_DISTR_AMOUNT_CRCY

      public static final ProjDmndExpenseDistrField<String> PROJ_DMND_EXPN_DISTR_AMOUNT_CRCY
      Use with available fluent helpers to apply the ProjDmndExpnDistrAmountCrcy field to query operations.
    • PROJ_DMND_EXPN_DISTR_REVN_AMT_CRCY

      public static final ProjDmndExpenseDistrField<String> PROJ_DMND_EXPN_DISTR_REVN_AMT_CRCY
      Use with available fluent helpers to apply the ProjDmndExpnDistrRevnAmtCrcy field to query operations.
    • CREATED_BY_USER

      public static final ProjDmndExpenseDistrField<String> CREATED_BY_USER
      Use with available fluent helpers to apply the CreatedByUser field to query operations.
    • CREATION_DATE_TIME

      public static final ProjDmndExpenseDistrField<ZonedDateTime> CREATION_DATE_TIME
      Use with available fluent helpers to apply the CreationDateTime field to query operations.
    • LAST_CHANGED_BY_USER

      public static final ProjDmndExpenseDistrField<String> LAST_CHANGED_BY_USER
      Use with available fluent helpers to apply the LastChangedByUser field to query operations.
    • LAST_CHANGE_DATE_TIME

      public static final ProjDmndExpenseDistrField<ZonedDateTime> LAST_CHANGE_DATE_TIME
      Use with available fluent helpers to apply the LastChangeDateTime field to query operations.
    • TO_ROOT

      public static final ProjDmndExpenseDistrOneToOneLink<ProjectDemand> TO_ROOT
      Use with available fluent helpers to apply the to_Root navigation property to query operations.
    • TO_PROJECT_DEMAND_EXPENSE

      public static final ProjDmndExpenseDistrOneToOneLink<ProjectDemandExpense> TO_PROJECT_DEMAND_EXPENSE
      Use with available fluent helpers to apply the to_ProjectDemandExpense navigation property to query operations.
  • Constructor Details

    • ProjDmndExpenseDistr

      public ProjDmndExpenseDistr()
    • ProjDmndExpenseDistr

      public ProjDmndExpenseDistr(@Nullable UUID projDmndExpnDistributionUUID, @Nullable UUID projectDemandExpenseUUID, @Nullable UUID projectDemandUUID, @Nullable UUID projDmndReferencedPlanDataUUID, @Nullable String projDmndExpnDistrPeriodVal, @Nullable String projDmndExpnDistrYearVal, @Nullable BigDecimal projDmndExpnDistrAmount, @Nullable BigDecimal projDmndExpnDistrRevenueAmt, @Nullable UUID projectUUID, @Nullable UUID referencedObjectUUID, @Nullable String projDmndExpnDistrAmountCrcy, @Nullable String projDmndExpnDistrRevnAmtCrcy, @Nullable String createdByUser, @Nullable ZonedDateTime creationDateTime, @Nullable String lastChangedByUser, @Nullable ZonedDateTime lastChangeDateTime, @Nullable ProjectDemand toRoot, @Nullable ProjectDemandExpense toProjectDemandExpense)
  • Method Details

    • getType

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

      public void setProjDmndExpnDistributionUUID(@Nullable UUID projDmndExpnDistributionUUID)
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: ProjDmndExpnDistributionUUID

      Parameters:
      projDmndExpnDistributionUUID - Global ID for the Distribution of a Demand for Expense
    • setProjectDemandExpenseUUID

      public void setProjectDemandExpenseUUID(@Nullable UUID projectDemandExpenseUUID)
      Constraints: none

      Original property name from the Odata EDM: ProjectDemandExpenseUUID

      Parameters:
      projectDemandExpenseUUID - Global Identification of a Demand for Expense
    • 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
    • setProjDmndReferencedPlanDataUUID

      public void setProjDmndReferencedPlanDataUUID(@Nullable UUID projDmndReferencedPlanDataUUID)
      Constraints: none

      Original property name from the Odata EDM: ProjDmndReferencedPlanDataUUID

      Parameters:
      projDmndReferencedPlanDataUUID - Corresponding Line Item in Project Plan
    • setProjDmndExpnDistrPeriodVal

      public void setProjDmndExpnDistrPeriodVal(@Nullable String projDmndExpnDistrPeriodVal)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: ProjDmndExpnDistrPeriodVal

      Parameters:
      projDmndExpnDistrPeriodVal - Period to Which a Quantity is Distibuted
    • setProjDmndExpnDistrYearVal

      public void setProjDmndExpnDistrYearVal(@Nullable String projDmndExpnDistrYearVal)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: ProjDmndExpnDistrYearVal

      Parameters:
      projDmndExpnDistrYearVal - Year of a Distribution Period
    • setProjDmndExpnDistrAmount

      public void setProjDmndExpnDistrAmount(@Nullable BigDecimal projDmndExpnDistrAmount)
      Constraints: Not nullable, Precision: 17, Scale: 3

      Original property name from the Odata EDM: ProjDmndExpnDistrAmount

      Parameters:
      projDmndExpnDistrAmount - Plannend Cost
    • setProjDmndExpnDistrRevenueAmt

      public void setProjDmndExpnDistrRevenueAmt(@Nullable BigDecimal projDmndExpnDistrRevenueAmt)
      Constraints: Not nullable, Precision: 17, Scale: 3

      Original property name from the Odata EDM: ProjDmndExpnDistrRevenueAmt

      Parameters:
      projDmndExpnDistrRevenueAmt - Planned Revenue
    • setProjectUUID

      public void setProjectUUID(@Nullable UUID projectUUID)
      Constraints: none

      Original property name from the Odata EDM: ProjectUUID

      Parameters:
      projectUUID - Global ID of the Project to Which a Demand is Related
    • setReferencedObjectUUID

      public void setReferencedObjectUUID(@Nullable UUID referencedObjectUUID)
      Constraints: none

      Original property name from the Odata EDM: ReferencedObjectUUID

      Parameters:
      referencedObjectUUID - UUID of the Object to Which a Demand Is Related
    • setProjDmndExpnDistrAmountCrcy

      public void setProjDmndExpnDistrAmountCrcy(@Nullable String projDmndExpnDistrAmountCrcy)
      Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: ProjDmndExpnDistrAmountCrcy

      Parameters:
      projDmndExpnDistrAmountCrcy - Currency
    • setProjDmndExpnDistrRevnAmtCrcy

      public void setProjDmndExpnDistrRevnAmtCrcy(@Nullable String projDmndExpnDistrRevnAmtCrcy)
      Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: ProjDmndExpnDistrRevnAmtCrcy

      Parameters:
      projDmndExpnDistrRevnAmtCrcy - Currency
    • 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
    • setCreationDateTime

      public void setCreationDateTime(@Nullable ZonedDateTime creationDateTime)
      Constraints: Not nullable, Precision: 7

      Original property name from the Odata EDM: CreationDateTime

      Parameters:
      creationDateTime - Creation Date Time
    • 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
    • setLastChangeDateTime

      public void setLastChangeDateTime(@Nullable ZonedDateTime lastChangeDateTime)
      Constraints: Not nullable, Precision: 7

      Original property name from the Odata EDM: LastChangeDateTime

      Parameters:
      lastChangeDateTime - Last Change Date Time
    • getEntityCollection

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

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

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

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

      @Nonnull public static <T> ProjDmndExpenseDistrField<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> ProjDmndExpenseDistrField<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<ProjDmndExpenseDistr>
    • setServicePathForFetch

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

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

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

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

      @Nullable public ProjectDemandExpense fetchProjectDemandExpense()
      Fetches the ProjectDemandExpense entity (one to one) associated with this entity. This corresponds to the OData navigation property to_ProjectDemandExpense.

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

      Returns:
      The single associated ProjectDemandExpense 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.
    • getProjectDemandExpenseOrFetch

      @Nullable public ProjectDemandExpense getProjectDemandExpenseOrFetch()
      Retrieval of associated ProjectDemandExpense entity (one to one). This corresponds to the OData navigation property to_ProjectDemandExpense.

      If the navigation property to_ProjectDemandExpense of a queried ProjDmndExpenseDistr 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 ProjectDemandExpense 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.
    • getProjectDemandExpenseIfPresent

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

      If the navigation property for an entity ProjDmndExpenseDistr 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_ProjectDemandExpense is already loaded, the result will contain the ProjectDemandExpense entity. If not, an Option with result state empty is returned.
    • setProjectDemandExpense

      public void setProjectDemandExpense(ProjectDemandExpense value)
      Overwrites the associated ProjectDemandExpense entity for the loaded navigation property to_ProjectDemandExpense.
      Parameters:
      value - New ProjectDemandExpense entity.
    • builder

      @Nonnull public static ProjDmndExpenseDistr.ProjDmndExpenseDistrBuilder builder()
    • getProjDmndExpnDistributionUUID

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

      Original property name from the Odata EDM: ProjDmndExpnDistributionUUID

      Returns:
      Global ID for the Distribution of a Demand for Expense
    • getProjectDemandExpenseUUID

      @Nullable public UUID getProjectDemandExpenseUUID()
      Constraints: none

      Original property name from the Odata EDM: ProjectDemandExpenseUUID

      Returns:
      Global Identification of a Demand for Expense
    • getProjectDemandUUID

      @Nullable public UUID getProjectDemandUUID()
      Constraints: none

      Original property name from the Odata EDM: ProjectDemandUUID

      Returns:
      Global Identification of a Project Demand
    • getProjDmndReferencedPlanDataUUID

      @Nullable public UUID getProjDmndReferencedPlanDataUUID()
      Constraints: none

      Original property name from the Odata EDM: ProjDmndReferencedPlanDataUUID

      Returns:
      Corresponding Line Item in Project Plan
    • getProjDmndExpnDistrPeriodVal

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

      Original property name from the Odata EDM: ProjDmndExpnDistrPeriodVal

      Returns:
      Period to Which a Quantity is Distibuted
    • getProjDmndExpnDistrYearVal

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

      Original property name from the Odata EDM: ProjDmndExpnDistrYearVal

      Returns:
      Year of a Distribution Period
    • getProjDmndExpnDistrAmount

      @Nullable public BigDecimal getProjDmndExpnDistrAmount()
      Constraints: Not nullable, Precision: 17, Scale: 3

      Original property name from the Odata EDM: ProjDmndExpnDistrAmount

      Returns:
      Plannend Cost
    • getProjDmndExpnDistrRevenueAmt

      @Nullable public BigDecimal getProjDmndExpnDistrRevenueAmt()
      Constraints: Not nullable, Precision: 17, Scale: 3

      Original property name from the Odata EDM: ProjDmndExpnDistrRevenueAmt

      Returns:
      Planned Revenue
    • getProjectUUID

      @Nullable public UUID getProjectUUID()
      Constraints: none

      Original property name from the Odata EDM: ProjectUUID

      Returns:
      Global ID of the Project to Which a Demand is Related
    • getReferencedObjectUUID

      @Nullable public UUID getReferencedObjectUUID()
      Constraints: none

      Original property name from the Odata EDM: ReferencedObjectUUID

      Returns:
      UUID of the Object to Which a Demand Is Related
    • getProjDmndExpnDistrAmountCrcy

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

      Original property name from the Odata EDM: ProjDmndExpnDistrAmountCrcy

      Returns:
      Currency
    • getProjDmndExpnDistrRevnAmtCrcy

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

      Original property name from the Odata EDM: ProjDmndExpnDistrRevnAmtCrcy

      Returns:
      Currency
    • getCreatedByUser

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

      Original property name from the Odata EDM: CreatedByUser

      Returns:
      Created By User
    • getCreationDateTime

      @Nullable public ZonedDateTime getCreationDateTime()
      Constraints: Not nullable, Precision: 7

      Original property name from the Odata EDM: CreationDateTime

      Returns:
      Creation Date Time
    • getLastChangedByUser

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

      Original property name from the Odata EDM: LastChangedByUser

      Returns:
      Last Changed By User
    • getLastChangeDateTime

      @Nullable public ZonedDateTime getLastChangeDateTime()
      Constraints: Not nullable, Precision: 7

      Original property name from the Odata EDM: LastChangeDateTime

      Returns:
      Last Change Date Time
    • toString

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

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

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

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