com.google.code.flyway.core
Class BaseMigration

java.lang.Object
  extended by com.google.code.flyway.core.Migration
      extended by com.google.code.flyway.core.BaseMigration
Direct Known Subclasses:
BaseJavaMigration, SqlMigration

public abstract class BaseMigration
extends Migration

Base migration for migrations that use the standard Flyway version + description embedding in their name. These migrations have names like V1_2__Description .


Field Summary
 
Fields inherited from class com.google.code.flyway.core.Migration
executionTime, migrationState, schemaVersion, scriptName
 
Constructor Summary
BaseMigration()
           
 
Method Summary
protected  void initVersion(java.lang.String migrationName)
          Initializes the version of this Migration based on this standard Flyway name.
 
Methods inherited from class com.google.code.flyway.core.Migration
assertNotFailed, doMigrate, getExecutionTime, getScriptName, getState, getVersion, migrate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseMigration

public BaseMigration()
Method Detail

initVersion

protected final void initVersion(java.lang.String migrationName)
Initializes the version of this Migration based on this standard Flyway name.

Parameters:
migrationName - The migration name in standard Flyway format. Ex.: V1_2__Description .


Copyright © 2010. All Rights Reserved.