com.googlecode.flyway.core.migration
Class BaseMigration

java.lang.Object
  extended by com.googlecode.flyway.core.migration.Migration
      extended by com.googlecode.flyway.core.migration.BaseMigration
All Implemented Interfaces:
java.lang.Comparable<Migration>
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 1_2__Description .


Field Summary
 
Fields inherited from class com.googlecode.flyway.core.migration.Migration
checksum, schemaVersion, script
 
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.googlecode.flyway.core.migration.Migration
compareTo, getChecksum, getMigrationType, getScript, 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 '__, e.g. 1_2__Description The migration name in standard Flyway format. Ex.:


Copyright © 2010. All Rights Reserved.