com.liferay.portal.convert.util
Class ModelMigratorImpl
java.lang.Object
com.liferay.portal.convert.util.ModelMigratorImpl
- All Implemented Interfaces:
- ModelMigrator
public class ModelMigratorImpl
- extends Object
- implements ModelMigrator
|
Method Summary |
protected Map<String,Tuple> |
getModelTableDetails(Class<?> implClass)
|
protected Tuple |
getTableDetails(Class<?> implClass,
Field tableField,
String tableFieldVar)
|
void |
migrate(DataSource dataSource,
List<Class<? extends BaseModel<?>>> models)
|
protected void |
migrateModel(Map<String,Tuple> modelTableDetails,
DB db,
Connection connection)
|
protected void |
migrateTable(DB db,
Connection connection,
String tableName,
Object[][] columns,
String sqlCreate)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ModelMigratorImpl
public ModelMigratorImpl()
migrate
public void migrate(DataSource dataSource,
List<Class<? extends BaseModel<?>>> models)
throws IOException,
SQLException
- Specified by:
migrate in interface ModelMigrator
- Throws:
IOException
SQLException
getModelTableDetails
protected Map<String,Tuple> getModelTableDetails(Class<?> implClass)
getTableDetails
protected Tuple getTableDetails(Class<?> implClass,
Field tableField,
String tableFieldVar)
migrateModel
protected void migrateModel(Map<String,Tuple> modelTableDetails,
DB db,
Connection connection)
throws IOException
- Throws:
IOException
migrateTable
protected void migrateTable(DB db,
Connection connection,
String tableName,
Object[][] columns,
String sqlCreate)