wt.epm.upgrade
Class FamilyInstanceToEPMDocument6_2

java.lang.Object
  extended bywt.epm.upgrade.FamilyInstanceToEPMDocument6_2

public class FamilyInstanceToEPMDocument6_2
extends Object


Nested Class Summary
static class FamilyInstanceToEPMDocument6_2.Server
           
 
Constructor Summary
FamilyInstanceToEPMDocument6_2()
           
 
Method Summary
private static void createContainedInLinks(ArrayList containedInList)
           
private static EPMDocument createNewDocument(EPMDocument genericDoc, String number, String authoringApp, String ownerApp, String docType, String docSubType, String description)
           
private static void deleteFromTable(Connection conn, String tableName)
           
private static EPMDocument getGenericIteration(long genericOid)
           
private static EPMSepFamilyTable getIteratedFamilyTable(EPMDocument genericDoc, HashMap ftHash, EPMSepFamilyTable prevFT)
           
private static EPMSepFamilyTable getNewFamilyTable(EPMDocument genericDoc, HashMap ftHash, String authoringApp)
           
static Boolean migrateData()
           
private static void processAllColumns(Connection db_connection, HashMap instIDHash)
           
private static boolean tableExists(Connection conn, String tableName)
           
private static void updateGatewayFile(FileWriter fw, long instID, long docID)
           
private static void updateMappings(EPMDocument doc, ArrayList uniqueIDMap, long uniqueID, long genericID, HashMap instIDHash, long instID, long genericBranchID, FileWriter fw)
           
private static void updateSourceTargetInstance(Connection conn, ArrayList uniqueIDMap)
           
private static void updateTableContainingFamilyInstance(HashMap instIDHash, WTConnection conn)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FamilyInstanceToEPMDocument6_2

public FamilyInstanceToEPMDocument6_2()
Method Detail

migrateData

public static Boolean migrateData()
                           throws WTException
Throws:
WTException

getGenericIteration

private static EPMDocument getGenericIteration(long genericOid)
                                        throws WTException
Throws:
WTException

createNewDocument

private static EPMDocument createNewDocument(EPMDocument genericDoc,
                                             String number,
                                             String authoringApp,
                                             String ownerApp,
                                             String docType,
                                             String docSubType,
                                             String description)
                                      throws WTException,
                                             WTPropertyVetoException
Throws:
WTException
WTPropertyVetoException

getNewFamilyTable

private static EPMSepFamilyTable getNewFamilyTable(EPMDocument genericDoc,
                                                   HashMap ftHash,
                                                   String authoringApp)
                                            throws WTException,
                                                   WTPropertyVetoException
Throws:
WTException
WTPropertyVetoException

getIteratedFamilyTable

private static EPMSepFamilyTable getIteratedFamilyTable(EPMDocument genericDoc,
                                                        HashMap ftHash,
                                                        EPMSepFamilyTable prevFT)
                                                 throws WTException,
                                                        WTPropertyVetoException
Throws:
WTException
WTPropertyVetoException

createContainedInLinks

private static void createContainedInLinks(ArrayList containedInList)
                                    throws WTException
Throws:
WTException

updateMappings

private static void updateMappings(EPMDocument doc,
                                   ArrayList uniqueIDMap,
                                   long uniqueID,
                                   long genericID,
                                   HashMap instIDHash,
                                   long instID,
                                   long genericBranchID,
                                   FileWriter fw)
                            throws IOException
Throws:
IOException

updateGatewayFile

private static void updateGatewayFile(FileWriter fw,
                                      long instID,
                                      long docID)
                               throws IOException
Throws:
IOException

updateTableContainingFamilyInstance

private static void updateTableContainingFamilyInstance(HashMap instIDHash,
                                                        WTConnection conn)

updateSourceTargetInstance

private static void updateSourceTargetInstance(Connection conn,
                                               ArrayList uniqueIDMap)
                                        throws SQLException
Throws:
SQLException

processAllColumns

private static void processAllColumns(Connection db_connection,
                                      HashMap instIDHash)
                               throws SQLException
Throws:
SQLException

deleteFromTable

private static void deleteFromTable(Connection conn,
                                    String tableName)
                             throws SQLException
Throws:
SQLException

tableExists

private static boolean tableExists(Connection conn,
                                   String tableName)
                            throws SQLException
Throws:
SQLException