com.rsmart.kuali.tools.ant.tasks
Class MigrateData
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
com.rsmart.kuali.tools.ant.tasks.MigrateData
- All Implemented Interfaces:
- Cloneable
public class MigrateData
- extends org.apache.tools.ant.Task
- Author:
- Leo Przybylski (przybyls@arizona.edu)
Fields inherited from class org.apache.tools.ant.Task |
taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
description, location, project |
Method Summary |
void |
execute()
|
String |
getSource()
|
protected Map<String,Integer> |
getTableData(RdbmsConfig source,
RdbmsConfig target,
com.rsmart.kuali.tools.ant.tasks.MigrateData.Incrementor incrementor)
Get a list of table names available mapped to row counts |
String |
getTarget()
|
protected void |
handleLob(PreparedStatement toStatement,
Object value,
int i)
|
protected boolean |
isSequence(DatabaseMetaData metadata,
String tableName)
|
protected boolean |
isValidTable(DatabaseMetaData metadata,
String tableName)
|
protected void |
migrate(RdbmsConfig source,
RdbmsConfig target,
String tableName,
com.rsmart.kuali.tools.ant.tasks.MigrateData.ProgressObservable observable)
|
protected PreparedStatement |
prepareStatement(Connection conn,
String tableName,
Map<String,Integer> columns)
|
void |
setSource(String refid)
|
void |
setTarget(String refid)
|
Methods inherited from class org.apache.tools.ant.Task |
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject |
MigrateData
public MigrateData()
setSource
public void setSource(String refid)
getSource
public String getSource()
setTarget
public void setTarget(String refid)
getTarget
public String getTarget()
execute
public void execute()
- Overrides:
execute
in class org.apache.tools.ant.Task
migrate
protected void migrate(RdbmsConfig source,
RdbmsConfig target,
String tableName,
com.rsmart.kuali.tools.ant.tasks.MigrateData.ProgressObservable observable)
handleLob
protected void handleLob(PreparedStatement toStatement,
Object value,
int i)
throws SQLException
- Throws:
SQLException
prepareStatement
protected PreparedStatement prepareStatement(Connection conn,
String tableName,
Map<String,Integer> columns)
isValidTable
protected boolean isValidTable(DatabaseMetaData metadata,
String tableName)
isSequence
protected boolean isSequence(DatabaseMetaData metadata,
String tableName)
getTableData
protected Map<String,Integer> getTableData(RdbmsConfig source,
RdbmsConfig target,
com.rsmart.kuali.tools.ant.tasks.MigrateData.Incrementor incrementor)
- Get a list of table names available mapped to row counts
Copyright © 2011 Leo Przybylski. All Rights Reserved.