public class HibernateVersionHistoryDao extends HibernateObjectDao implements VersionHistoryDao
HibernateObjectDao.CacheabilityUNKNOWN_BUILD_NUMBERNON_CACHEABLE| Constructor and Description |
|---|
HibernateVersionHistoryDao() |
| 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
|
int |
getLatestBuildNumber()
Get the highest build number from the database.
|
Class |
getPersistentClass() |
List<VersionHistory> |
getUpgradeHistory(int start,
int maxResults)
Get the history of all the upgrades.
|
VersionHistory |
getVersionHistory(int buildNumber) |
boolean |
tagBuild(int buildNumber,
String tag)
We need to ensure that the checking and writing of the tag is atomic so as to prevent two or more nodes from writing the tag and reporting that it was set correctly
|
findAll, findAllSorted, findAllSorted, findByClassIds, findNamedQuery, findNamedQuery, findNamedQuery, findNamedQuery, findNamedQuery, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findSingleObject, getByClassId, getCountResult, index, refresh, reIndex, remove, replicate, save, saveRaw, setIndexer, unIndex, uniqueResult, updateModificationDatacheckDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactoryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfindAll, findAllSorted, findAllSorted, findByClassIds, refresh, remove, replicate, save, saveRawpublic Class getPersistentClass()
getPersistentClass in interface ObjectDaopublic 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 VersionHistory getVersionHistory(int buildNumber)
getVersionHistory in interface VersionHistoryDaopublic boolean tagBuild(int buildNumber,
String tag)
tagBuild in interface VersionHistoryDaopublic List<VersionHistory> getUpgradeHistory(int start, int maxResults)
VersionHistoryDaogetUpgradeHistory in interface VersionHistoryDaopublic void addBuildToHistory(int buildNumber)
VersionHistoryDaoaddBuildToHistory in interface VersionHistoryDaoCopyright © 2003–2016 Atlassian. All rights reserved.