Class DurationType
java.lang.Object
com.primavera.integration.client.bo.enm.EnumType
com.primavera.integration.client.bo.enm.DurationType
Duration type enumerations are used with activities for specifying the duration type, with
baseline projects and projects for specifying the default activity duration type, and with users
for specifying the new project duration type. Valid values are 'Fixed Units/Time', 'Fixed Duration
and Units/Time', 'Fixed Units', or 'Fixed Duration and Units'. For 'Fixed Units/Time' activities,
the resource units per time are constant when the activity duration or units are changed. This
type is used when an activity has fixed resources with fixed productivity output per time period.
For 'Fixed Duration and Units/Time' activities, the activity duration is constant as the units or
resource units per time are changed. This type is used when the activity is to be completed within
a fixed time period regardless of the resources assigned. For 'Fixed Units' activities, the
activity units are constant when the duration or resource units per time are changed. This type is
used when the total amount of work is fixed, and increasing the resources can decrease the
activity duration. For 'Fixed Duration and Units' activities, the activity duration is constant
and the units per time are changed. This type is used when the activity is to be completed within
a fixed timeperiod and the total amount of work is fixed.
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 DurationTypestatic final DurationTypestatic final DurationTypestatic final DurationTypestatic final DurationType -
Method Summary
Modifier and TypeMethodDescriptionGets the description of this DurationType instancestatic DurationTypegetDurationType(int iDurationType) Gets an instance of DurationType based on the integer value specified.static DurationTypegetDurationType(String sDurationType) Gets an instance of DurationType based on the String value specified.static String[]Gets an array of all descriptions for this enumerationstatic String[]Gets an array of all internal values for this enumerationgetValue()Gets the internal value of this DurationType instancetoString()Returns a string representation of the object, which is the same as the description returned by the getDescription() method
-
Field Details
-
NULL
-
FIXED_UNITS_PER_TIME
-
FIXED_DURATION_AND_UNITS_PER_TIME
-
FIXED_UNITS
-
FIXED_DURATION_AND_UNITS
-
-
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 DurationType instance -
getDescription
Gets the description of this DurationType instance- Specified by:
getDescriptionin classEnumType- Returns:
- String the description
-
getDurationType
Gets an instance of DurationType based on the String value specified.- Parameters:
sDurationType- the internal value or description- Returns:
- DurationType the unique DurationType instance
-
getDurationType
Gets an instance of DurationType based on the integer value specified.- Parameters:
iDurationType- an integer representing a particular value of this class. This value is also used when exporting to XML.- Returns:
- DurationType the unique DurationType 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
-