public abstract class AbstractMSSQLConvertColumnUpgradeTask extends AbstractBootstrapUpgradeTask
Modifier and Type | Field and Description |
---|---|
static Predicate<DbmsBean.ColumnDefinition> |
IS_NUMERIC_19_COLUMN |
bootstrapManager, hibernateConfig
errors
Constructor and Description |
---|
AbstractMSSQLConvertColumnUpgradeTask(String shortDescription) |
Modifier and Type | Method and Description |
---|---|
void |
convertTables(Connection c,
Collection<String> tables,
Predicate<DbmsBean.ColumnDefinition> predicate,
int newType,
AtomicInteger successCounter,
AtomicInteger failureCounter) |
void |
doUpgrade()
Perform the upgrade.
|
protected abstract Predicate<DbmsBean.ColumnDefinition> |
getConversionConditionPredicate() |
protected abstract int |
getTargetSqlType() |
getDatabaseConnection, getDialect, setBootstrapManager, setHibernateConfig, withDatabaseConnection
getBuildNumber, getErrors, getShortDescription
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBuildNumber, getErrors, getShortDescription
public static final Predicate<DbmsBean.ColumnDefinition> IS_NUMERIC_19_COLUMN
public AbstractMSSQLConvertColumnUpgradeTask(@NotNull String shortDescription)
protected abstract Predicate<DbmsBean.ColumnDefinition> getConversionConditionPredicate()
protected abstract int getTargetSqlType()
public void doUpgrade() throws Exception
UpgradeTask
Exception
- to signalize error during upgrade processpublic void convertTables(Connection c, Collection<String> tables, Predicate<DbmsBean.ColumnDefinition> predicate, int newType, AtomicInteger successCounter, AtomicInteger failureCounter) throws SQLException
SQLException
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.