com.google.code.flyway.core.sql
Class SqlMigration
java.lang.Object
com.google.code.flyway.core.BaseMigration
com.google.code.flyway.core.sql.SqlMigration
- All Implemented Interfaces:
- Migration
public class SqlMigration
- extends BaseMigration
Database migration based on a sql file.
|
Constructor Summary |
SqlMigration(org.springframework.core.io.Resource sqlScriptResource,
java.util.Map<java.lang.String,java.lang.String> placeholders,
DbSupport dbSupport)
Creates a new sql script migration based on this sql script. |
|
Method Summary |
void |
doMigrate(org.springframework.jdbc.core.simple.SimpleJdbcTemplate jdbcTemplate)
Performs the migration. |
java.lang.String |
getScriptName()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SqlMigration
public SqlMigration(org.springframework.core.io.Resource sqlScriptResource,
java.util.Map<java.lang.String,java.lang.String> placeholders,
DbSupport dbSupport)
- Creates a new sql script migration based on this sql script.
- Parameters:
sqlScriptResource - The resource containing the sql script.
getScriptName
public java.lang.String getScriptName()
- Returns:
- The script name for the migration history.
doMigrate
public void doMigrate(org.springframework.jdbc.core.simple.SimpleJdbcTemplate jdbcTemplate)
- Description copied from class:
BaseMigration
- Performs the migration.
- Specified by:
doMigrate in class BaseMigration
- Parameters:
jdbcTemplate - To execute the migration statements.
Copyright © 2010. All Rights Reserved.