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
FieldsFields inherited from class com.atlassian.bamboo.upgrade.AbstractBootstrapUpgradeTask
bootstrapManager, hibernateConfigFields inherited from class com.atlassian.bamboo.upgrade.AbstractUpgradeTask
errors, shortDescription -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconvertTables(Connection c, Collection<String> tables, Predicate<DbmsBean.ColumnDefinition> predicate, int newType, AtomicInteger successCounter, AtomicInteger failureCounter) voidPerform the upgrade.protected abstract Predicate<DbmsBean.ColumnDefinition> protected abstract intMethods inherited from class com.atlassian.bamboo.upgrade.AbstractBootstrapUpgradeTask
getDatabaseConnection, getDialect, setBootstrapManager, setHibernateConfig, withDatabaseConnectionMethods inherited from class com.atlassian.bamboo.upgrade.AbstractUpgradeTask
getBuildNumber, getErrors, getShortDescriptionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:UpgradeTaskPerform 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
-