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
|
class |
UpgradeProcess.AlterColumnName
Deprecated.
As of Cavanaugh (7.4.x), replaced by
BaseDBProcess.alterColumnName(String, String, String) |
class |
UpgradeProcess.AlterColumnType
Deprecated.
As of Cavanaugh (7.4.x), replaced by
BaseDBProcess.alterColumnType(String, String, String) |
class |
UpgradeProcess.AlterTableAddColumn
Deprecated.
As of Cavanaugh (7.4.x), replaced by
BaseDBProcess.alterTableAddColumn(String, String, String) |
class |
UpgradeProcess.AlterTableDropColumn
Deprecated.
As of Cavanaugh (7.4.x), replaced by
BaseDBProcess.alterTableDropColumn(String, String) |
connection
Constructor and Description |
---|
UpgradeProcess() |
Modifier and Type | Method and Description |
---|---|
protected com.liferay.petra.lang.SafeCloseable |
addTempIndex(String tableName,
boolean unique,
String... columnNames) |
protected void |
alter(Class<?> tableClass,
UpgradeProcess.Alterable... alterables)
Deprecated.
As of Cavanaugh (7.4.x), replaced by alter* methods
|
void |
clearIndexesCache() |
protected abstract void |
doUpgrade() |
protected void |
ensureTableExists(DatabaseMetaData databaseMetaData,
DBInspector dbInspector,
String tableName) |
protected Connection |
getConnection() |
protected List<ObjectValuePair<String,IndexMetadata>> |
getIndexesSQL(ClassLoader classLoader,
String tableName)
Deprecated.
As of Athanasius (7.3.x), replaced by
getIndexSQLs(Class, String) |
protected List<String> |
getIndexSQLs(Class<?> tableClass,
String tableName)
Deprecated.
As of Cavanaugh (7.4.x), with no direct replacement
|
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() |
protected boolean |
isSupportsAlterColumnName()
Deprecated.
As of Cavanaugh (7.4.x), with no direct replacement
|
protected boolean |
isSupportsAlterColumnType()
Deprecated.
As of Cavanaugh (7.4.x), with no direct replacement
|
protected boolean |
isSupportsStringCaseSensitiveQuery()
Deprecated.
As of Cavanaugh (7.4.x), with no direct replacement
|
protected boolean |
isSupportsUpdateWithInnerJoin()
Deprecated.
As of Cavanaugh (7.4.x), with no direct replacement
|
protected void |
updateIndexes(Class<?> tableClass)
Deprecated.
As of Cavanaugh (7.4.x), replaced by
addTempIndex(String, boolean, String...) ()} |
void |
upgrade() |
void |
upgrade(DBProcessContext dbProcessContext) |
void |
upgrade(UpgradeProcess upgradeProcess) |
protected void |
upgradeTable(String tableName,
Object[][] tableColumns)
Deprecated.
As of Cavanaugh (7.4.x), with no direct replacement
|
protected void |
upgradeTable(String tableName,
Object[][] tableColumns,
String createSQL,
String[] indexesSQL,
UpgradeColumn... upgradeColumns)
Deprecated.
As of Cavanaugh (7.4.x), with no direct replacement
|
addIndexes, alterColumnName, alterColumnType, alterTableAddColumn, alterTableDropColumn, doHasTable, dropIndexes, getPrimaryKeyColumnNames, hasColumn, hasColumnType, hasColumnType, hasIndex, hasRows, hasRows, hasTable, process, processConcurrently, processConcurrently, removePrimaryKey, runSQL, runSQL, runSQL, runSQL, runSQLTemplate, runSQLTemplate, runSQLTemplateString, 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
@Deprecated protected void alter(Class<?> tableClass, UpgradeProcess.Alterable... alterables) throws Exception
Exception
protected abstract void doUpgrade() throws Exception
Exception
protected void ensureTableExists(DatabaseMetaData databaseMetaData, DBInspector dbInspector, String tableName) throws SQLException
SQLException
protected Connection getConnection() throws Exception
Exception
@Deprecated protected List<ObjectValuePair<String,IndexMetadata>> getIndexesSQL(ClassLoader classLoader, String tableName) throws IOException
getIndexSQLs(Class, String)
IOException
@Deprecated protected List<String> getIndexSQLs(Class<?> tableClass, String tableName) throws Exception
Exception
@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
@Deprecated protected boolean isSupportsAlterColumnName()
@Deprecated protected boolean isSupportsAlterColumnType()
@Deprecated protected boolean isSupportsStringCaseSensitiveQuery()
@Deprecated protected boolean isSupportsUpdateWithInnerJoin()
@Deprecated protected void updateIndexes(Class<?> tableClass) throws Exception
addTempIndex(String, boolean, String...)
()}Exception
@Deprecated protected void upgradeTable(String tableName, Object[][] tableColumns) throws Exception
Exception
@Deprecated protected void upgradeTable(String tableName, Object[][] tableColumns, String createSQL, String[] indexesSQL, UpgradeColumn... upgradeColumns) throws Exception
Exception