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:
- BaseUpgradeAdminPortlets, BaseUpgradeAttachments, BaseUpgradePortletPreferences, DropIndexes, RenameUpgradePortalPreferences, UpgradeAddress, UpgradeAnnouncements, UpgradeAsset, UpgradeAsset, UpgradeAsset, UpgradeAsset, UpgradeAsset, UpgradeBackgroundTask, UpgradeBlogs, UpgradeBlogs, UpgradeBlogs, UpgradeCalEvent, UpgradeCommunityProperties, UpgradeCompany, UpgradeContact, UpgradeCountry, UpgradeCustomizablePortlets, UpgradeDocumentLibrary, UpgradeDocumentLibrary, UpgradeDocumentLibrary, UpgradeDocumentLibrary, UpgradeDocumentLibrary, UpgradeDocumentLibrary, UpgradeDocumentLibrary, UpgradeDocumentLibrary, UpgradeDocumentLibrary, UpgradeDynamicDataLists, UpgradeDynamicDataMapping, UpgradeDynamicDataMapping, UpgradeEmailAddress, UpgradeExpando, UpgradeExpando, UpgradeExpando, UpgradeExpando, UpgradeGroup, UpgradeGroup, UpgradeGroup, UpgradeGroup, UpgradeGroup, UpgradeImageGallery, UpgradeJournal, UpgradeJournal, UpgradeJournal, UpgradeLayout, UpgradeLayout, UpgradeLayout, UpgradeLayout, UpgradeLayout, UpgradeLayout, UpgradeLayoutFriendlyURL, UpgradeLayoutRevision, UpgradeLayoutSet, UpgradeLayoutSet, UpgradeLayoutSetBranch, UpgradeLayoutSetBranch, UpgradeListType, UpgradeLock, UpgradeMembershipRequest, UpgradeMessageBoards, UpgradeMessageBoards, UpgradeMVCC, UpgradeNestedPortlets, UpgradeOrganization, UpgradeOrgLabor, UpgradePause, UpgradePermission, UpgradePermission, UpgradePhone, UpgradePolls, UpgradePortalPreferences, UpgradePortletId, UpgradePortletItem, UpgradePortletPreferences, UpgradePortletSettings, UpgradeProcess_5_2_5_to_6_0_0, UpgradeProcess_5_2_7_to_6_0_0, UpgradeProcess_5_2_8_to_6_0_5, UpgradeProcess_6_0_0, UpgradeProcess_6_0_1, UpgradeProcess_6_0_12_to_6_1_0, UpgradeProcess_6_0_2, UpgradeProcess_6_0_3, UpgradeProcess_6_0_5, UpgradeProcess_6_0_6, UpgradeProcess_6_1_0, UpgradeProcess_6_1_1, UpgradeProcess_6_2_0, UpgradeProcess_7_0_0, UpgradeRatings, UpgradeRepository, UpgradeRepositoryEntry, UpgradeResourceAction, UpgradeResourcePermission, UpgradeSchema, UpgradeSchema, UpgradeSchema, UpgradeSchema, UpgradeSchema, UpgradeSchema, UpgradeSchema, UpgradeSchema, UpgradeSchema, UpgradeSchema, UpgradeSchema, UpgradeSchema, UpgradeSchema, UpgradeSchema, UpgradeShopping, UpgradeShopping, UpgradeSocial, UpgradeSocial, UpgradeSocial, UpgradeSubscription, UpgradeSubscription, UpgradeUser, UpgradeUserName, UpgradeUserName, UpgradeVirtualHost, UpgradeWebsite, UpgradeWiki, UpgradeWiki, UpgradeWorkflow
public abstract class UpgradeProcess
- extends BaseDBProcess
| 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(String tableName)
throws Exception
- Throws:
Exception
increment
public long increment()
increment
public long increment(String name)
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