|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.googlecode.flyway.core.migration.Migration
public abstract class Migration
A migration of a single version of the schema.
| Field Summary | |
|---|---|
protected java.lang.Integer |
checksum
The checksum of the migration. |
protected java.lang.String |
description
The description for the migration history. |
protected SchemaVersion |
schemaVersion
The target schema version of this migration. |
protected java.lang.String |
script
The script name for the migration history. |
| Constructor Summary | |
|---|---|
Migration()
|
|
| Method Summary | |
|---|---|
int |
compareTo(Migration o)
|
java.lang.Integer |
getChecksum()
|
java.lang.String |
getDescription()
|
abstract MigrationType |
getMigrationType()
|
java.lang.String |
getScript()
|
SchemaVersion |
getVersion()
|
abstract void |
migrate(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate,
DbSupport dbSupport)
Performs the migration. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected SchemaVersion schemaVersion
protected java.lang.String description
protected java.lang.String script
protected java.lang.Integer checksum
| Constructor Detail |
|---|
public Migration()
| Method Detail |
|---|
public abstract MigrationType getMigrationType()
public java.lang.Integer getChecksum()
public SchemaVersion getVersion()
public java.lang.String getDescription()
public java.lang.String getScript()
public int compareTo(Migration o)
compareTo in interface java.lang.Comparable<Migration>
public abstract void migrate(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate,
DbSupport dbSupport)
throws org.springframework.dao.DataAccessException
jdbcTemplate - To execute the migration statements.dbSupport - The support for database-specific extensions.
org.springframework.dao.DataAccessException - Thrown when the migration failed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||