Class DurationType

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

public class DurationType extends EnumType
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 Details

    • NULL

      public static final DurationType NULL
    • FIXED_UNITS_PER_TIME

      public static final DurationType FIXED_UNITS_PER_TIME
    • FIXED_DURATION_AND_UNITS_PER_TIME

      public static final DurationType FIXED_DURATION_AND_UNITS_PER_TIME
    • FIXED_UNITS

      public static final DurationType FIXED_UNITS
    • FIXED_DURATION_AND_UNITS

      public static final DurationType FIXED_DURATION_AND_UNITS
  • 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 DurationType instance
      Specified by:
      getValue in class EnumType
      Returns:
      String the internal value
    • getDescription

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

      public static DurationType getDurationType(String sDurationType)
      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

      public static DurationType getDurationType(int iDurationType)
      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

      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