Class UpgradeProcess
Object
com.liferay.portal.kernel.dao.db.BaseDBProcess
com.liferay.portal.kernel.upgrade.UpgradeProcess
- All Implemented Interfaces:
DBProcess
,UpgradeStep
- Direct Known Subclasses:
BaseAdminPortletsUpgradeProcess
,BaseBadColumnNamesUpgradeProcess
,BaseCompanyIdUpgradeProcess
,BaseDBColumnSizeUpgradeProcess
,BaseExternalReferenceCodeUpgradeProcess
,BaseLastPublishDateUpgradeProcess
,BaseLocalizedColumnUpgradeProcess
,BasePortletIdUpgradeProcess
,BasePortletPreferencesUpgradeProcess
,BaseRepositoryUpgradeProcess
,BaseSQLServerDatetimeUpgradeProcess
,BaseStagingGroupTypeSettingsUpgradeProcess
,BaseStaleUserIdUpgradeProcess
,BaseThemeIdUpgradeProcess
,BaseUuidUpgradeProcess
,BaseViewActionResourcePermissionUpgradeProcess
,CTModelUpgradeProcess
,DummyUpgradeProcess
,GuestUnsupportedResourcePermissionsUpgradeProcess
,MVCCVersionUpgradeProcess
,PortalPreferencesUpgradeProcess
,UpgradeModules
,UpgradeMVCCVersion
,ViewCountUpgradeProcess
- Author:
- Brian Wing Shun Chan, Alexander Chow
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
Deprecated.As of Cavanaugh (7.4.x), with no direct replacement -
Field Summary
Fields inherited from class com.liferay.portal.kernel.dao.db.BaseDBProcess
connection
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected com.liferay.petra.lang.SafeCloseable
addTemporaryIndex
(String tableName, boolean unique, String... columnNames) void
protected abstract void
protected void
ensureTableExists
(DatabaseMetaData databaseMetaData, DBInspector dbInspector, String tableName) protected List<ObjectValuePair<String,
IndexMetadata>> getIndexesSQL
(ClassLoader classLoader, String tableName) Deprecated.As of Athanasius (7.3.x), replaced by#getIndexSQLs(Class, String)
protected UpgradeStep[]
protected UpgradeStep[]
getTableColumnsMap
(Class<?> tableClass) Deprecated.As of Cavanaugh (7.4.x), with no direct replacementprotected String
getTableName
(Class<?> tableClass) Deprecated.As of Cavanaugh (7.4.x), with no direct replacementint
final UpgradeStep[]
protected long
protected long
protected long
protected boolean
isPortal62TableName
(String tableName) protected boolean
void
upgrade()
void
upgrade
(UpgradeProcess upgradeProcess) Methods inherited from class com.liferay.portal.kernel.dao.db.BaseDBProcess
addIndexes, alterColumnName, alterColumnType, alterTableAddColumn, alterTableDropColumn, alterTableName, doHasTable, dropIndexes, dropTable, getConnection, getPrimaryKeyColumnNames, hasColumn, hasColumnType, hasIndex, hasRows, hasRows, hasTable, hasView, process, processConcurrently, processConcurrently, processConcurrently, processConcurrently, removePrimaryKey, runSQL, runSQL, runSQL, runSQL, runSQLFile, runSQLFile, runSQLTemplate
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.liferay.portal.kernel.dao.db.DBProcess
runSQLTemplate, runSQLTemplateString
-
Constructor Details
-
UpgradeProcess
public UpgradeProcess() -
UpgradeProcess
-
-
Method Details
-
clearIndexesCache
public void clearIndexesCache() -
getThreshold
public int getThreshold() -
getUpgradeSteps
-
upgrade
- Specified by:
upgrade
in interfaceUpgradeStep
- Throws:
UpgradeException
-
upgrade
- Throws:
UpgradeException
-
addTemporaryIndex
protected com.liferay.petra.lang.SafeCloseable addTemporaryIndex(String tableName, boolean unique, String... columnNames) throws Exception - Throws:
Exception
-
doUpgrade
- Throws:
Exception
-
ensureTableExists
protected void ensureTableExists(DatabaseMetaData databaseMetaData, DBInspector dbInspector, String tableName) throws SQLException - Throws:
SQLException
-
getIndexesSQL
@Deprecated protected List<ObjectValuePair<String,IndexMetadata>> getIndexesSQL(ClassLoader classLoader, String tableName) throws IOException Deprecated.As of Athanasius (7.3.x), replaced by#getIndexSQLs(Class, String)
- Throws:
IOException
-
getPostUpgradeSteps
-
getPreUpgradeSteps
-
getTableColumnsMap
Deprecated.As of Cavanaugh (7.4.x), with no direct replacement- Throws:
Exception
-
getTableName
Deprecated.As of Cavanaugh (7.4.x), with no direct replacement- Throws:
Exception
-
increment
protected long increment() -
increment
-
increment
-
isPortal62TableName
-
isSkipUpgradeProcess
- Throws:
Exception
-