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(java.lang.String upgradeInfo) |
| Modifier and Type | Method and Description |
|---|---|
protected com.liferay.petra.lang.SafeCloseable |
addTemporaryIndex(java.lang.String tableName,
boolean unique,
java.lang.String... columnNames) |
void |
clearIndexesCache() |
protected abstract void |
doUpgrade() |
protected void |
ensureTableExists(java.sql.DatabaseMetaData databaseMetaData,
DBInspector dbInspector,
java.lang.String tableName) |
protected java.util.List<ObjectValuePair<java.lang.String,IndexMetadata>> |
getIndexesSQL(java.lang.ClassLoader classLoader,
java.lang.String tableName)
Deprecated.
As of Athanasius (7.3.x), replaced by
#getIndexSQLs(Class, String) |
protected UpgradeStep[] |
getPostUpgradeSteps() |
protected UpgradeStep[] |
getPreUpgradeSteps() |
protected java.util.Map<java.lang.String,java.lang.Integer> |
getTableColumnsMap(java.lang.Class<?> tableClass)
Deprecated.
As of Cavanaugh (7.4.x), with no direct replacement
|
protected java.lang.String |
getTableName(java.lang.Class<?> tableClass)
Deprecated.
As of Cavanaugh (7.4.x), with no direct replacement
|
int |
getThreshold() |
UpgradeStep[] |
getUpgradeSteps() |
protected long |
increment() |
protected long |
increment(java.lang.String name) |
protected long |
increment(java.lang.String name,
int size) |
protected boolean |
isPortal62TableName(java.lang.String tableName) |
protected boolean |
isSkipUpgradeProcess() |
void |
upgrade() |
void |
upgrade(DBProcessContext dbProcessContext) |
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, removePrimaryKey, runSQL, runSQL, runSQL, runSQL, runSQLTemplate, runSQLTemplate, runSQLTemplateStringpublic UpgradeProcess()
public UpgradeProcess(java.lang.String upgradeInfo)
public void clearIndexesCache()
public int getThreshold()
public final UpgradeStep[] getUpgradeSteps()
public void upgrade()
throws UpgradeException
UpgradeExceptionpublic void upgrade(DBProcessContext dbProcessContext) throws UpgradeException
upgrade in interface UpgradeStepUpgradeExceptionpublic void upgrade(UpgradeProcess upgradeProcess) throws UpgradeException
UpgradeExceptionprotected com.liferay.petra.lang.SafeCloseable addTemporaryIndex(java.lang.String tableName,
boolean unique,
java.lang.String... columnNames)
throws java.lang.Exception
java.lang.Exceptionprotected abstract void doUpgrade()
throws java.lang.Exception
java.lang.Exceptionprotected void ensureTableExists(java.sql.DatabaseMetaData databaseMetaData,
DBInspector dbInspector,
java.lang.String tableName)
throws java.sql.SQLException
java.sql.SQLException@Deprecated protected java.util.List<ObjectValuePair<java.lang.String,IndexMetadata>> getIndexesSQL(java.lang.ClassLoader classLoader, java.lang.String tableName) throws java.io.IOException
#getIndexSQLs(Class, String)java.io.IOExceptionprotected UpgradeStep[] getPostUpgradeSteps()
protected UpgradeStep[] getPreUpgradeSteps()
@Deprecated
protected java.util.Map<java.lang.String,java.lang.Integer> getTableColumnsMap(java.lang.Class<?> tableClass)
throws java.lang.Exception
java.lang.Exception@Deprecated
protected java.lang.String getTableName(java.lang.Class<?> tableClass)
throws java.lang.Exception
java.lang.Exceptionprotected long increment()
protected long increment(java.lang.String name)
protected long increment(java.lang.String name,
int size)
protected boolean isPortal62TableName(java.lang.String tableName)
protected boolean isSkipUpgradeProcess()
throws java.lang.Exception
java.lang.Exception