Liferay 6.2-ce-ga5

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
Direct Known Subclasses:
BaseUpgradeAttachments, BaseUpgradePortletPreferences

public abstract class UpgradeProcess
extends BaseDBProcess


Constructor Summary
UpgradeProcess()
           
 
Method Summary
protected  boolean doHasTable(String tableName)
           
protected  void doUpgrade()
           
 int getThreshold()
           
 boolean hasTable(String tableName)
           
 long increment()
           
 long increment(String name)
           
 boolean isSupportsAlterColumnName()
           
 boolean isSupportsAlterColumnType()
           
 boolean isSupportsStringCaseSensitiveQuery()
           
 boolean isSupportsUpdateWithInnerJoin()
           
 boolean tableHasColumn(String tableName, String columnName)
           
 boolean tableHasData(String tableName)
           
 void upgrade()
           
 void upgrade(Class<?> upgradeProcessClass)
           
 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, runSQLTemplate, runSQLTemplate
 
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()

hasTable

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

increment

public long increment()
               throws SystemException
Throws:
SystemException

increment

public long increment(String name)
               throws SystemException
Throws:
SystemException

isSupportsAlterColumnName

public boolean isSupportsAlterColumnName()

isSupportsAlterColumnType

public boolean isSupportsAlterColumnType()

isSupportsStringCaseSensitiveQuery

public boolean isSupportsStringCaseSensitiveQuery()

isSupportsUpdateWithInnerJoin

public boolean isSupportsUpdateWithInnerJoin()

tableHasColumn

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

tableHasData

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

upgrade

public void upgrade()
             throws UpgradeException
Throws:
UpgradeException

upgrade

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

upgrade

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

doHasTable

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

doUpgrade

protected void doUpgrade()
                  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 6.2-ce-ga5