com.googlecode.flyway.core.api
Interface MigrationInfo

All Superinterfaces:
Comparable<MigrationInfo>

public interface MigrationInfo
extends Comparable<MigrationInfo>

Info about a migration.


Method Summary
 Integer getChecksum()
           
 String getDescription()
           
 Integer getExecutionTime()
           
 Date getInstalledOn()
           
 String getScript()
           
 MigrationState getState()
           
 MigrationType getType()
           
 MigrationVersion getVersion()
           
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

getType

MigrationType getType()
Returns:
The type of migration (INIT, SQL or JAVA)

getChecksum

Integer getChecksum()
Returns:
The target version of this migration.

getVersion

MigrationVersion getVersion()
Returns:
The schema version after the migration is complete.

getDescription

String getDescription()
Returns:
The description of the migration.

getScript

String getScript()
Returns:
The name of the script to execute for this migration, relative to its classpath location.

getState

MigrationState getState()
Returns:
The state of the migration (PENDING, SUCCESS, ...)

getInstalledOn

Date getInstalledOn()
Returns:
The timestamp when this migration was installed. (Only for applied migrations)

getExecutionTime

Integer getExecutionTime()
Returns:
The execution time (in millis) of this migration. (Only for applied migrations)


Copyright © 2012. All Rights Reserved.