wt.inf.container
Class MigrateReportTemplates

java.lang.Object
  extended bywt.inf.container.MigrateReportTemplates
All Implemented Interfaces:
JavaMigrator

public class MigrateReportTemplates
extends Object
implements JavaMigrator

Moves report templates to the exchange container.

Only report templates with the following names are moved:


Constructor Summary
MigrateReportTemplates()
           
 
Method Summary
 boolean runMigration(DirectiveServices ds)
          Implemented from JavaMigrator
private  void safeClose(ResultSet rs)
          If the Statement is not null, try to close it, catching and smothering any SQLException that results.
private  void safeClose(Statement stmt)
          If the Statement is not null, try to close it, catching and smothering any SQLException that results.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MigrateReportTemplates

public MigrateReportTemplates()
Method Detail

runMigration

public boolean runMigration(DirectiveServices ds)
                     throws Exception
Implemented from JavaMigrator

Specified by:
runMigration in interface JavaMigrator
Parameters:
ds - provide access to database, logging, and versioning information
Returns:
true
Throws:
WTException - If the system cabinet can't be found
Exception

safeClose

private void safeClose(Statement stmt)
If the Statement is not null, try to close it, catching and smothering any SQLException that results.

Parameters:
stmt - The Statement to close

safeClose

private void safeClose(ResultSet rs)
If the Statement is not null, try to close it, catching and smothering any SQLException that results.

Parameters:
rs - The ResultSet to close