com.ptc.windchill.upgrade.history
Class UpgradeStep

java.lang.Object
  extended bywt.fc.EnumeratedType
      extended bycom.ptc.windchill.upgrade.history.UpgradeStep
All Implemented Interfaces:
EnumeratedType, LocalizableMessage, LocalizableMetadata, Message, Serializable

public class UpgradeStep
extends EnumeratedType

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class wt.fc.EnumeratedType
 
Field Summary
static UpgradeStep ADD_CONSTRAINTS
           
private static String CLASS_RESOURCE
           
private static String CLASSNAME
           
static UpgradeStep COMPARE_SCHEMA
           
static UpgradeStep EXECUTE_SERVER_MIGRATORS_1
           
static UpgradeStep EXECUTE_SERVER_MIGRATORS_2
           
static UpgradeStep EXECUTE_STANDALONE_MIGRATORS
           
static UpgradeStep LOAD_DATA
           
private static Hashtable localeSets
           
static UpgradeStep QUEO
           
private static String RESOURCE
           
static UpgradeStep SELECT_TYPE
           
private  int status_
           
static UpgradeStep SUMMARY
           
static UpgradeStep UPGRADE_SCHEMA
           
private  UpgradePhaseType upgradePhaseType
           
private  HashMap upgradeStepOrderCache_
           
static UpgradeStep VALIDATION_CHECKPOINT_1
           
static UpgradeStep VALIDATION_CHECKPOINT_2
           
static UpgradeStep VALIDATION_CHECKPOINT_3
           
static UpgradeStep VALIDATION_CHECKPOINT_4
           
private static EnumeratedType[] valueSet
           
static UpgradeStep VERIFY_DB
           
static UpgradeStep VERIFY_PRE_CONDITIONS
           
static UpgradeStep VERIFY_RELEASE
           
static UpgradeStep VERIFY_UPGRADE_CRITERIA
           
static UpgradeStep WELCOME
           
 
Fields inherited from class wt.fc.EnumeratedType
secretHandshake, SEP_CHAR
 
Fields inherited from interface wt.meta.EnumeratedType
DEFAULT_VALUE, ORDER, SELECTABLE
 
Constructor Summary
protected UpgradeStep()
          Used by sub-classes that need a default constructor.
 
Method Summary
private  void createUpgradeStepOrderCache()
           
protected  EnumeratedType[] getLocaleSet(Locale locale)
           
 UpgradeStep getNext()
          Gets the next step that is to be executed.
 int getStatus()
           
 UpgradePhaseType getUpgradePhaseTypeValue()
          Get the UpgradePhaseType value of the corresponding UpgradeStep
static UpgradeStep getUpgradeStepDefault()
           
static UpgradeStep[] getUpgradeStepSet()
           
 UpgradeStep getUpgradeStepValue(UpgradePhaseType upgrade_phase_type)
          UpgradePhaseType is sent in to determine the value of the corresponding UpgradeStep.
 EnumeratedType[] getValueSet()
          Returns the array of possible values (instances) for any specific (derived) EnumeratedType class.
 boolean hasUpgradePhaseType()
          If the step has an upgrade phase type it goes into the database
private static EnumeratedType[] initializeLocaleSet(Locale locale)
           
static UpgradeStep newUpgradeStep(int secretHandshake)
          Used by EnumeratedType for constructing instances of UpgradePhase, from a resource bundle.
 void setStatus(int new_state)
           
 String toString()
          Returns the internal (persistent) value.
static UpgradeStep toUpgradeStep(String internal_value)
           
protected  EnumeratedType[] valueSet()
           
 
Methods inherited from class wt.fc.EnumeratedType
defaultEnumeratedType, dynamicInstance, equals, getAbbreviatedDisplay, getComment, getComment, getDisplay, getDisplay, getFullDisplay, getInternalKey, getLocalizedMessage, getLocalizedValues, getLongDescription, getOrder, getSelectableValueSet, getShortDescription, getShortDescription, getStringValue, getStringValue, getValidSet, getValue, hashCode, instantiateSet, isDefaultValue, isDefaultValue, isPrimaryKey, isSelectable, main, readResolve, toEnumeratedType, toEnumeratedType, toEnumeratedType, validateFriendship
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

CLASS_RESOURCE

private static final String CLASS_RESOURCE
See Also:
Constant Field Values

valueSet

private static final EnumeratedType[] valueSet

localeSets

private static Hashtable localeSets

status_

private int status_

upgradeStepOrderCache_

private HashMap upgradeStepOrderCache_

upgradePhaseType

private UpgradePhaseType upgradePhaseType

WELCOME

public static final UpgradeStep WELCOME

