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() |
Modifier and Type | Method and Description |
---|---|
protected com.liferay.petra.lang.SafeCloseable |
addTempIndex(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 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() |
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, removePrimaryKey, runSQL, runSQL, runSQL, runSQL, runSQLTemplate, runSQLTemplate, runSQLTemplateString
public void clearIndexesCache()
public int getThreshold()
public void upgrade() throws UpgradeException
UpgradeException
public void upgrade(DBProcessContext dbProcessContext) throws UpgradeException
upgrade
in interface UpgradeStep
UpgradeException
public void upgrade(UpgradeProcess upgradeProcess) throws UpgradeException
UpgradeException
protected com.liferay.petra.lang.SafeCloseable addTempIndex(java.lang.String tableName, boolean unique, java.lang.String... columnNames) throws java.lang.Exception
java.lang.Exception
protected abstract void doUpgrade() throws java.lang.Exception
java.lang.Exception
protected 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.IOException
@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.Exception
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() throws java.lang.Exception
java.lang.Exception