com.googlecode.flyway.core.migration.java
Interface JavaMigration
- All Known Implementing Classes:
- BaseJavaMigration
public interface JavaMigration
Interface to be implemented by Java Migrations. By default the migration version and description will be extracted
from the class name. This can be overriden by also implementing the JavaMigrationInfoProvider interface, in which
case it can be specified programmatically. The checksum of this migration (for validation) will also be null, unless
the migration also implements the JavaMigrationChecksumProvider, in which case it can be returned programmatically.
|
Method Summary |
void |
migrate(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate)
Executes this migration. |
migrate
void migrate(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate)
throws java.lang.Exception
- Executes this migration. The execution will automatically take place within a transaction, when the underlying
database supports it.
- Parameters:
jdbcTemplate - The jdbcTemplate to use to execute statements.
- Throws:
java.lang.Exception - when the migration failed.
Copyright © 2011. All Rights Reserved.