@Component(role=MigrateHelper.class, hint="default") public class DefaultMigrateHelper extends Object implements MigrateHelper
| Modifier and Type | Field and Description |
|---|---|
static String |
ROLE_HINT |
ROLE| Constructor and Description |
|---|
DefaultMigrateHelper() |
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,Integer> |
getColumnMap(String tableName) |
org.apache.maven.plugin.logging.Log |
getLog() |
liquibase.database.Database |
getSource() |
protected String |
getStatementBuffer(String tableName,
Map<String,Integer> columns) |
protected Map<String,Integer> |
getTableData(org.kualigan.maven.plugins.liquibase.DefaultMigrateHelper.Incrementor incrementor)
Get a list of table names available mapped to row counts
|
protected int |
getTableRecordCount(liquibase.database.jvm.JdbcConnection conn,
String tableName) |
liquibase.database.Database |
getTarget() |
protected void |
handleLob(PreparedStatement toStatement,
Object value,
int i) |
protected boolean |
isSequence(DatabaseMetaData metadata,
String tableName) |
protected boolean |
isValidTable(DatabaseMetaData metadata,
String tableName) |
void |
migrate() |
void |
migrate(liquibase.database.Database source,
liquibase.database.Database target,
org.apache.maven.plugin.logging.Log log,
Boolean interactiveMode) |
protected void |
migrate(String tableName,
org.kualigan.maven.plugins.liquibase.DefaultMigrateHelper.ProgressObservable observable) |
protected PreparedStatement |
prepareStatement(liquibase.database.jvm.JdbcConnection conn,
String tableName,
Map<String,Integer> columns) |
void |
setLog(org.apache.maven.plugin.logging.Log log) |
void |
setSource(liquibase.database.Database source) |
void |
setTarget(liquibase.database.Database target) |
public static final String ROLE_HINT
public DefaultMigrateHelper()
public void setSource(liquibase.database.Database source)
setSource in interface MigrateHelperpublic liquibase.database.Database getSource()
getSource in interface MigrateHelperpublic void setTarget(liquibase.database.Database target)
setTarget in interface MigrateHelperpublic liquibase.database.Database getTarget()
getTarget in interface MigrateHelperpublic org.apache.maven.plugin.logging.Log getLog()
public void setLog(org.apache.maven.plugin.logging.Log log)
public void migrate(liquibase.database.Database source, liquibase.database.Database target, org.apache.maven.plugin.logging.Log log, Boolean interactiveMode) throws org.apache.maven.plugin.MojoExecutionException
migrate in interface MigrateHelperorg.apache.maven.plugin.MojoExecutionExceptionpublic void migrate() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected void migrate(String tableName, org.kualigan.maven.plugins.liquibase.DefaultMigrateHelper.ProgressObservable observable) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected void handleLob(PreparedStatement toStatement, Object value, int i) throws SQLException
SQLExceptionprotected PreparedStatement prepareStatement(liquibase.database.jvm.JdbcConnection conn, String tableName, Map<String,Integer> columns) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected String getStatementBuffer(String tableName, Map<String,Integer> columns)
protected boolean isValidTable(DatabaseMetaData metadata, String tableName)
protected boolean isSequence(DatabaseMetaData metadata, String tableName)
protected Map<String,Integer> getTableData(org.kualigan.maven.plugins.liquibase.DefaultMigrateHelper.Incrementor incrementor) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected Map<String,Integer> getColumnMap(String tableName) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected int getTableRecordCount(liquibase.database.jvm.JdbcConnection conn, String tableName) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionCopyright © 2004-2012 Kualigan. All Rights Reserved.