Package com.atlassian.jira.upgrade.util
Class BuildNumberDao
java.lang.Object
com.atlassian.jira.upgrade.util.BuildNumberDao
Provides utilities around writing all the various build number / version number values in the DB.
Shared functionality used in both Upgrades and Downgrades.
- Since:
- v6.4.5
-
Constructor Summary
ConstructorsConstructorDescriptionBuildNumberDao(DowngradeUtilsImpl downgradeUtilsInfo, ApplicationProperties applicationProperties) -
Method Summary
Modifier and TypeMethodDescriptionvoidinsertUpgradeVersionHistory(OfBizDelegator ofBizDelegator, String currentBuildNumber, String version) voidsetDatabaseBuildNumber(String buildNumber) Set the DB build number (eg 64023) in the database.voidsetJiraVersion(String version) Sets the JIRA version (eg 6.4.7) in the database.voidStore the minimum downgrade version in the database so that it will be exposed in the xml backup.
-
Constructor Details
-
BuildNumberDao
public BuildNumberDao(DowngradeUtilsImpl downgradeUtilsInfo, ApplicationProperties applicationProperties)
-
-
Method Details
-
setJiraVersion
Sets the JIRA version (eg 6.4.7) in the database. -
setDatabaseBuildNumber
Set the DB build number (eg 64023) in the database.- Parameters:
buildNumber- the build number to write
-
setMinimumDowngradeVersion
public void setMinimumDowngradeVersion()Store the minimum downgrade version in the database so that it will be exposed in the xml backup. -
insertUpgradeVersionHistory
public void insertUpgradeVersionHistory(OfBizDelegator ofBizDelegator, String currentBuildNumber, String version)
-