public abstract class AbstractMSSQLConvertColumnUpgradeTask extends AbstractBootstrapUpgradeTask
| Modifier and Type | Field and Description |
|---|---|
static Predicate<DbmsBean.ColumnDefinition> |
IS_NUMERIC_19_COLUMN |
bootstrapManager, hibernateConfigerrors| 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, withDatabaseConnectiongetBuildNumber, getErrors, getShortDescriptionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBuildNumber, getErrors, getShortDescriptionpublic 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
UpgradeTaskException - 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
SQLExceptionCopyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.