Primavera Integration API 7.0

com.primavera.integration.client.bo.enm
Class DurationType

java.lang.Object
  extended by com.primavera.integration.client.bo.enm.EnumType
      extended by 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 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

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 Detail

toString

public java.lang.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 java.lang.Object
Returns:
String a string representation of the object

getValue

public java.lang.String getValue()
Gets the internal value of this DurationType instance

Specified by:
getValue in class EnumType
Returns:
String the internal value

getDescription

public java.lang.String getDescription()
Gets the description of this DurationType instance

Specified by:
getDescription in class EnumType
Returns:
String the description

getDurationType

public static DurationType getDurationType(java.lang.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 java.lang.String[] getEnumValues()
Gets an array of all internal values for this enumeration

Returns:
String[] an array of all internal values

getEnumDescriptions

public static java.lang.String[] getEnumDescriptions()
Gets an array of all descriptions for this enumeration

Returns:
String[] an array of all descriptions

Primavera Integration API 7.0

Copyright © 2003, 2009, Oracle and/or its affiliates. All rights reserved.