Liferay 7.0-ce-b4

com.liferay.portal.convert.util
Class ModelMigratorImpl

java.lang.Object
  extended by com.liferay.portal.convert.util.ModelMigratorImpl
All Implemented Interfaces:
ModelMigrator

public class ModelMigratorImpl
extends Object
implements ModelMigrator


Constructor Summary
ModelMigratorImpl()
           
 
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
 

Constructor Detail

ModelMigratorImpl

public ModelMigratorImpl()
Method Detail

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)

Liferay 7.0-ce-b4