public abstract class UpgradeProcess extends BaseDBProcess implements UpgradeStep
| Modifier and Type | Class and Description |
|---|---|
static interface |
UpgradeProcess.Alterable |
class |
UpgradeProcess.AlterColumnName |
class |
UpgradeProcess.AlterColumnType |
class |
UpgradeProcess.AlterTableAddColumn |
class |
UpgradeProcess.AlterTableDropColumn |
connection| Constructor and Description |
|---|
UpgradeProcess() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
alter(Class<?> tableClass,
UpgradeProcess.Alterable... alterables) |
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) |
protected Map<String,Integer> |
getTableColumnsMap(Class<?> tableClass) |
protected String |
getTableName(Class<?> tableClass) |
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() |
protected boolean |
isSupportsAlterColumnType() |
protected boolean |
isSupportsStringCaseSensitiveQuery() |
protected boolean |
isSupportsUpdateWithInnerJoin() |
protected void |
removePrimaryKey(String tableName) |
protected void |
updateIndexes(Class<?> tableClass) |
void |
upgrade() |
void |
upgrade(DBProcessContext dbProcessContext) |
void |
upgrade(UpgradeProcess upgradeProcess) |
protected void |
upgradeTable(String tableName,
Object[][] tableColumns) |
protected void |
upgradeTable(String tableName,
Object[][] tableColumns,
String createSQL,
String[] indexesSQL,
UpgradeColumn... upgradeColumns) |
doHasTable, hasColumn, hasColumnType, hasColumnType, hasIndex, hasRows, hasRows, hasTable, process, processConcurrently, processConcurrently, 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 void alter(Class<?> tableClass,
UpgradeProcess.Alterable... alterables)
throws Exception
Exceptionprotected abstract void doUpgrade()
throws Exception
Exceptionprotected void ensureTableExists(DatabaseMetaData databaseMetaData,
DBInspector dbInspector,
String tableName)
throws SQLException
SQLExceptionprotected Connection getConnection()
throws Exception
Exception@Deprecated protected List<ObjectValuePair<String,IndexMetadata>> getIndexesSQL(ClassLoader classLoader, String tableName) throws IOException
getIndexSQLs(Class, String)IOExceptionprotected List<String> getIndexSQLs(Class<?> tableClass,
String tableName)
throws Exception
Exceptionprotected Map<String,Integer> getTableColumnsMap(Class<?> tableClass)
throws Exception
Exceptionprotected String getTableName(Class<?> tableClass)
throws Exception
Exceptionprotected long increment()
protected long increment(String name)
protected long increment(String name,
int size)
protected boolean isPortal62TableName(String tableName)
protected boolean isSkipUpgradeProcess()
throws Exception
Exceptionprotected boolean isSupportsAlterColumnName()
protected boolean isSupportsAlterColumnType()
protected boolean isSupportsStringCaseSensitiveQuery()
protected boolean isSupportsUpdateWithInnerJoin()
protected void removePrimaryKey(String tableName)
throws Exception
Exceptionprotected void updateIndexes(Class<?> tableClass)
throws Exception
Exceptionprotected void upgradeTable(String tableName,
Object[][] tableColumns)
throws Exception
Exceptionprotected void upgradeTable(String tableName,
Object[][] tableColumns,
String createSQL,
String[] indexesSQL,
UpgradeColumn... upgradeColumns)
throws Exception
Exception