|
||||||||||
| 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 class Migration
A migration of a single version of the schema.
| Field Summary | |
|---|---|
protected java.lang.Long |
checksum
The crc-32 checksum of the script. |
protected java.lang.Integer |
executionTime
The time (in ms) it took to execute. |
protected java.util.Date |
installedOn
The timestamp when this migration was applied to the database. |
protected MigrationState |
migrationState
The state of this migration. |
protected SchemaVersion |
schemaVersion
The target schema version of this migration. |
protected java.lang.String |
scriptName
The script name for the migration history. |
| Constructor Summary | |
|---|---|
Migration()
|
|
| Method Summary | |
|---|---|
void |
assertNotFailed()
Asserts that this migration has not failed. |
int |
compareTo(Migration o)
|
protected void |
doMigrate(org.springframework.transaction.support.TransactionTemplate transactionTemplate,
org.springframework.jdbc.core.JdbcTemplate jdbcTemplate,
DbSupport dbSupport)
Performs the migration. |
java.lang.Long |
getChecksum()
|
java.lang.Integer |
getExecutionTime()
|
java.util.Date |
getInstalledOn()
|
java.lang.String |
getScriptName()
|
MigrationState |
getState()
|
SchemaVersion |
getVersion()
|
void |
migrate(org.springframework.transaction.support.TransactionTemplate transactionTemplate,
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 MigrationState migrationState
protected java.util.Date installedOn
protected java.lang.Integer executionTime
protected java.lang.String scriptName
protected java.lang.Long checksum
| Constructor Detail |
|---|
public Migration()
| Method Detail |
|---|
public java.lang.Long getChecksum()
public SchemaVersion getVersion()
public MigrationState getState()
public java.util.Date getInstalledOn()
public java.lang.Integer getExecutionTime()
public java.lang.String getScriptName()
public void assertNotFailed()
java.lang.IllegalStateException - Thrown when this migration has failed.
public final void migrate(org.springframework.transaction.support.TransactionTemplate transactionTemplate,
org.springframework.jdbc.core.JdbcTemplate jdbcTemplate,
DbSupport dbSupport)
transactionTemplate - The transaction template to use.jdbcTemplate - To execute the migration statements.dbSupport - The support for database-specific extensions.public int compareTo(Migration o)
compareTo in interface java.lang.Comparable<Migration>
protected void doMigrate(org.springframework.transaction.support.TransactionTemplate transactionTemplate,
org.springframework.jdbc.core.JdbcTemplate jdbcTemplate,
DbSupport dbSupport)
throws org.springframework.dao.DataAccessException
transactionTemplate - The transaction template to use.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 | |||||||||