public abstract class AbstractBootstrapUpgradeTask extends AbstractUpgradeTask implements BootstrapUpgradeTask
Modifier and Type | Field and Description |
---|---|
protected BootstrapManager |
bootstrapManager |
protected com.atlassian.config.db.HibernateConfig |
hibernateConfig |
errors
Modifier | Constructor and Description |
---|---|
protected |
AbstractBootstrapUpgradeTask(String shortDescription) |
protected |
AbstractBootstrapUpgradeTask(String buildNumber,
String shortDescription)
Deprecated.
since 5.13 - use
AbstractBootstrapUpgradeTask(String) instead. |
Modifier and Type | Method and Description |
---|---|
protected Connection |
getDatabaseConnection() |
protected org.hibernate.dialect.Dialect |
getDialect() |
void |
setBootstrapManager(BootstrapManager bootstrapManager) |
void |
setHibernateConfig(com.atlassian.config.db.HibernateConfig hibernateConfig) |
protected void |
withDatabaseConnection(BambooConnectionCallback connectionCallback) |
getBuildNumber, getErrors, getShortDescription
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
doUpgrade, getBuildNumber, getErrors, getShortDescription
@Inject protected BootstrapManager bootstrapManager
@Inject protected com.atlassian.config.db.HibernateConfig hibernateConfig
protected AbstractBootstrapUpgradeTask(@NotNull String shortDescription)
@Deprecated protected AbstractBootstrapUpgradeTask(@NotNull String buildNumber, @NotNull String shortDescription)
AbstractBootstrapUpgradeTask(String)
instead.protected Connection getDatabaseConnection() throws org.hibernate.HibernateException, SQLException
org.hibernate.HibernateException
SQLException
@Nullable protected org.hibernate.dialect.Dialect getDialect()
protected void withDatabaseConnection(BambooConnectionCallback connectionCallback) throws org.hibernate.HibernateException, SQLException
org.hibernate.HibernateException
SQLException
public void setBootstrapManager(BootstrapManager bootstrapManager)
public void setHibernateConfig(com.atlassian.config.db.HibernateConfig hibernateConfig)
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.