wt.workflow.notebook
Class MigrateNotebookContentR7_R8
java.lang.Object
wt.workflow.notebook.MigrateNotebookContentR7_R8
- All Implemented Interfaces:
- Migrator
- public class MigrateNotebookContentR7_R8
- extends Object
- implements Migrator
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VERBOSE
static boolean VERBOSE
debugLog
static PrintWriter debugLog
connection
static Connection connection
pom
static PersistentObjectManager pom
MigrateNotebookContentR7_R8
public MigrateNotebookContentR7_R8()
runMigration
public boolean runMigration(Connection conn,
PersistentObjectManager pom_,
PrintWriter logWriter)
throws SQLException,
WTException,
IOException
- 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:
conn
- an open connection to the Windchill databasepom_
- a persistent object manager against the Windchill databaselogWriter
- an autoflush printwriter for logging any and all output
- Throws:
SQLException
WTException
IOException
migrateNotebookContent
private void migrateNotebookContent()
throws WTException,
SQLException
- Throws:
WTException
SQLException
update
private void update(String sql)
throws WTException,
SQLException
- Throws:
WTException
SQLException
escape
private static String escape(String s)