com.googlecode.flyway.core.migration.jdbc
Class JdbcMigrationExecutor
java.lang.Object
com.googlecode.flyway.core.migration.Migration
com.googlecode.flyway.core.migration.jdbc.JdbcMigrationExecutor
- All Implemented Interfaces:
- java.lang.Comparable<Migration>
public class JdbcMigrationExecutor
- extends Migration
Adapter for executing migrations implementing JdbcMigration.
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
JdbcMigrationExecutor
public JdbcMigrationExecutor(JdbcMigration jdbcMigration)
- Creates a new JdbcMigrationExecutor.
- Parameters:
jdbcMigration - The JdbcMigration to execute.
getLocation
public java.lang.String getLocation()
- Description copied from class:
Migration
- retrieves the location of the migration
- Specified by:
getLocation in class Migration
- Returns:
- source of this migration
getMigrationType
public MigrationType getMigrationType()
- Specified by:
getMigrationType in class Migration
- Returns:
- The type of migration (INIT, SQL or JAVA)
migrate
public void migrate(JdbcTemplate jdbcTemplate,
DbSupport dbSupport)
- Description copied from class:
Migration
- Performs the migration.
- Specified by:
migrate in class Migration
- Parameters:
jdbcTemplate - To execute the migration statements.dbSupport - The support for database-specific extensions.
Copyright © 2012. All Rights Reserved.