com.liferay.portal.kernel.upgrade
Class UpgradeProcess
java.lang.Object
com.liferay.portal.kernel.upgrade.UpgradeProcess
- Direct Known Subclasses:
- BaseUpgradePortletPreferences, DropIndexes, UpgradeAdminPortlets, UpgradeAsset, UpgradeAsset, UpgradeAsset, UpgradeAsset, UpgradeAsset, UpgradeBlogs, UpgradeBlogs, UpgradeBlogs, UpgradeBlogs, UpgradeBlogs, UpgradeBookmarks, UpgradeCalendar, UpgradeCalendar, UpgradeCommunityProperties, UpgradeCountry, UpgradeDocumentLibrary, UpgradeDocumentLibrary, UpgradeDocumentLibrary, UpgradeDocumentLibrary, UpgradeDocumentLibrary, UpgradeDocumentLibrary, UpgradeDocumentLibrary, UpgradeDocumentLibrary, UpgradeDocumentLibrary, UpgradeDocumentLibrary, UpgradeDuplicates, UpgradeExpando, UpgradeExpando, UpgradeExpando, UpgradeExpando, UpgradeExpando, UpgradeGroup, UpgradeGroup, UpgradeGroup, UpgradeGroup, UpgradeImageGallery, UpgradeImageGallery, UpgradeImageGallery, UpgradeJournal, UpgradeJournal, UpgradeJournal, UpgradeJournal, UpgradeLayout, UpgradeLayout, UpgradeLayout, UpgradeLayout, UpgradeLayout, UpgradeLayoutSet, UpgradeLayoutSet, UpgradeLayoutSetBranch, UpgradeLock, UpgradeLock, UpgradeMessageBoards, UpgradeMessageBoards, UpgradeMessageBoards, UpgradeMessageBoards, UpgradeMessageBoards, UpgradeNestedPortlets, UpgradeOrganization, UpgradePause, UpgradePermission, UpgradePermission, UpgradePermission, UpgradePermission, UpgradePolls, UpgradePortletId, UpgradePortletPermissions, UpgradePortletPreferences, UpgradeProcess_5_0_0, UpgradeProcess_5_1_0, UpgradeProcess_5_1_2, UpgradeProcess_5_2_0, UpgradeProcess_5_2_1, UpgradeProcess_5_2_2, UpgradeProcess_5_2_3, UpgradeProcess_5_2_5, UpgradeProcess_5_2_5_to_6_0_0, UpgradeProcess_5_2_7, UpgradeProcess_5_2_7_to_6_0_0, UpgradeProcess_5_2_8_to_6_0_5, UpgradeProcess_5_2_9_to_6_0_11, UpgradeProcess_6_0_0, UpgradeProcess_6_0_1, UpgradeProcess_6_0_12, 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_ConvertPermissionAlgorithm, UpgradeResource, UpgradeResourceAction, UpgradeResourceCode, UpgradeResourcePermission, UpgradeResourcePermission, UpgradeRole, UpgradeScheduler, UpgradeSchema, UpgradeSchema, UpgradeSchema, UpgradeSchema, UpgradeSchema, UpgradeSchema, UpgradeSchema, UpgradeSchema, UpgradeSchema, UpgradeSchema, UpgradeSchema, UpgradeSchema, UpgradeSchema, UpgradeSchema, UpgradeSchema, UpgradeSchema, UpgradeSchema, UpgradeSchema, UpgradeSchema, UpgradeSchema, UpgradeSchema, UpgradeSchema, UpgradeShopping, UpgradeSocial, UpgradeSocial, UpgradeSocial, UpgradeSoftwareCatalog, UpgradeSoftwareCatalog, UpgradeSubscription, UpgradeTags, UpgradeTags, UpgradeUser, UpgradeUserName, UpgradeUserName, UpgradeUserName, UpgradeVirtualHost, UpgradeVirtualHost, UpgradeWebForm, UpgradeWiki, UpgradeWiki, UpgradeWiki, UpgradeWorkflow
public abstract class UpgradeProcess
- extends Object
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()
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()
runSQL
public void runSQL(String template)
throws IOException,
SQLException
- Throws:
IOException
SQLException
runSQL
public void runSQL(String[] templates)
throws IOException,
SQLException
- Throws:
IOException
SQLException
runSQLTemplate
public void runSQLTemplate(String path)
throws IOException,
NamingException,
SQLException
- Throws:
IOException
NamingException
SQLException
runSQLTemplate
public void runSQLTemplate(String path,
boolean failOnError)
throws IOException,
NamingException,
SQLException
- Throws:
IOException
NamingException
SQLException
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
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