VERIFY_UPGRADE_CRITERIA

public static final UpgradeStep VERIFY_UPGRADE_CRITERIA

VERIFY_RELEASE

public static final UpgradeStep VERIFY_RELEASE

VERIFY_DB

public static final UpgradeStep VERIFY_DB

SELECT_TYPE

public static final UpgradeStep SELECT_TYPE

VERIFY_PRE_CONDITIONS

public static final UpgradeStep VERIFY_PRE_CONDITIONS

COMPARE_SCHEMA

public static final UpgradeStep COMPARE_SCHEMA

UPGRADE_SCHEMA

public static final UpgradeStep UPGRADE_SCHEMA

EXECUTE_STANDALONE_MIGRATORS

public static final UpgradeStep EXECUTE_STANDALONE_MIGRATORS

VALIDATION_CHECKPOINT_1

public static final UpgradeStep VALIDATION_CHECKPOINT_1

ADD_CONSTRAINTS

public static final UpgradeStep ADD_CONSTRAINTS

EXECUTE_SERVER_MIGRATORS_1

public static final UpgradeStep EXECUTE_SERVER_MIGRATORS_1

VALIDATION_CHECKPOINT_2

public static final UpgradeStep VALIDATION_CHECKPOINT_2

LOAD_DATA

public static final UpgradeStep LOAD_DATA

VALIDATION_CHECKPOINT_3

public static final UpgradeStep VALIDATION_CHECKPOINT_3

EXECUTE_SERVER_MIGRATORS_2

public static final UpgradeStep EXECUTE_SERVER_MIGRATORS_2

VALIDATION_CHECKPOINT_4

public static final UpgradeStep VALIDATION_CHECKPOINT_4

QUEO

public static final UpgradeStep QUEO

SUMMARY

public static final UpgradeStep SUMMARY
Constructor Detail

UpgradeStep

protected UpgradeStep()
Used by sub-classes that need a default constructor.

Supported API: false

Method Detail

newUpgradeStep

public static UpgradeStep newUpgradeStep(int secretHandshake)
                                  throws IllegalAccessException
Used by EnumeratedType for constructing instances of UpgradePhase, from a resource bundle.

Supported API: false

Parameters:
secretHandshake -
Returns:
UpgradeStep
Throws:
IllegalAccessException

hasUpgradePhaseType

public boolean hasUpgradePhaseType()
If the step has an upgrade phase type it goes into the database

Returns:
boolean

getUpgradePhaseTypeValue

public UpgradePhaseType getUpgradePhaseTypeValue()
Get the UpgradePhaseType value of the corresponding UpgradeStep

Returns:
UpgradePhaseType

createUpgradeStepOrderCache

private void createUpgradeStepOrderCache()

getUpgradeStepValue

public UpgradeStep getUpgradeStepValue(UpgradePhaseType upgrade_phase_type)
UpgradePhaseType is sent in to determine the value of the corresponding UpgradeStep.

Parameters:
upgrade_phase_type - UpgradePhaseType
Returns:
UpgradeStepValue

toUpgradeStep

public static UpgradeStep toUpgradeStep(String internal_value)
                                 throws WTInvalidParameterException
Parameters:
internal_value -
Returns:
Throws:
WTInvalidParameterException

getUpgradeStepDefault

public static UpgradeStep getUpgradeStepDefault()
Returns:
UpgradeStep

getUpgradeStepSet

public static UpgradeStep[] getUpgradeStepSet()
Returns:
UpgradeStep[]

getValueSet

public EnumeratedType[] getValueSet()
Description copied from class: EnumeratedType
Returns the array of possible values (instances) for any specific (derived) EnumeratedType class.

Supported API: true

Specified by:
getValueSet in class EnumeratedType
Returns:

valueSet

protected EnumeratedType[] valueSet()
Specified by:
valueSet in class EnumeratedType
Returns:

getLocaleSet

protected EnumeratedType[] getLocaleSet(Locale locale)
Specified by:
getLocaleSet in class EnumeratedType
Parameters:
locale -
Returns:

setStatus

public void setStatus(int new_state)
Parameters:
new_state -

getStatus

public int getStatus()
Returns:

toString

public String toString()
Description copied from class: EnumeratedType
Returns the internal (persistent) value. This follows the pattern of primitive wrappers provided by Sun.

Supported API: true

Overrides:
toString in class EnumeratedType
Returns:

initializeLocaleSet

private static EnumeratedType[] initializeLocaleSet(Locale locale)
                                             throws Throwable
Throws:
Throwable

getNext

public UpgradeStep getNext()
Gets the next step that is to be executed.

Returns:
UpgradeStep