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

public class ProjectRole extends VdmEntity<ProjectRole>
Project Roles

Original entity name from the Odata EDM: ProjectRole

  • Field Details

    • ALL_FIELDS

      public static final ProjectRoleSelectable ALL_FIELDS
      Selector for all available fields of ProjectRole.
    • PROJECT_ID

      public static final ProjectRoleField<String> PROJECT_ID
      Use with available fluent helpers to apply the ProjectID field to query operations.
    • PROJECT_ROLE_ID

      public static final ProjectRoleField<String> PROJECT_ROLE_ID
      Use with available fluent helpers to apply the ProjectRoleID field to query operations.
    • PROJECT_ROLE_NAME

      public static final ProjectRoleField<String> PROJECT_ROLE_NAME
      Use with available fluent helpers to apply the ProjectRoleName field to query operations.
    • BUSINESS_PARTNER_ID

      public static final ProjectRoleField<String> BUSINESS_PARTNER_ID
      Use with available fluent helpers to apply the BusinessPartnerID field to query operations.
    • BUSINESS_PARTNER_NAME

      public static final ProjectRoleField<String> BUSINESS_PARTNER_NAME
      Use with available fluent helpers to apply the BusinessPartnerName field to query operations.
  • Constructor Details

    • ProjectRole

      public ProjectRole()
    • ProjectRole

      public ProjectRole(@Nullable String projectID, @Nullable String projectRoleID, @Nullable String projectRoleName, @Nullable String businessPartnerID, @Nullable String businessPartnerName)
  • Method Details

    • getType

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

      public void setProjectID(@Nullable String projectID)
      (Key Field) Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: ProjectID

      Parameters:
      projectID - Project ID
    • setProjectRoleID

      public void setProjectRoleID(@Nullable String projectRoleID)
      (Key Field) Constraints: Not nullable, Maximum length: 15

      Original property name from the Odata EDM: ProjectRoleID

      Parameters:
      projectRoleID - Project Role ID
    • setProjectRoleName

      public void setProjectRoleName(@Nullable String projectRoleName)
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: ProjectRoleName

      Parameters:
      projectRoleName - Project Role Name
    • setBusinessPartnerID

      public void setBusinessPartnerID(@Nullable String businessPartnerID)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: BusinessPartnerID

      Parameters:
      businessPartnerID - Business Partner ID
    • setBusinessPartnerName

      public void setBusinessPartnerName(@Nullable String businessPartnerName)
      Constraints: Not nullable, Maximum length: 80

      Original property name from the Odata EDM: BusinessPartnerName

      Parameters:
      businessPartnerName - Business Partner Name
    • getEntityCollection

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

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

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

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

      @Nonnull public static <T> ProjectRoleField<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> ProjectRoleField<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<ProjectRole>
    • setServicePathForFetch

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

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

      protected String getDefaultServicePath()
      Overrides:
      getDefaultServicePath in class VdmEntity<ProjectRole>
    • builder

      @Nonnull public static ProjectRole.ProjectRoleBuilder builder()
    • getProjectID

      @Nullable public String getProjectID()
      (Key Field) Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: ProjectID

      Returns:
      Project ID
    • getProjectRoleID

      @Nullable public String getProjectRoleID()
      (Key Field) Constraints: Not nullable, Maximum length: 15

      Original property name from the Odata EDM: ProjectRoleID

      Returns:
      Project Role ID
    • getProjectRoleName

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

      Original property name from the Odata EDM: ProjectRoleName

      Returns:
      Project Role Name
    • getBusinessPartnerID

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

      Original property name from the Odata EDM: BusinessPartnerID

      Returns:
      Business Partner ID
    • getBusinessPartnerName

      @Nullable public String getBusinessPartnerName()
      Constraints: Not nullable, Maximum length: 80

      Original property name from the Odata EDM: BusinessPartnerName

      Returns:
      Business Partner Name
    • toString

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

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

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

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