wt.epm.upgrade
Class EPMDocumentMasterCadNameMigrator

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

public class EPMDocumentMasterCadNameMigrator
extends Object
implements Migrator

Set the cadName value base on documentNumber in EPMDocumentMaster table. if the authingApplication is PROE or OTHERS specified in wt.properties file. Register cadName in CADNameRegistryEntry table if required.


Field Summary
(package private)  Vector cadNameApplications
           
private static int PAGE_SIZE
           
 
Constructor Summary
EPMDocumentMasterCadNameMigrator()
           
 
Method Summary
private  boolean isJar(String fileName)
           
protected  boolean isPackage(String cdata)
           
protected  String lastExtension(String cdata)
           
private  String parseTDM(String ibaValue)
           
 boolean runMigration(Connection windchillDatabaseConnection, PersistentObjectManager pom, PrintWriter logWriter)
          Run the migration.
protected  String stripName(String modelName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PAGE_SIZE

private static final int PAGE_SIZE
See Also:
Constant Field Values

cadNameApplications

Vector cadNameApplications
Constructor Detail

EPMDocumentMasterCadNameMigrator

public EPMDocumentMasterCadNameMigrator()
Method Detail

runMigration

public boolean runMigration(Connection windchillDatabaseConnection,
                            PersistentObjectManager pom,
                            PrintWriter logWriter)
                     throws SQLException,
                            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:
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
WTException

isJar

private boolean isJar(String fileName)

stripName

protected String stripName(String modelName)

lastExtension

protected String lastExtension(String cdata)

isPackage

protected boolean isPackage(String cdata)

parseTDM

private String parseTDM(String ibaValue)