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
-
Field Summary
Fields inherited from class com.atlassian.bamboo.upgrade.AbstractBootstrapUpgradeTask
bootstrapManager, hibernateConfig
Fields inherited from class com.atlassian.bamboo.upgrade.AbstractUpgradeTask
errors
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
convertTables
(Connection c, Collection<String> tables, Predicate<DbmsBean.ColumnDefinition> predicate, int newType, AtomicInteger successCounter, AtomicInteger failureCounter) void
Perform the upgrade.protected abstract Predicate<DbmsBean.ColumnDefinition>
protected abstract int
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 Details
-
IS_NUMERIC_19_COLUMN
-
-
Constructor Details
-
AbstractMSSQLConvertColumnUpgradeTask
-
-
Method Details
-
getConversionConditionPredicate
-
getTargetSqlType
protected abstract int getTargetSqlType() -
doUpgrade
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
-