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, BaseUpgradeCompanyId, BaseUpgradeLastPublishDate, BaseUpgradePortletId, BaseUpgradePortletPreferences, BaseUpgradeRepository, RenameUpgradePortalPreferences, UpgradeMVCCVersion
public abstract class UpgradeProcess
- extends BaseDBProcess
- implements UpgradeStep
|
Method Summary |
protected void |
alter(Class<?> tableClass,
UpgradeProcess.Alterable... alterables)
|
void |
clearIndexesCache()
|
protected abstract void |
doUpgrade()
|
protected List<ObjectValuePair<String,IndexMetadata>> |
getIndexesSQL(ClassLoader classLoader,
String tableName)
|
int |
getThreshold()
|
protected long |
increment()
|
protected long |
increment(String name)
|
protected long |
increment(String name,
int size)
|
protected boolean |
isSupportsAlterColumnName()
|
protected boolean |
isSupportsAlterColumnType()
|
protected boolean |
isSupportsStringCaseSensitiveQuery()
|
protected boolean |
isSupportsUpdateWithInnerJoin()
|
protected String |
normalizeName(String name,
DatabaseMetaData databaseMetaData)
|
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 createSQL,
String[] indexesSQL,
UpgradeColumn... upgradeColumns)
|
| Methods inherited from class com.liferay.portal.kernel.dao.db.BaseDBProcess |
doHasTable, hasColumn, hasRows, 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 |
UpgradeProcess
public UpgradeProcess()
clearIndexesCache
public void clearIndexesCache()
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
alter
protected void alter(Class<?> tableClass,
UpgradeProcess.Alterable... alterables)
throws Exception
- Throws:
Exception
doUpgrade
protected abstract void doUpgrade()
throws Exception
- Throws:
Exception
getIndexesSQL
protected List<ObjectValuePair<String,IndexMetadata>> getIndexesSQL(ClassLoader classLoader,
String tableName)
throws IOException
- Throws:
IOException
increment
protected long increment()
increment
protected long increment(String name)
increment
protected long increment(String name,
int size)
isSupportsAlterColumnName
protected boolean isSupportsAlterColumnName()
isSupportsAlterColumnType
protected boolean isSupportsAlterColumnType()
isSupportsStringCaseSensitiveQuery
protected boolean isSupportsStringCaseSensitiveQuery()
isSupportsUpdateWithInnerJoin
protected boolean isSupportsUpdateWithInnerJoin()
normalizeName
protected String normalizeName(String name,
DatabaseMetaData databaseMetaData)
throws SQLException
- Throws:
SQLException
upgradeTable
protected void upgradeTable(String tableName,
Object[][] tableColumns)
throws Exception
- Throws:
Exception
upgradeTable
protected void upgradeTable(String tableName,
Object[][] tableColumns,
String createSQL,
String[] indexesSQL,
UpgradeColumn... upgradeColumns)
throws Exception
- Throws:
Exception