|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.googlecode.flyway.core.migration.Migration
com.googlecode.flyway.core.migration.java.BaseJavaMigration
@Deprecated public abstract class BaseJavaMigration
Base class for java migration classes whose name conforms to the Flyway standard. Example: V1_2__Change_values
| Field Summary |
|---|
| Fields inherited from class com.googlecode.flyway.core.migration.Migration |
|---|
checksum, description, schemaVersion, script |
| Constructor Summary | |
|---|---|
protected |
BaseJavaMigration()
Deprecated. Initializes this Migration with this standard Flyway name. |
protected |
BaseJavaMigration(java.lang.String version,
java.lang.String description)
Deprecated. Initializes this Migration with this version |
| Method Summary | |
|---|---|
protected abstract void |
doMigrateInTransaction(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate)
Deprecated. Performs the migration inside a transaction. |
MigrationType |
getMigrationType()
Deprecated. |
void |
migrate(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate)
Deprecated. Executes this migration. |
void |
migrate(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate,
DbSupport dbSupport)
Deprecated. Performs the migration. |
| Methods inherited from class com.googlecode.flyway.core.migration.Migration |
|---|
compareTo, equals, getChecksum, getDescription, getScript, getVersion, hashCode |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.googlecode.flyway.core.migration.java.JavaMigrationInfoProvider |
|---|
getDescription, getVersion |
| Methods inherited from interface com.googlecode.flyway.core.migration.java.JavaMigrationChecksumProvider |
|---|
getChecksum |
| Constructor Detail |
|---|
protected BaseJavaMigration()
protected BaseJavaMigration(java.lang.String version,
java.lang.String description)
version - The version string for this migration, e.g. 1.2.3description - The description for this migration| Method Detail |
|---|
public MigrationType getMigrationType()
getMigrationType in class Migration
public final void migrate(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate,
DbSupport dbSupport)
throws java.lang.IllegalStateException
migrate in class MigrationjdbcTemplate - To execute the migration statements.dbSupport - The support for database-specific extensions.
java.lang.IllegalStateException - Thrown when the migration failed.
public void migrate(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate)
throws java.lang.Exception
JavaMigration
migrate in interface JavaMigrationjdbcTemplate - The jdbcTemplate to use to execute statements.
java.lang.Exception - when the migration failed.
protected abstract void doMigrateInTransaction(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate)
throws java.lang.Exception
jdbcTemplate - To execute the migration statements.
org.springframework.dao.DataAccessException - Thrown when the migration failed.
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||