public abstract class UpgradeProcess extends BaseDBProcess implements UpgradeStep
| Modifier and Type | Class and Description |
|---|---|
static interface |
UpgradeProcess.Alterable
Deprecated.
As of Cavanaugh (7.4.x), with no direct replacement
|
connection| Constructor and Description |
|---|
UpgradeProcess() |
UpgradeProcess(String upgradeInfo) |
| Modifier and Type | Method and Description |
|---|---|
protected com.liferay.petra.lang.SafeCloseable |
addTemporaryIndex(String tableName,
boolean unique,
String... columnNames) |
void |
clearIndexesCache() |
protected abstract void |
doUpgrade() |
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[] |
getPostUpgradeSteps() |
protected UpgradeStep[] |
getPreUpgradeSteps() |
protected Map<String,Integer> |
getTableColumnsMap(Class<?> tableClass)
Deprecated.
As of Cavanaugh (7.4.x), with no direct replacement
|
protected String |
getTableName(Class<?> tableClass)
Deprecated.
As of Cavanaugh (7.4.x), with no direct replacement
|
int |
getThreshold() |
UpgradeStep[] |
getUpgradeSteps() |
protected long |
increment() |
protected long |
increment(String name) |
protected long |
increment(String name,
int size) |
protected boolean |
isPortal62TableName(String tableName) |
protected boolean |
isSkipUpgradeProcess() |
void |
upgrade() |
void |
upgrade(UpgradeProcess upgradeProcess) |
addIndexes, alterColumnName, alterColumnType, alterTableAddColumn, alterTableDropColumn, alterTableName, doHasTable, dropIndexes, dropTable, getConnection, getPrimaryKeyColumnNames, hasColumn, hasColumnType, hasIndex, hasRows, hasRows, hasTable, process, processConcurrently, processConcurrently, processConcurrently, processConcurrently, removePrimaryKey, runSQL, runSQL, runSQL, runSQL, runSQLTemplate, runSQLTemplate, runSQLTemplateStringpublic UpgradeProcess()
public UpgradeProcess(String upgradeInfo)
public void clearIndexesCache()
public int getThreshold()
public final UpgradeStep[] getUpgradeSteps()
public void upgrade()
throws UpgradeException
upgrade in interface UpgradeStepUpgradeExceptionpublic void upgrade(UpgradeProcess upgradeProcess) throws UpgradeException
UpgradeExceptionprotected com.liferay.petra.lang.SafeCloseable addTemporaryIndex(String tableName,
boolean unique,
String... columnNames)
throws Exception
Exceptionprotected abstract void doUpgrade()
throws Exception
Exceptionprotected void ensureTableExists(DatabaseMetaData databaseMetaData,
DBInspector dbInspector,
String tableName)
throws SQLException
SQLException@Deprecated protected List<ObjectValuePair<String,IndexMetadata>> getIndexesSQL(ClassLoader classLoader, String tableName) throws IOException
#getIndexSQLs(Class, String)IOExceptionprotected UpgradeStep[] getPostUpgradeSteps()
protected UpgradeStep[] getPreUpgradeSteps()
@Deprecated
protected Map<String,Integer> getTableColumnsMap(Class<?> tableClass)
throws Exception
Exception@Deprecated
protected String getTableName(Class<?> tableClass)
throws Exception
Exceptionprotected long increment()
protected long increment(String name)
protected long increment(String name,
int size)
protected boolean isPortal62TableName(String tableName)
protected boolean isSkipUpgradeProcess()
throws Exception
Exception