wt.intersvrcom
Class MigrateSite_R51ToR60

java.lang.Object
  extended bywt.intersvrcom.MigrateSite_R51ToR60
All Implemented Interfaces:
Migrator

public class MigrateSite_R51ToR60
extends Object
implements Migrator


Field Summary
private static String anonymousURL
           
private static String anonymousURLproperty
           
 
Constructor Summary
MigrateSite_R51ToR60()
           
 
Method Summary
private  Site createNewSite(PersistentObjectManager pom, PrintWriter logWriter)
           
private  SiteSecurity getSiteSecurity(Site site, PersistentObjectManager pom, PrintWriter logWriter)
           
private  void handleDuplicateMasters(Vector localMasters, PersistentObjectManager pom, PrintWriter logWriter)
           
private  QueryResult hasFvHostLinked(Site site, PersistentObjectManager pom)
           
private  QueryResult hasFvVaultLinked(Site site, PersistentObjectManager pom)
           
private  QueryResult hasReplicaVaultLinked(Site site, PersistentObjectManager pom)
           
private  String infoSite(Site site)
           
 boolean runMigration(Connection connection, 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
 

Field Detail

anonymousURLproperty

private static final String anonymousURLproperty
See Also:
Constant Field Values

anonymousURL

private static final String anonymousURL
Constructor Detail

MigrateSite_R51ToR60

public MigrateSite_R51ToR60()
Method Detail

runMigration

public boolean runMigration(Connection connection,
                            PersistentObjectManager pom,
                            PrintWriter logWriter)
                     throws Throwable
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 - a persistent object manager against the Windchill database
logWriter - an autoflush printwriter for logging any and all output
Throws:
Throwable - declared so that migrators can let exceptions contibuting to failure pass out of the method. The migrator runner will handle these by logging them.

hasFvVaultLinked

private QueryResult hasFvVaultLinked(Site site,
                                     PersistentObjectManager pom)
                              throws WTException
Throws:
WTException

hasReplicaVaultLinked

private QueryResult hasReplicaVaultLinked(Site site,
                                          PersistentObjectManager pom)
                                   throws WTException
Throws:
WTException

hasFvHostLinked

private QueryResult hasFvHostLinked(Site site,
                                    PersistentObjectManager pom)
                             throws WTException
Throws:
WTException

infoSite

private String infoSite(Site site)

handleDuplicateMasters

private void handleDuplicateMasters(Vector localMasters,
                                    PersistentObjectManager pom,
                                    PrintWriter logWriter)
                             throws SQLException,
                                    WTPropertyVetoException,
                                    WTException
Throws:
SQLException
WTPropertyVetoException
WTException

createNewSite

private Site createNewSite(PersistentObjectManager pom,
                           PrintWriter logWriter)
                    throws WTException
Throws:
WTException

getSiteSecurity

private SiteSecurity getSiteSecurity(Site site,
                                     PersistentObjectManager pom,
                                     PrintWriter logWriter)
                              throws WTException
Throws:
WTException