wt.lifecycle
Class LCAdHocAclUpdateTool

java.lang.Object
  extended bywt.lifecycle.LCAdHocAclUpdateTool
All Implemented Interfaces:
JavaMigrator

public class LCAdHocAclUpdateTool
extends Object
implements JavaMigrator


Field Summary
private static String CLASSNAME
           
private static Connection connection
           
private static PersistentObjectManager pom
           
 
Constructor Summary
LCAdHocAclUpdateTool()
           
 
Method Summary
 Enumeration getPhaseTemplates(StandardACProcessor acProcessor, DirectiveServices directive_services)
           
 boolean runMigration(DirectiveServices directive_services)
          Run the migration.
 int upgrade(DirectiveServices directive_services)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASSNAME

private static final String CLASSNAME

pom

private static PersistentObjectManager pom

connection

private static Connection connection
Constructor Detail

LCAdHocAclUpdateTool

public LCAdHocAclUpdateTool()
Method Detail

runMigration

public boolean runMigration(DirectiveServices directive_services)
                     throws SQLException,
                            DirectiveExecutionException
Description copied from interface: JavaMigrator
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 JavaMigrator
Parameters:
directive_services - provide access to database, logging, and versioning information
Throws:
SQLException
DirectiveExecutionException

upgrade

public int upgrade(DirectiveServices directive_services)
            throws WTException,
                   SQLException
Throws:
WTException
SQLException

getPhaseTemplates

public Enumeration getPhaseTemplates(StandardACProcessor acProcessor,
                                     DirectiveServices directive_services)
                              throws WTException
Throws:
WTException