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

public class EntProjectPublicSector extends VdmEntity<EntProjectPublicSector>
Project Public Sector

Original entity name from the Odata EDM: A_EntProjectPublicSectorType

  • Field Details

    • ALL_FIELDS

      public static final EntProjectPublicSectorSelectable ALL_FIELDS
      Selector for all available fields of EntProjectPublicSector.
    • UPDATE_MC

      public static final EntProjectPublicSectorField<Boolean> UPDATE_MC
      Use with available fluent helpers to apply the Update_mc field to query operations.
    • PROJECT_UUID

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

      public static final EntProjectPublicSectorField<String> FUND
      Use with available fluent helpers to apply the Fund field to query operations.
    • FUND_IS_FIX_ASSIGNED

      public static final EntProjectPublicSectorField<Boolean> FUND_IS_FIX_ASSIGNED
      Use with available fluent helpers to apply the FundIsFixAssigned field to query operations.
    • FUNCTIONAL_AREA_IS_FIX_ASSIGNED

      public static final EntProjectPublicSectorField<Boolean> FUNCTIONAL_AREA_IS_FIX_ASSIGNED
      Use with available fluent helpers to apply the FunctionalAreaIsFixAssigned field to query operations.
    • GRANT_ID

      public static final EntProjectPublicSectorField<String> GRANT_ID
      Use with available fluent helpers to apply the GrantID field to query operations.
    • GRANT_IS_FIX_ASSIGNED

      public static final EntProjectPublicSectorField<Boolean> GRANT_IS_FIX_ASSIGNED
      Use with available fluent helpers to apply the GrantIsFixAssigned field to query operations.
    • TO_ENTERPRISE_PROJECT

      public static final EntProjectPublicSectorOneToOneLink<EnterpriseProject> TO_ENTERPRISE_PROJECT
      Use with available fluent helpers to apply the to_EnterpriseProject navigation property to query operations.
  • Constructor Details

    • EntProjectPublicSector

      public EntProjectPublicSector()
    • EntProjectPublicSector

      public EntProjectPublicSector(@Nullable Boolean update_mc, @Nullable UUID projectUUID, @Nullable String fund, @Nullable Boolean fundIsFixAssigned, @Nullable Boolean functionalAreaIsFixAssigned, @Nullable String grantID, @Nullable Boolean grantIsFixAssigned, @Nullable String sponsoredProgram, @Nullable EnterpriseProject toEnterpriseProject)
  • Method Details

    • getType

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

      public void setUpdate_mc(@Nullable Boolean update_mc)
      Constraints: none

      Original property name from the Odata EDM: Update_mc

      Parameters:
      update_mc - Dyn. Method Control
    • setProjectUUID

      public void setProjectUUID(@Nullable UUID projectUUID)
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: ProjectUUID

      Parameters:
      projectUUID - Entity Guid
    • setFund

      public void setFund(@Nullable String fund)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: Fund

      Parameters:
      fund - Fund
    • setFundIsFixAssigned

      public void setFundIsFixAssigned(@Nullable Boolean fundIsFixAssigned)
      Constraints: none

      Original property name from the Odata EDM: FundIsFixAssigned

      Parameters:
      fundIsFixAssigned - Indicator for Fund with Fixed Assignment
    • setFunctionalAreaIsFixAssigned

      public void setFunctionalAreaIsFixAssigned(@Nullable Boolean functionalAreaIsFixAssigned)
      Constraints: none

      Original property name from the Odata EDM: FunctionalAreaIsFixAssigned

      Parameters:
      functionalAreaIsFixAssigned - Indicator for Functional Area with Fixed Assignment
    • setGrantID

      public void setGrantID(@Nullable String grantID)
      Constraints: Not nullable, Maximum length: 20

      Original property name from the Odata EDM: GrantID

      Parameters:
      grantID - Grant
    • setGrantIsFixAssigned

      public void setGrantIsFixAssigned(@Nullable Boolean grantIsFixAssigned)
      Constraints: none

      Original property name from the Odata EDM: GrantIsFixAssigned

      Parameters:
      grantIsFixAssigned - Indicator for Grant with Fixed Assignment
    • setSponsoredProgram

      public void setSponsoredProgram(@Nullable String sponsoredProgram)
      Constraints: Not nullable, Maximum length: 20

      Original property name from the Odata EDM: SponsoredProgram

      Parameters:
      sponsoredProgram - Sponsored Program
    • getEntityCollection

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

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

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

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

      @Nonnull public static <T> EntProjectPublicSectorField<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> EntProjectPublicSectorField<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<EntProjectPublicSector>
    • setServicePathForFetch

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

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

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

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

      @Nullable public EnterpriseProject fetchEnterpriseProject()
      Fetches the EnterpriseProject entity (one to one) associated with this entity. This corresponds to the OData navigation property to_EnterpriseProject.

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

      Returns:
      The single associated EnterpriseProject 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.
    • getEnterpriseProjectOrFetch

      @Nullable public EnterpriseProject getEnterpriseProjectOrFetch()
      Retrieval of associated EnterpriseProject entity (one to one). This corresponds to the OData navigation property to_EnterpriseProject.

      If the navigation property to_EnterpriseProject of a queried EntProjectPublicSector 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 EnterpriseProject 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.
    • getEnterpriseProjectIfPresent

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

      If the navigation property for an entity EntProjectPublicSector 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_EnterpriseProject is already loaded, the result will contain the EnterpriseProject entity. If not, an Option with result state empty is returned.
    • setEnterpriseProject

      public void setEnterpriseProject(EnterpriseProject value)
      Overwrites the associated EnterpriseProject entity for the loaded navigation property to_EnterpriseProject.
      Parameters:
      value - New EnterpriseProject entity.
    • builder

      @Nonnull public static EntProjectPublicSector.EntProjectPublicSectorBuilder builder()
    • getUpdate_mc

      @Nullable public Boolean getUpdate_mc()
      Constraints: none

      Original property name from the Odata EDM: Update_mc

      Returns:
      Dyn. Method Control
    • getProjectUUID

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

      Original property name from the Odata EDM: ProjectUUID

      Returns:
      Entity Guid
    • getFund

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

      Original property name from the Odata EDM: Fund

      Returns:
      Fund
    • getFundIsFixAssigned

      @Nullable public Boolean getFundIsFixAssigned()
      Constraints: none

      Original property name from the Odata EDM: FundIsFixAssigned

      Returns:
      Indicator for Fund with Fixed Assignment
    • getFunctionalAreaIsFixAssigned

      @Nullable public Boolean getFunctionalAreaIsFixAssigned()
      Constraints: none

      Original property name from the Odata EDM: FunctionalAreaIsFixAssigned

      Returns:
      Indicator for Functional Area with Fixed Assignment
    • getGrantID

      @Nullable public String getGrantID()
      Constraints: Not nullable, Maximum length: 20

      Original property name from the Odata EDM: GrantID

      Returns:
      Grant
    • getGrantIsFixAssigned

      @Nullable public Boolean getGrantIsFixAssigned()
      Constraints: none

      Original property name from the Odata EDM: GrantIsFixAssigned

      Returns:
      Indicator for Grant with Fixed Assignment
    • getSponsoredProgram

      @Nullable public String getSponsoredProgram()
      Constraints: Not nullable, Maximum length: 20

      Original property name from the Odata EDM: SponsoredProgram

      Returns:
      Sponsored Program
    • toString

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

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

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

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