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(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 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() |
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(DBProcessContext dbProcessContext) |
void |
upgrade(UpgradeProcess upgradeProcess) |
addIndexes, alterColumnName, alterColumnType, alterTableAddColumn, alterTableDropColumn, doHasTable, dropIndexes, 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(String tableName, boolean unique, String... columnNames) throws Exception
Exception
protected abstract void doUpgrade() throws Exception
Exception
protected 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)
IOException
@Deprecated protected Map<String,Integer> getTableColumnsMap(Class<?> tableClass) throws Exception
Exception
@Deprecated protected String getTableName(Class<?> tableClass) throws Exception
Exception
protected 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