Class RateSource

java.lang.Object
com.primavera.integration.client.bo.enm.EnumType
com.primavera.integration.client.bo.enm.RateSource

public class RateSource extends EnumType
Rate source enumerations are used to indicate which price/unit will be used to calculate costs for the assignment, such as 'Resource', 'Role', and 'Override'. When a resource and only a resource is assigned to an activity, the rate source will automatically equal 'Resource'. When a role and only a role is assigned to an activity, the rate source will automatically equal 'Role'. When both a resource and role are assigned to the activity, the rate source can be either 'Resource' or 'Role' determined by the RateSourcePreference. In any case, the 'Override' value allows you to specify any other price/unit. See also RoleRate, RateType and RateSourcePreference for more details on how rates can be used in cost calculation.

To use an enumeration in a where clause, make sure you use the internal database value. This can be retrieved from a particular enum instance by calling getValue().

  • Field Details

  • Method Details

    • toString

      public String toString()
      Returns a string representation of the object, which is the same as the description returned by the getDescription() method
      Overrides:
      toString in class Object
      Returns:
      String a string representation of the object
    • getValue

      public String getValue()
      Gets the internal value of this RateSource instance
      Specified by:
      getValue in class EnumType
      Returns:
      String the internal value
    • getDescription

      public String getDescription()
      Gets the description of this RateSource instance
      Specified by:
      getDescription in class EnumType
      Returns:
      String the description
    • getRateSource

      public static RateSource getRateSource(String sRateSource)
      Gets an instance of RateSource based on the String value specified.
      Parameters:
      sRateSource - the internal value or description
      Returns:
      RateSource the unique RateSource instance
    • getRateSource

      public static RateSource getRateSource(int iRateSource)
      Gets an instance of RateSource based on the integer value specified.
      Parameters:
      iRateSource - an integer representing a particular value of this class. This value is also used when exporting to XML.
      Returns:
      RateSource the unique RateSource instance
    • getEnumValues

      public static String[] getEnumValues()
      Gets an array of all internal values for this enumeration
      Returns:
      String[] an array of all internal values
    • getEnumDescriptions

      public static String[] getEnumDescriptions()
      Gets an array of all descriptions for this enumeration
      Returns:
      String[] an array of all descriptions