public class ModelMigratorImpl extends Object implements ModelMigrator
Constructor and Description |
---|
ModelMigratorImpl() |
Modifier and Type | Method and Description |
---|---|
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(javax.sql.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) |
public void migrate(javax.sql.DataSource dataSource, List<Class<? extends com.liferay.portal.kernel.model.BaseModel<?>>> models) throws IOException, SQLException
migrate
in interface ModelMigrator
IOException
SQLException
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)
protected void migrateModel(Map<String,com.liferay.portal.kernel.util.Tuple> modelTableDetails, com.liferay.portal.kernel.dao.db.DB db, Connection connection) throws IOException
IOException
protected void migrateTable(com.liferay.portal.kernel.dao.db.DB db, Connection connection, String tableName, Object[][] columns, String sqlCreate)