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

public class ProjectDemandExpense extends VdmEntity<ProjectDemandExpense>
Demand for Expense

Original entity name from the Odata EDM: ProjectDemandExpense_Type

  • Field Details

    • ALL_FIELDS

      public static final ProjectDemandExpenseSelectable ALL_FIELDS
      Selector for all available fields of ProjectDemandExpense.
    • PROJECT_DEMAND_EXPENSE_UUID

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

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

      public static final ProjectDemandExpenseField<String> PROJECT_DEMAND_EXPENSE_TYPE
      Use with available fluent helpers to apply the ProjectDemandExpenseType field to query operations.
    • PROJECT_UUID

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

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

      public static final ProjectDemandExpenseField<String> PROJ_DMND_BILLING_CONTROL_CATEGORY
      Use with available fluent helpers to apply the ProjDmndBillingControlCategory field to query operations.
    • CREATED_BY_USER

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

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

      public static final ProjectDemandExpenseField<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 ProjectDemandExpenseField<ZonedDateTime> LAST_CHANGE_DATE_TIME
      Use with available fluent helpers to apply the LastChangeDateTime field to query operations.
    • TO_ROOT

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

      public static final ProjectDemandExpenseLink<ProjDmndExpenseDistr> TO_PROJ_DMND_EXPENSE_DISTR
      Use with available fluent helpers to apply the to_ProjDmndExpenseDistr navigation property to query operations.
  • Constructor Details

    • ProjectDemandExpense

      public ProjectDemandExpense()
    • ProjectDemandExpense

      public ProjectDemandExpense(@Nullable UUID projectDemandExpenseUUID, @Nullable UUID projectDemandUUID, @Nullable String projectDemandExpenseType, @Nullable UUID projectUUID, @Nullable UUID referencedObjectUUID, @Nullable String projDmndBillingControlCategory, @Nullable String createdByUser, @Nullable ZonedDateTime creationDateTime, @Nullable String lastChangedByUser, @Nullable ZonedDateTime lastChangeDateTime, @Nullable ProjectDemand toRoot, List<ProjDmndExpenseDistr> toProjDmndExpenseDistr)
  • Method Details

    • getType

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

      public void setProjectDemandExpenseUUID(@Nullable UUID projectDemandExpenseUUID)
      (Key Field) Constraints: Not nullable

      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
    • setProjectDemandExpenseType

      public void setProjectDemandExpenseType(@Nullable String projectDemandExpenseType)
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: ProjectDemandExpenseType

      Parameters:
      projectDemandExpenseType - Expense Type
    • 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
    • setProjDmndBillingControlCategory

      public void setProjDmndBillingControlCategory(@Nullable String projDmndBillingControlCategory)
      Constraints: Not nullable, Maximum length: 8

      Original property name from the Odata EDM: ProjDmndBillingControlCategory

      Parameters:
      projDmndBillingControlCategory - Billing Control Category
    • 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<ProjectDemandExpense>
    • getKey

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

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

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

      @Nonnull public static <T> ProjectDemandExpenseField<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> ProjectDemandExpenseField<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<ProjectDemandExpense>
    • setServicePathForFetch

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

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

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

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

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

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

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

      @Nonnull public List<ProjDmndExpenseDistr> getProjDmndExpenseDistrOrFetch()
      Retrieval of associated ProjDmndExpenseDistr entities (one to many). This corresponds to the OData navigation property to_ProjDmndExpenseDistr.

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

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

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

      public void setProjDmndExpenseDistr(@Nonnull List<ProjDmndExpenseDistr> value)
      Overwrites the list of associated ProjDmndExpenseDistr entities for the loaded navigation property to_ProjDmndExpenseDistr.

      If the navigation property to_ProjDmndExpenseDistr of a queried ProjectDemandExpense 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 ProjDmndExpenseDistr entities.
    • addProjDmndExpenseDistr

      public void addProjDmndExpenseDistr(ProjDmndExpenseDistr... entity)
      Adds elements to the list of associated ProjDmndExpenseDistr entities. This corresponds to the OData navigation property to_ProjDmndExpenseDistr.

      If the navigation property to_ProjDmndExpenseDistr of a queried ProjectDemandExpense 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 ProjDmndExpenseDistr entities.
    • builder

      @Nonnull public static ProjectDemandExpense.ProjectDemandExpenseBuilder builder()
    • getProjectDemandExpenseUUID

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

      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
    • getProjectDemandExpenseType

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

      Original property name from the Odata EDM: ProjectDemandExpenseType

      Returns:
      Expense Type
    • 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
    • getProjDmndBillingControlCategory

      @Nullable public String getProjDmndBillingControlCategory()
      Constraints: Not nullable, Maximum length: 8

      Original property name from the Odata EDM: ProjDmndBillingControlCategory

      Returns:
      Billing Control Category
    • 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<ProjectDemandExpense>
    • equals

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

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

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