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(java.lang.Class<?> tableClass,
UpgradeProcess.Alterable... alterables) |
void |
clearIndexesCache() |
protected abstract void |
doUpgrade() |
protected java.util.List<ObjectValuePair<java.lang.String,IndexMetadata>> |
getIndexesSQL(java.lang.ClassLoader classLoader,
java.lang.String tableName) |
protected java.lang.String |
getTableName(java.lang.Class<?> tableClass) |
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 |
isSupportsAlterColumnName() |
protected boolean |
isSupportsAlterColumnType() |
protected boolean |
isSupportsStringCaseSensitiveQuery() |
protected boolean |
isSupportsUpdateWithInnerJoin() |
protected java.lang.String |
normalizeName(java.lang.String name,
java.sql.DatabaseMetaData databaseMetaData)
Deprecated.
As of 7.0.0, replaced by
DBInspector.normalizeName(String, DatabaseMetaData) |
void |
upgrade() |
void |
upgrade(java.lang.Class<?> upgradeProcessClass)
Deprecated.
As of 7.0.0, replaced by
upgrade(UpgradeProcess) |
void |
upgrade(DBProcessContext dbProcessContext) |
void |
upgrade(UpgradeProcess upgradeProcess) |
protected void |
upgradeTable(java.lang.String tableName,
java.lang.Object[][] tableColumns) |
protected void |
upgradeTable(java.lang.String tableName,
java.lang.Object[][] tableColumns,
java.lang.String createSQL,
java.lang.String[] indexesSQL,
UpgradeColumn... upgradeColumns) |
doHasTable, hasColumn, hasColumnType, hasRows, hasRows, hasTable, runSQL, runSQL, runSQL, runSQL, runSQLTemplate, runSQLTemplate, runSQLTemplateStringpublic void clearIndexesCache()
public int getThreshold()
public void upgrade()
throws UpgradeException
UpgradeException@Deprecated
public void upgrade(java.lang.Class<?> upgradeProcessClass)
throws UpgradeException
upgrade(UpgradeProcess)UpgradeExceptionpublic void upgrade(DBProcessContext dbProcessContext) throws UpgradeException
upgrade in interface UpgradeStepUpgradeExceptionpublic void upgrade(UpgradeProcess upgradeProcess) throws UpgradeException
UpgradeExceptionprotected 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 java.util.List<ObjectValuePair<java.lang.String,IndexMetadata>> getIndexesSQL(java.lang.ClassLoader classLoader, java.lang.String tableName) throws java.io.IOException
java.io.IOExceptionprotected 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 isSupportsAlterColumnName()
protected boolean isSupportsAlterColumnType()
protected boolean isSupportsStringCaseSensitiveQuery()
protected boolean isSupportsUpdateWithInnerJoin()
@Deprecated
protected java.lang.String normalizeName(java.lang.String name,
java.sql.DatabaseMetaData databaseMetaData)
throws java.sql.SQLException
DBInspector.normalizeName(String, DatabaseMetaData)java.sql.SQLExceptionprotected void upgradeTable(java.lang.String tableName,
java.lang.Object[][] tableColumns)
throws java.lang.Exception
java.lang.Exceptionprotected 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