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,com.liferay.portal.kernel.util.Tuple> |
getModelTableDetails(Class<?> implClass)
|
protected com.liferay.portal.kernel.util.Tuple |
getTableDetails(Class<?> implClass,
Field tableField,
String tableFieldVar)
|
void |
migrate(DataSource dataSource,
List<Class<? extends com.liferay.portal.kernel.model.BaseModel<?>>> models)
|
protected void |
migrateModel(Map<String,com.liferay.portal.kernel.util.Tuple> modelTableDetails,
com.liferay.portal.kernel.dao.db.DB db,
Connection connection)
|
protected void |
migrateTable(com.liferay.portal.kernel.dao.db.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 com.liferay.portal.kernel.model.BaseModel<?>>> models)
throws IOException,
SQLException
- Specified by:
migrate in interface ModelMigrator
- Throws:
IOException
SQLException
getModelTableDetails
protected Map<String,com.liferay.portal.kernel.util.Tuple> getModelTableDetails(Class<?> implClass)
getTableDetails
protected com.liferay.portal.kernel.util.Tuple getTableDetails(Class<?> implClass,
Field tableField,
String tableFieldVar)
migrateModel
protected void migrateModel(Map<String,com.liferay.portal.kernel.util.Tuple> modelTableDetails,
com.liferay.portal.kernel.dao.db.DB db,
Connection connection)
throws IOException
- Throws:
IOException
migrateTable
protected void migrateTable(com.liferay.portal.kernel.dao.db.DB db,
Connection connection,
String tableName,
Object[][] columns,
String sqlCreate)