Liferay 7.0-ce-a5

com.liferay.portal.kernel.upgrade
Class UpgradeProcess

java.lang.Object
  extended by com.liferay.portal.kernel.dao.db.BaseDBProcess
      extended by com.liferay.portal.kernel.upgrade.UpgradeProcess
All Implemented Interfaces:
DBProcess, UpgradeStep
Direct Known Subclasses:
BaseUpgradeAdminPortlets, BaseUpgradeAttachments, BaseUpgradeLastPublishDate, BaseUpgradePortletPreferences, RenameUpgradePortalPreferences

public abstract class UpgradeProcess
extends BaseDBProcess
implements UpgradeStep


Field Summary
 
Fields inherited from class com.liferay.portal.kernel.dao.db.BaseDBProcess
connection
 
Constructor Summary
UpgradeProcess()
           
 
Method Summary
protected  boolean doHasTable(String tableName)
           
protected abstract  void doUpgrade()
           
 int getThreshold()
           
protected  boolean hasTable(String tableName)
           
protected  long increment()
           
protected  long increment(String name)
           
protected  boolean isSupportsAlterColumnName()
           
protected  boolean isSupportsAlterColumnType()
           
protected  boolean isSupportsStringCaseSensitiveQuery()
           
protected  boolean isSupportsUpdateWithInnerJoin()
           
protected  boolean tableHasColumn(String tableName, String columnName)
           
protected  boolean tableHasData(String tableName)
           
 void upgrade()
           
 void upgrade(Class<?> upgradeProcessClass)
           
 void upgrade(DBProcessContext dbProcessContext)
           
 void upgrade(UpgradeProcess upgradeProcess)
           
protected  void upgradeTable(String tableName, Object[][] tableColumns)
           
protected  void upgradeTable(String tableName, Object[][] tableColumns, String sqlCreate, String[] sqlAddIndexes)
           
 
Methods inherited from class com.liferay.portal.kernel.dao.db.BaseDBProcess
runSQL, runSQL, runSQL, runSQLTemplate, runSQLTemplate, runSQLTemplateString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpgradeProcess

public UpgradeProcess()
Method Detail

getThreshold

public int getThreshold()

upgrade

public void upgrade()
             throws UpgradeException
Throws:
UpgradeException

upgrade

public void upgrade(Class<?> upgradeProcessClass)
             throws UpgradeException
Throws:
UpgradeException

upgrade

public void upgrade(DBProcessContext dbProcessContext)
             throws UpgradeException
Specified by:
upgrade in interface UpgradeStep
Throws:
UpgradeException

upgrade

public void upgrade(UpgradeProcess upgradeProcess)
             throws UpgradeException
Throws:
UpgradeException

doHasTable

protected boolean doHasTable(String tableName)
                      throws Exception
Throws:
Exception

doUpgrade

protected abstract void doUpgrade()
                           throws Exception
Throws:
Exception

hasTable

protected boolean hasTable(String tableName)
                    throws Exception
Throws:
Exception

increment

protected long increment()

increment

protected long increment(String name)

isSupportsAlterColumnName

protected boolean isSupportsAlterColumnName()

isSupportsAlterColumnType

protected boolean isSupportsAlterColumnType()

isSupportsStringCaseSensitiveQuery

protected boolean isSupportsStringCaseSensitiveQuery()

isSupportsUpdateWithInnerJoin

protected boolean isSupportsUpdateWithInnerJoin()

tableHasColumn

protected boolean tableHasColumn(String tableName,
                                 String columnName)
                          throws Exception
Throws:
Exception

tableHasData

protected boolean tableHasData(String tableName)
                        throws Exception
Throws:
Exception

upgradeTable

protected void upgradeTable(String tableName,
                            Object[][] tableColumns)
                     throws Exception
Throws:
Exception

upgradeTable

protected void upgradeTable(String tableName,
                            Object[][] tableColumns,
                            String sqlCreate,
                            String[] sqlAddIndexes)
                     throws Exception
Throws:
Exception

Liferay 7.0-ce-a5