wt.epm.upgrade
Class ContentHandlingR8

java.lang.Object
  extended bywt.epm.upgrade.ContentHandlingR8
All Implemented Interfaces:
JavaMigrator

public class ContentHandlingR8
extends Object
implements JavaMigrator


Constructor Summary
ContentHandlingR8()
           
 
Method Summary
private  HashMap buildHashMap()
           
private  String getCategory(String authoringApp, String fileName, HashMap hash)
           
private  String getExtension(String fileName)
           
 boolean runMigration(DirectiveServices directive_services)
          This migrator sets the primary content role if it matches the CADName (but leaves it as secondary for CADDS5) The content name may use tags (Pro/E only currently) Other existing secondary content gets a secondary content category assigned A category is assigned for Pro/E primary content It accesses the database directly in order to avoid all of the checks and restrictions involved
private  int updateApplicationData(Connection conn, HashMap hashMap)
           
private  int updateData(ResultSet docsResult, PreparedStatement pUpdateRole, PreparedStatement pUpdateCategory, PreparedStatement pUpdateFileSecondary, HashMap hashMap)
           
private  int updateI2WURLData(Connection conn, HashMap hashMap)
           
private  int updateURLData(Connection conn, HashMap hashMap)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentHandlingR8

public ContentHandlingR8()
Method Detail

runMigration

public boolean runMigration(DirectiveServices directive_services)
                     throws SQLException,
                            WTException
This migrator sets the primary content role if it matches the CADName (but leaves it as secondary for CADDS5) The content name may use tags (Pro/E only currently) Other existing secondary content gets a secondary content category assigned A category is assigned for Pro/E primary content It accesses the database directly in order to avoid all of the checks and restrictions involved

Specified by:
runMigration in interface JavaMigrator
Parameters:
directive_services - provide access to database, logging, and versioning information
Throws:
SQLException
WTException

updateApplicationData

private int updateApplicationData(Connection conn,
                                  HashMap hashMap)
                           throws SQLException,
                                  WTException
Throws:
SQLException
WTException

updateURLData

private int updateURLData(Connection conn,
                          HashMap hashMap)
                   throws SQLException,
                          WTException
Throws:
SQLException
WTException

updateI2WURLData

private int updateI2WURLData(Connection conn,
                             HashMap hashMap)
                      throws SQLException,
                             WTException
Throws:
SQLException
WTException

updateData

private int updateData(ResultSet docsResult,
                       PreparedStatement pUpdateRole,
                       PreparedStatement pUpdateCategory,
                       PreparedStatement pUpdateFileSecondary,
                       HashMap hashMap)
                throws SQLException,
                       WTException
Throws:
SQLException
WTException

getCategory

private String getCategory(String authoringApp,
                           String fileName,
                           HashMap hash)
                    throws WTException
Throws:
WTException

getExtension

private String getExtension(String fileName)

buildHashMap

private HashMap buildHashMap()