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(java.lang.String tableName,
boolean unique,
java.lang.String... columnNames) |
protected void |
alter(java.lang.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(java.sql.DatabaseMetaData databaseMetaData,
DBInspector dbInspector,
java.lang.String tableName) |
protected java.sql.Connection |
getConnection() |
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.List<java.lang.String> |
getIndexSQLs(java.lang.Class<?> tableClass,
java.lang.String tableName)
Deprecated.
As of Cavanaugh (7.4.x), with no direct replacement
|
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() |
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(java.lang.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(java.lang.String tableName,
java.lang.Object[][] tableColumns)
Deprecated.
As of Cavanaugh (7.4.x), with no direct replacement
|
protected void |
upgradeTable(java.lang.String tableName,
java.lang.Object[][] tableColumns,
java.lang.String createSQL,
java.lang.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, runSQLTemplateStringpublic void clearIndexesCache()
public int getThreshold()
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 addTempIndex(java.lang.String tableName,
boolean unique,
java.lang.String... columnNames)
throws java.lang.Exception
java.lang.Exception@Deprecated
protected void alter(java.lang.Class<?> tableClass,
UpgradeProcess.Alterable... alterables)
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.SQLExceptionprotected java.sql.Connection getConnection()
throws java.lang.Exception
java.lang.Exception@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.List<java.lang.String> getIndexSQLs(java.lang.Class<?> tableClass,
java.lang.String tableName)
throws java.lang.Exception
java.lang.Exception@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@Deprecated protected boolean isSupportsAlterColumnName()
@Deprecated protected boolean isSupportsAlterColumnType()
@Deprecated protected boolean isSupportsStringCaseSensitiveQuery()
@Deprecated protected boolean isSupportsUpdateWithInnerJoin()
@Deprecated
protected void updateIndexes(java.lang.Class<?> tableClass)
throws java.lang.Exception
addTempIndex(String, boolean, String...) ()}java.lang.Exception@Deprecated
protected void upgradeTable(java.lang.String tableName,
java.lang.Object[][] tableColumns)
throws java.lang.Exception
java.lang.Exception@Deprecated
protected void upgradeTable(java.lang.String tableName,
java.lang.Object[][] tableColumns,
java.lang.String createSQL,
java.lang.String[] indexesSQL,
UpgradeColumn... upgradeColumns)
throws java.lang.Exception
java.lang.Exception