|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.code.flyway.core.Migration
public class Migration
A migration of a single version of the schema.
| Field Summary | |
|---|---|
protected int |
executionTime
The time (in ms) it took to execute. |
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. |
protected void |
doMigrate(org.springframework.transaction.support.TransactionTemplate transactionTemplate,
org.springframework.jdbc.core.JdbcTemplate jdbcTemplate,
DbSupport dbSupport)
Performs the migration. |
long |
getExecutionTime()
|
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 int executionTime
protected java.lang.String scriptName
| Constructor Detail |
|---|
public Migration()
| Method Detail |
|---|
public SchemaVersion getVersion()
public MigrationState getState()
public long 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.
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 | |||||||||