@Transactional public interface VersionHistoryDao extends ObjectDao
Modifier and Type | Field and Description |
---|---|
static int |
UNKNOWN_BUILD_NUMBER |
Modifier and Type | Method and Description |
---|---|
void |
addBuildToHistory(int buildNumber)
The version history consists of a list of builds that Confluence has been successfully upgraded to
|
void |
finalizeBuild(int buildNumber)
Record the provided build number as finalized.
|
int |
getFinalizedBuildNumber()
Obtains the latest build number to have been finalized using
finalizeBuild(int) . |
int |
getLatestBuildNumber()
Get the highest build number from the database.
|
List<VersionHistory> |
getUpgradeHistory(int start,
int maxResults)
Get the history of all the upgrades.
|
VersionHistory |
getVersionHistory(int buildNumber) |
boolean |
tagBuild(int buildNumber,
String tag)
Associates a tag with a build number
|
findAll, findAllSorted, findAllSorted, findByClassIds, getPersistentClass, refresh, remove, replicate, save, saveRaw
static final int UNKNOWN_BUILD_NUMBER
@Transactional(readOnly=true) int getLatestBuildNumber()
If the number can not be determined (there are no versions in the database, or the version history table hasn't even been created yet) then the method will return UNKNOWN_BUILD_NUMBER. In this case, callers should assume that the database build number is identical to the configured build number.
void addBuildToHistory(int buildNumber)
buildNumber
- @Transactional(readOnly=true) VersionHistory getVersionHistory(int buildNumber)
buildNumber
- boolean tagBuild(int buildNumber, String tag)
@Transactional(readOnly=true) List<VersionHistory> getUpgradeHistory(int start, int maxResults)
start
- maxResults
- @Transactional(readOnly=true, propagation=REQUIRES_NEW) int getFinalizedBuildNumber()
finalizeBuild(int)
.void finalizeBuild(int buildNumber)
buildNumber
- Copyright © 2003–2023 Atlassian. All rights reserved.
View cookie preferences