wt.meeting
Class MigrateMeetingActionItem_PL60ToPL61

java.lang.Object
  extended bywt.meeting.MigrateMeetingActionItem_PL60ToPL61
All Implemented Interfaces:
Migrator

public class MigrateMeetingActionItem_PL60ToPL61
extends Object
implements Migrator


Field Summary
private static String ACCESS_CONTROL_PROPERTY_NAME
           
 
Constructor Summary
MigrateMeetingActionItem_PL60ToPL61()
           
 
Method Summary
private  void copyMeetingFields(String className, Connection con, PersistentObjectManager pom, PrintWriter pw)
           
private  void createActionItemSequence(Connection con, PersistentObjectManager pom, PrintWriter pw)
           
 boolean runMigration(Connection connection, PersistentObjectManager pom, PrintWriter logWriter)
          Run the migration.
private  void setActionItemFields(Connection con, PersistentObjectManager pom, PrintWriter pw)
           
private  void setMeetingCenterMeetingFields(Connection con, PersistentObjectManager pom, PrintWriter pw)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ACCESS_CONTROL_PROPERTY_NAME

private static final String ACCESS_CONTROL_PROPERTY_NAME
See Also:
Constant Field Values
Constructor Detail

MigrateMeetingActionItem_PL60ToPL61

public MigrateMeetingActionItem_PL60ToPL61()
Method Detail

runMigration

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

createActionItemSequence

private void createActionItemSequence(Connection con,
                                      PersistentObjectManager pom,
                                      PrintWriter pw)
                               throws SQLException
Throws:
SQLException

copyMeetingFields

private void copyMeetingFields(String className,
                               Connection con,
                               PersistentObjectManager pom,
                               PrintWriter pw)
                        throws SQLException,
                               WTException,
                               PersistenceException,
                               ClassNotFoundException,
                               WTPropertyVetoException
Throws:
SQLException
WTException
PersistenceException
ClassNotFoundException
WTPropertyVetoException

setMeetingCenterMeetingFields

private void setMeetingCenterMeetingFields(Connection con,
                                           PersistentObjectManager pom,
                                           PrintWriter pw)
                                    throws QueryException,
                                           PersistenceException,
                                           SQLException,
                                           ClassNotFoundException,
                                           WTPropertyVetoException,
                                           WTException
Throws:
QueryException
PersistenceException
SQLException
ClassNotFoundException
WTPropertyVetoException
WTException

setActionItemFields

private void setActionItemFields(Connection con,
                                 PersistentObjectManager pom,
                                 PrintWriter pw)
                          throws WTException,
                                 QueryException,
                                 PersistenceException,
                                 SQLException
Throws:
WTException
QueryException
PersistenceException
SQLException