Liferay 7.0-ce-a3

com.liferay.portal.convert
Class ConvertDatabase

java.lang.Object
  extended by com.liferay.portal.convert.BaseConvertProcess
      extended by com.liferay.portal.convert.ConvertDatabase
All Implemented Interfaces:
ConvertProcess

public class ConvertDatabase
extends BaseConvertProcess


Constructor Summary
ConvertDatabase()
           
 
Method Summary
protected  void doConvert()
           
protected  DataSource getDataSource()
           
 String getDescription()
           
protected  Class<?> getImplClass(String implClassName)
           
 String getParameterDescription()
           
 String[] getParameterNames()
           
protected  Tuple getTableDetails(Class<?> implClass, Field tableField, String tableFieldVar)
           
 boolean isEnabled()
           
protected  void migrateTable(DB db, Connection connection, String tableName, Object[][] columns, String sqlCreate)
           
 
Methods inherited from class com.liferay.portal.convert.BaseConvertProcess
convert, getConfigurationErrorMessage, getParameterValues, getPath, setParameterValues, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConvertDatabase

public ConvertDatabase()
Method Detail

getDescription

public String getDescription()
Specified by:
getDescription in interface ConvertProcess
Specified by:
getDescription in class BaseConvertProcess

getParameterDescription

public String getParameterDescription()
Specified by:
getParameterDescription in interface ConvertProcess
Overrides:
getParameterDescription in class BaseConvertProcess

getParameterNames

public String[] getParameterNames()
Specified by:
getParameterNames in interface ConvertProcess
Overrides:
getParameterNames in class BaseConvertProcess

isEnabled

public boolean isEnabled()
Specified by:
isEnabled in interface ConvertProcess
Specified by:
isEnabled in class BaseConvertProcess

doConvert

protected void doConvert()
                  throws Exception
Specified by:
doConvert in class BaseConvertProcess
Throws:
Exception

getDataSource

protected DataSource getDataSource()
                            throws Exception
Throws:
Exception

getImplClass

protected Class<?> getImplClass(String implClassName)
                         throws Exception
Throws:
Exception

getTableDetails

protected Tuple getTableDetails(Class<?> implClass,
                                Field tableField,
                                String tableFieldVar)

migrateTable

protected void migrateTable(DB db,
                            Connection connection,
                            String tableName,
                            Object[][] columns,
                            String sqlCreate)
                     throws Exception
Throws:
Exception

Liferay 7.0-ce-a3