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 List<ObjectValuePair<String,IndexMetadata>> |
getIndexesSQL(ClassLoader classLoader,
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 String |
normalizeName(String name,
DatabaseMetaData databaseMetaData)
Deprecated.
As of Judson (7.1.x), replaced by
DBInspector.normalizeName(String, DatabaseMetaData) |
void |
upgrade() |
void |
upgrade(Class<?> upgradeProcessClass)
Deprecated.
As of Judson (7.1.x), replaced by
upgrade(UpgradeProcess) |
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, hasRows, hasRows, hasTable, runSQL, runSQL, runSQL, runSQL, runSQLTemplate, runSQLTemplate, runSQLTemplateString
public void clearIndexesCache()
public int getThreshold()
public void upgrade() throws UpgradeException
UpgradeException
@Deprecated public void upgrade(Class<?> upgradeProcessClass) throws UpgradeException
upgrade(UpgradeProcess)
UpgradeException
public void upgrade(DBProcessContext dbProcessContext) throws UpgradeException
upgrade
in interface UpgradeStep
UpgradeException
public void upgrade(UpgradeProcess upgradeProcess) throws UpgradeException
UpgradeException
protected void alter(Class<?> tableClass, UpgradeProcess.Alterable... alterables) throws Exception
Exception
protected abstract void doUpgrade() throws Exception
Exception
protected List<ObjectValuePair<String,IndexMetadata>> getIndexesSQL(ClassLoader classLoader, String tableName) throws IOException
IOException
protected Map<String,Integer> getTableColumnsMap(Class<?> tableClass) throws Exception
Exception
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
protected boolean isSupportsAlterColumnName()
protected boolean isSupportsAlterColumnType()
protected boolean isSupportsStringCaseSensitiveQuery()
protected boolean isSupportsUpdateWithInnerJoin()
@Deprecated protected String normalizeName(String name, DatabaseMetaData databaseMetaData) throws SQLException
DBInspector.normalizeName(String, DatabaseMetaData)
SQLException
protected void upgradeTable(String tableName, Object[][] tableColumns) throws Exception
Exception
protected void upgradeTable(String tableName, Object[][] tableColumns, String createSQL, String[] indexesSQL, UpgradeColumn... upgradeColumns) throws Exception
Exception