wt.org
Class ChangeKeyMigratorR7

java.lang.Object
  extended bywt.org.ChangeKeyMigratorR7
All Implemented Interfaces:
Migrator

public class ChangeKeyMigratorR7
extends Object
implements Migrator

Provides migration of Chagekey, remove organization reference for change objects, which do not implemet OrganizationOwned


Field Summary
private static boolean VERBOSE
           
 
Constructor Summary
ChangeKeyMigratorR7()
           
 
Method Summary
 boolean runMigration(Connection connection, PersistentObjectManager pom_mgr, PrintWriter log_writer)
          Run the migration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VERBOSE

private static final boolean VERBOSE
See Also:
Constant Field Values
Constructor Detail

ChangeKeyMigratorR7

public ChangeKeyMigratorR7()
Method Detail

runMigration

public boolean runMigration(Connection connection,
                            PersistentObjectManager pom_mgr,
                            PrintWriter log_writer)
                     throws SQLException,
                            IOException,
                            PersistenceException,
                            DatastoreException,
                            WTException
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:
connection - an open connection to the Windchill database
pom_mgr - a persistent object manager against the Windchill database
log_writer - an autoflush printwriter for logging any and all output
Throws:
SQLException
IOException
PersistenceException
DatastoreException
WTException