Class RateSource
java.lang.Object
com.primavera.integration.client.bo.enm.EnumType
com.primavera.integration.client.bo.enm.RateSource
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final RateSourcestatic final RateSourcestatic final RateSourcestatic final RateSource -
Method Summary
Modifier and TypeMethodDescriptionGets the description of this RateSource instancestatic String[]Gets an array of all descriptions for this enumerationstatic String[]Gets an array of all internal values for this enumerationstatic RateSourcegetRateSource(int iRateSource) Gets an instance of RateSource based on the integer value specified.static RateSourcegetRateSource(String sRateSource) Gets an instance of RateSource based on the String value specified.getValue()Gets the internal value of this RateSource instancetoString()Returns a string representation of the object, which is the same as the description returned by the getDescription() method
-
Field Details
-
NULL
-
RESOURCE
-
ROLE
-
OVERRIDE
-
-
Method Details
-
toString
Returns a string representation of the object, which is the same as the description returned by the getDescription() method -
getValue
Gets the internal value of this RateSource instance -
getDescription
Gets the description of this RateSource instance- Specified by:
getDescriptionin classEnumType- Returns:
- String the description
-
getRateSource
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
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
Gets an array of all internal values for this enumeration- Returns:
- String[] an array of all internal values
-
getEnumDescriptions
Gets an array of all descriptions for this enumeration- Returns:
- String[] an array of all descriptions
-