|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.googlecode.flyway.core.migration.DbMigrator
public class DbMigrator
Main workflow for migrating the database.
| Constructor Summary | |
|---|---|
DbMigrator(org.springframework.transaction.support.TransactionTemplate transactionTemplate,
org.springframework.jdbc.core.JdbcTemplate jdbcTemplate,
DbSupport dbSupport,
MetaDataTable metaDataTable,
SchemaVersion target,
boolean ignoreFailedFutureMigration)
Creates a new database migrator. |
|
| Method Summary | |
|---|---|
MetaDataTableRow |
applyMigration(Migration migration)
Applies this migration to the database. |
int |
migrate(java.util.List<Migration> migrations)
Starts the actual migration. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DbMigrator(org.springframework.transaction.support.TransactionTemplate transactionTemplate,
org.springframework.jdbc.core.JdbcTemplate jdbcTemplate,
DbSupport dbSupport,
MetaDataTable metaDataTable,
SchemaVersion target,
boolean ignoreFailedFutureMigration)
transactionTemplate - The transaction template to use.jdbcTemplate - JdbcTemplate with ddl manipulation access to the database.dbSupport - Database-specific functionality.metaDataTable - The database metadata table.target - The target version of the migration.ignoreFailedFutureMigration - Flag whether to ignore failed future migrations or not.| Method Detail |
|---|
public int migrate(java.util.List<Migration> migrations)
throws FlywayException
migrations - The available migrations.
FlywayException - when migration failed.
public final MetaDataTableRow applyMigration(Migration migration)
throws MigrationException
migration - The migration to apply.
MigrationException - when the migration failed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||