com.liferay.portal.kernel.upgrade
Class UpgradeProcess
java.lang.Object
com.liferay.portal.kernel.dao.db.BaseDBProcess
com.liferay.portal.kernel.upgrade.UpgradeProcess
- All Implemented Interfaces:
- DBProcess
- Direct Known Subclasses:
- BaseUpgradeAttachments, BaseUpgradePortletPreferences
public abstract class UpgradeProcess
- extends BaseDBProcess
- Author:
- Brian Wing Shun Chan, Alexander Chow
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UpgradeProcess
public UpgradeProcess()
getThreshold
public int getThreshold()
hasTable
public boolean hasTable(java.lang.String tableName)
throws java.lang.Exception
- Throws:
java.lang.Exception
increment
public long increment()
throws SystemException
- Throws:
SystemException
increment
public long increment(java.lang.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(java.lang.String tableName,
java.lang.String columnName)
throws java.lang.Exception
- Throws:
java.lang.Exception
tableHasData
public boolean tableHasData(java.lang.String tableName)
throws java.lang.Exception
- Throws:
java.lang.Exception
upgrade
public void upgrade()
throws UpgradeException
- Throws:
UpgradeException
upgrade
public void upgrade(java.lang.Class<?> upgradeProcessClass)
throws UpgradeException
- Throws:
UpgradeException
upgrade
public void upgrade(UpgradeProcess upgradeProcess)
throws UpgradeException
- Throws:
UpgradeException
doUpgrade
protected void doUpgrade()
throws java.lang.Exception
- Throws:
java.lang.Exception
upgradeTable
protected void upgradeTable(java.lang.String tableName,
java.lang.Object[][] tableColumns)
throws java.lang.Exception
- Throws:
java.lang.Exception
upgradeTable
protected void upgradeTable(java.lang.String tableName,
java.lang.Object[][] tableColumns,
java.lang.String sqlCreate,
java.lang.String[] sqlAddIndexes)
throws java.lang.Exception
- Throws:
java.lang.Exception