wt.epm.upgrade
Class EPMReferenceDesignatorMigratorR6
java.lang.Object
wt.epm.upgrade.EPMReferenceDesignatorMigratorR6
- All Implemented Interfaces:
- Migrator
- public class EPMReferenceDesignatorMigratorR6
- extends Object
- implements Migrator
Copy each EPMReferenceDesignator to the 6.0 replacement - EPMUsesOccurrence or PartUsesOccurrence
If the associated link of the EPMReferenceDesignator is an EPMMemberLink, then it will become an
EPMUsesOccurrence. If the associated link is not an EPMMemberLink, it will be a PartUsageLink or
a subclass, so it will be copied to a PartUsesOccurrence. If the associated link is null, a warning
will be printed in the log. The associated link should never be null, as only the ECAD HLI created
EPMReferenceDesignators, and they will always be associated to an EPMMemberLink or PartUsageLink.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EPMReferenceDesignatorMigratorR6
public EPMReferenceDesignatorMigratorR6()
runMigration
public boolean runMigration(Connection windchillDatabaseConnection,
PersistentObjectManager pom,
PrintWriter logWriter)
throws SQLException,
PersistenceException
- 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 databasepom
- a persistent object manager against the Windchill databaselogWriter
- an autoflush printwriter for logging any and all output
- Throws:
SQLException
PersistenceException