com.pmease.quickbuild.plugin.report.engine.migration
Class MigrationExecutor

java.lang.Object
  extended by com.pmease.quickbuild.plugin.report.engine.migration.MigrationExecutor

public abstract class MigrationExecutor
extends java.lang.Object

Execute all migrate functions defined in Migrator class.


Field Summary
protected  MigrationContext context
           
protected  java.io.File dir
           
 
Constructor Summary
MigrationExecutor(java.io.File dir, MigrationContext context)
           
 
Method Summary
protected  void afterUpgrade()
           
protected  void beforeUpgrade()
           
protected  void doUpgrade()
           
 java.lang.String getCurrentVersion()
           
abstract  java.lang.Class<?> getMigratorClass()
           
protected  java.io.File getVersionFile()
           
protected abstract  java.lang.String getVersionFileName()
           
 boolean needUpgrade()
           
 java.lang.String readDataVersion()
           
 void upgrade()
           
 void writeDataVersion()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dir

protected final java.io.File dir

context

protected final MigrationContext context
Constructor Detail

MigrationExecutor

public MigrationExecutor(java.io.File dir,
                         MigrationContext context)
Method Detail

getMigratorClass

public abstract java.lang.Class<?> getMigratorClass()

getVersionFileName

protected abstract java.lang.String getVersionFileName()

getVersionFile

protected java.io.File getVersionFile()

readDataVersion

public java.lang.String readDataVersion()

writeDataVersion

public void writeDataVersion()

beforeUpgrade

protected void beforeUpgrade()

afterUpgrade

protected void afterUpgrade()

doUpgrade

protected void doUpgrade()

needUpgrade

public boolean needUpgrade()

upgrade

public void upgrade()

getCurrentVersion

public java.lang.String getCurrentVersion()


Copyright © 2005-2010 PMEase Inc. All Rights Reserved.