public class CachingVersionHistoryDao extends DelegatingObjectDaoInternal<VersionHistory> implements VersionHistoryDaoInternal
VersionHistoryDaoInternalUNKNOWN_BUILD_NUMBER| Constructor and Description |
|---|
CachingVersionHistoryDao(VersionHistoryDaoInternal delegate,
com.atlassian.cache.CacheFactory cacheFactory,
SynchronizationManager synchronizationManager) |
| 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
VersionHistoryDao.finalizeBuild(int). |
List<VersionHistory> |
getFullUpgradeHistory() |
int |
getLatestBuildNumber()
Get the highest build number from the database.
|
VersionHistory |
getVersionHistory(int buildNumber) |
boolean |
tagBuild(int buildNumber,
String tag)
Associates a tag with a build number
|
findAll, findAllSorted, findAllSorted, findByClassIds, findByClassIdsFiltered, getPersistentClass, refresh, refreshEntity, remove, removeEntity, replicate, replicateEntity, save, saveEntity, saveRaw, saveRawEntityclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetUpgradeHistoryfindAll, findAllSorted, findAllSorted, findByClassIds, findByClassIdsFiltered, getPersistentClass, refresh, refreshEntity, remove, removeEntity, replicate, replicateEntity, save, saveEntity, saveRaw, saveRawEntitypublic CachingVersionHistoryDao(VersionHistoryDaoInternal delegate, com.atlassian.cache.CacheFactory cacheFactory, SynchronizationManager synchronizationManager)
public int getLatestBuildNumber()
VersionHistoryDaoIf 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.
getLatestBuildNumber in interface VersionHistoryDaopublic void addBuildToHistory(int buildNumber)
VersionHistoryDaoaddBuildToHistory in interface VersionHistoryDaopublic VersionHistory getVersionHistory(int buildNumber)
getVersionHistory in interface VersionHistoryDaopublic boolean tagBuild(int buildNumber,
String tag)
VersionHistoryDaotagBuild in interface VersionHistoryDaopublic List<VersionHistory> getFullUpgradeHistory()
getFullUpgradeHistory in interface VersionHistoryDaoInternalpublic int getFinalizedBuildNumber()
VersionHistoryDaoVersionHistoryDao.finalizeBuild(int).getFinalizedBuildNumber in interface VersionHistoryDaopublic void finalizeBuild(int buildNumber)
VersionHistoryDaofinalizeBuild in interface VersionHistoryDaoCopyright © 2003–2023 Atlassian. All rights reserved.