wt.epm.upgrade
Class EPMWorkspaceKeyR5ToR6

java.lang.Object
  extended bywt.epm.upgrade.EPMWorkspaceKeyR5ToR6
All Implemented Interfaces:
Migrator

public class EPMWorkspaceKeyR5ToR6
extends Object
implements Migrator

Reset the key in EPMWorkspaceKey from 'Name - principalString' to 'Name - principalKey' This is required for moving to Windchill 6.0 from 5.1 or earlier PLEASE NOTE that there is a order dependency on the key -> wtkey migrator


Nested Class Summary
private  class EPMWorkspaceKeyR5ToR6.idNamePair
           
 
Constructor Summary
EPMWorkspaceKeyR5ToR6()
           
 
Method Summary
 boolean runMigration(Connection windchillDatabaseConnection, PersistentObjectManager pom, PrintWriter logWriter)
          Run the migration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EPMWorkspaceKeyR5ToR6

public EPMWorkspaceKeyR5ToR6()
Method Detail

runMigration

public boolean runMigration(Connection windchillDatabaseConnection,
                            PersistentObjectManager pom,
                            PrintWriter logWriter)
                     throws SQLException
Description copied from interface: Migrator
Run the migration.

Migrators should log all output to the given PrintWriter. This is the log that is created by RunMigrators. It is an autoflush writer.

Migrators should return true if they successfully completed migration and false otherwise. It is the migrator's responsibility to log failure reasons to the log.

Migrators should not concern themselves with committing the work on the connection. The MigratorRunner will commit the connection work after running each Migrator.

Specified by:
runMigration in interface Migrator
Parameters:
windchillDatabaseConnection - an open connection to the Windchill database
pom - a persistent object manager against the Windchill database
logWriter - an autoflush printwriter for logging any and all output
Throws:
SQLException