Liferay 7.0-ce-b4

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, DropIndexes, RenameUpgradePortalPreferences, UpgradeAddress, UpgradeAnnouncements, UpgradeAsset, UpgradeAsset, UpgradeAsset, UpgradeAsset, UpgradeAsset, UpgradeAssetTagsResourcePermission, UpgradeBackgroundTask, UpgradeBlogs, UpgradeBlogs, UpgradeBlogs, UpgradeCalEvent, UpgradeCommunityProperties, UpgradeCompany, UpgradeCompanyId, UpgradeContact, UpgradeCountry, UpgradeCustomizablePortlets, UpgradeDocumentLibrary, UpgradeDocumentLibrary, UpgradeDocumentLibrary, UpgradeDocumentLibrary, UpgradeDocumentLibrary, UpgradeDocumentLibrary, UpgradeDocumentLibrary, UpgradeDocumentLibrary, UpgradeDocumentLibrary, 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, UpgradeModules, UpgradeMVCCVersion, 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, UpgradeRelease, UpgradeRepository, UpgradeRepositoryEntry, UpgradeResourceAction, UpgradeResourcePermission, UpgradeResourcePermission, UpgradeSchema, UpgradeSchema, UpgradeSchema, UpgradeSchema, UpgradeSchema, UpgradeSchema, UpgradeSchema, UpgradeSchema, UpgradeSchema, UpgradeSchema, UpgradeSchema, UpgradeSchema, UpgradeSchema, UpgradeSchema, UpgradeSharding, UpgradeShopping, UpgradeSocial, UpgradeSocial, UpgradeSocial, UpgradeSubscription, UpgradeSubscription, UpgradeUser, UpgradeUserName, UpgradeUserName, UpgradeVirtualHost, UpgradeWebsite, UpgradeWiki, UpgradeWiki, UpgradeWorkflow

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 abstract  void doUpgrade()
           
 int getThreshold()
           
protected  long increment()
           
protected  long increment(String name)
           
protected  boolean isSupportsAlterColumnName()
           
protected  boolean isSupportsAlterColumnType()
           
protected  boolean isSupportsStringCaseSensitiveQuery()
           
protected  boolean isSupportsUpdateWithInnerJoin()
           
 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
doHasTable, hasColumn, hasRows, hasTable, 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

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

Liferay 7.0-ce-b4