public abstract class AbstractBootstrapUpgradeTask extends AbstractUpgradeTask implements BootstrapUpgradeTask
Modifier and Type | Field and Description |
---|---|
protected com.atlassian.config.ApplicationConfig |
applicationConfig |
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 String |
getApplicationBuildNumber() |
protected Connection |
getDatabaseConnection() |
protected org.hibernate.dialect.Dialect |
getDialect() |
void |
setApplicationConfig(com.atlassian.config.ApplicationConfig applicationConfig) |
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
@Autowired protected BootstrapManager bootstrapManager
@Autowired protected com.atlassian.config.ApplicationConfig applicationConfig
@Autowired 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
@NotNull protected String getApplicationBuildNumber()
public void setBootstrapManager(BootstrapManager bootstrapManager)
public void setApplicationConfig(com.atlassian.config.ApplicationConfig applicationConfig)
public void setHibernateConfig(com.atlassian.config.db.HibernateConfig hibernateConfig)
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.