|
Primavera Integration API 7.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.primavera.integration.client.bo.enm.EnumType
com.primavera.integration.client.bo.enm.DurationType
public class 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 | |
---|---|
static DurationType |
FIXED_DURATION_AND_UNITS
|
static DurationType |
FIXED_DURATION_AND_UNITS_PER_TIME
|
static DurationType |
FIXED_UNITS
|
static DurationType |
FIXED_UNITS_PER_TIME
|
static DurationType |
NULL
|
Method Summary | |
---|---|
java.lang.String |
getDescription()
Gets the description of this DurationType instance |
static DurationType |
getDurationType(int iDurationType)
Gets an instance of DurationType based on the integer value specified. |
static DurationType |
getDurationType(java.lang.String sDurationType)
Gets an instance of DurationType based on the String value specified. |
static java.lang.String[] |
getEnumDescriptions()
Gets an array of all descriptions for this enumeration |
static java.lang.String[] |
getEnumValues()
Gets an array of all internal values for this enumeration |
java.lang.String |
getValue()
Gets the internal value of this DurationType instance |
java.lang.String |
toString()
Returns a string representation of the object, which is the same as the description returned by the getDescription() method |
Methods inherited from class com.primavera.integration.client.bo.enm.EnumType |
---|
equals, hashCode, intValue |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final DurationType NULL
public static final DurationType FIXED_UNITS_PER_TIME
public static final DurationType FIXED_DURATION_AND_UNITS_PER_TIME
public static final DurationType FIXED_UNITS
public static final DurationType FIXED_DURATION_AND_UNITS
Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getValue()
getValue
in class EnumType
public java.lang.String getDescription()
getDescription
in class EnumType
public static DurationType getDurationType(java.lang.String sDurationType)
sDurationType
- the internal value or description
public static DurationType getDurationType(int iDurationType)
iDurationType
- an integer representing a particular value of this class. This value is also used when exporting to XML.
public static java.lang.String[] getEnumValues()
public static java.lang.String[] getEnumDescriptions()
|
Primavera Integration API 7.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |