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, UpgradeStep
- Direct Known Subclasses:
- BaseUpgradeAdminPortlets, BaseUpgradeAttachments, BaseUpgradeLastPublishDate, BaseUpgradePortletPreferences, RenameUpgradePortalPreferences
public abstract class UpgradeProcess
- extends BaseDBProcess
- implements UpgradeStep
| 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()
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
doUpgrade
protected abstract void doUpgrade()
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()
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