Class AbstractMSSQLConvertColumnUpgradeTask
- java.lang.Object
-
- com.atlassian.bamboo.upgrade.AbstractUpgradeTask
-
- com.atlassian.bamboo.upgrade.AbstractBootstrapUpgradeTask
-
- com.atlassian.bamboo.upgrade.tasks.AbstractMSSQLConvertColumnUpgradeTask
-
- All Implemented Interfaces:
BootstrapUpgradeTask
,UpgradeTask
public abstract class AbstractMSSQLConvertColumnUpgradeTask extends AbstractBootstrapUpgradeTask
-
-
Field Summary
Fields Modifier and Type Field Description static Predicate<DbmsBean.ColumnDefinition>
IS_NUMERIC_19_COLUMN
-
Fields inherited from class com.atlassian.bamboo.upgrade.AbstractBootstrapUpgradeTask
bootstrapManager, hibernateConfig
-
Fields inherited from class com.atlassian.bamboo.upgrade.AbstractUpgradeTask
errors
-
-
Constructor Summary
Constructors Constructor Description AbstractMSSQLConvertColumnUpgradeTask(@NotNull String shortDescription)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method 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()
-
Methods inherited from class com.atlassian.bamboo.upgrade.AbstractBootstrapUpgradeTask
getDatabaseConnection, getDialect, setBootstrapManager, setHibernateConfig, withDatabaseConnection
-
Methods inherited from class com.atlassian.bamboo.upgrade.AbstractUpgradeTask
getBuildNumber, getErrors, getShortDescription
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.atlassian.bamboo.upgrade.UpgradeTask
getBuildNumber, getErrors, getShortDescription
-
-
-
-
Field Detail
-
IS_NUMERIC_19_COLUMN
public static final Predicate<DbmsBean.ColumnDefinition> IS_NUMERIC_19_COLUMN
-
-
Constructor Detail
-
AbstractMSSQLConvertColumnUpgradeTask
public AbstractMSSQLConvertColumnUpgradeTask(@NotNull @NotNull String shortDescription)
-
-
Method Detail
-
getConversionConditionPredicate
protected abstract Predicate<DbmsBean.ColumnDefinition> getConversionConditionPredicate()
-
getTargetSqlType
protected abstract int getTargetSqlType()
-
doUpgrade
public void doUpgrade() throws Exception
Description copied from interface:UpgradeTask
Perform the upgrade.- Throws:
Exception
- to signalize error during upgrade process
-
convertTables
public void convertTables(Connection c, Collection<String> tables, Predicate<DbmsBean.ColumnDefinition> predicate, int newType, AtomicInteger successCounter, AtomicInteger failureCounter) throws SQLException
- Throws:
SQLException
-
-