wt.folder
Class FolderLinkMigrator

java.lang.Object
  extended bywt.folder.FolderLinkMigrator
All Implemented Interfaces:
Migrator

public class FolderLinkMigrator
extends Object
implements Migrator


Nested Class Summary
private  class FolderLinkMigrator.FolderData
           
private  class FolderLinkMigrator.LinkData
           
 
Constructor Summary
FolderLinkMigrator()
           
 
Method Summary
private  Hashtable getConstraintData(ResultSet rs)
           
private  ArrayList getFolderData(ResultSet rs)
           
private  String getFolderQuery()
           
private  String getFolderUpdate()
           
private  String getLinkQuery()
           
private  String getLinkUpdate()
           
 boolean runMigration(Connection wcDbConn, 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

FolderLinkMigrator

public FolderLinkMigrator()
Method Detail

runMigration

public boolean runMigration(Connection wcDbConn,
                            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:
wcDbConn - 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

getFolderQuery

private String getFolderQuery()

getFolderData

private ArrayList getFolderData(ResultSet rs)
                         throws SQLException
Throws:
SQLException

getLinkQuery

private String getLinkQuery()

getConstraintData

private Hashtable getConstraintData(ResultSet rs)
                             throws SQLException
Throws:
SQLException

getFolderUpdate

private String getFolderUpdate()

getLinkUpdate

private String getLinkUpdate()