public class HibernateVersionHistoryDao extends HibernateObjectDao<VersionHistory> implements VersionHistoryDaoInternal
HibernateObjectDao.Cacheability
UNKNOWN_BUILD_NUMBER
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
|
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.
|
Class<VersionHistory> |
getPersistentClass()
Gets the type of
EntityObject this Dao works with. |
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
|
applyTransactionTimeout, applyTransactionTimeout, checkDaoConfig, createHibernateTemplate, findAll, findAllSorted, findAllSorted, findByClassIds, findByClassIdsFiltered, findNamedQuery, findNamedQuery, findNamedQuery, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findSingleObject, getByClassId, getCountResult, getHibernateTemplate, getSession, getSessionFactory, index, indexEntity, refresh, refreshEntity, reIndex, reIndexEntity, remove, removeEntity, replicate, replicateEntity, save, saveEntity, saveRaw, saveRawEntity, setEventPublisher, setHibernateTemplate, setIndexer, setSessionFactory, unIndex, unIndexEntity, uniqueResult, updateEntityModificationData, updateModificationData
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getUpgradeHistory
findAll, findAllSorted, findAllSorted, findByClassIds, findByClassIdsFiltered, refresh, refreshEntity, remove, removeEntity, replicate, replicateEntity, save, saveEntity, saveRaw, saveRawEntity
public Class<VersionHistory> getPersistentClass()
ObjectDaoInternal
EntityObject
this Dao works with.getPersistentClass
in interface ObjectDao
getPersistentClass
in interface ObjectDaoInternal<VersionHistory>
public int getLatestBuildNumber()
VersionHistoryDao
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.
getLatestBuildNumber
in interface VersionHistoryDao
public VersionHistory getVersionHistory(int buildNumber)
getVersionHistory
in interface VersionHistoryDao
public boolean tagBuild(int buildNumber, String tag)
tagBuild
in interface VersionHistoryDao
public int getFinalizedBuildNumber()
VersionHistoryDao
VersionHistoryDao.finalizeBuild(int)
.getFinalizedBuildNumber
in interface VersionHistoryDao
public void finalizeBuild(int buildNumber)
VersionHistoryDao
finalizeBuild
in interface VersionHistoryDao
public List<VersionHistory> getFullUpgradeHistory()
getFullUpgradeHistory
in interface VersionHistoryDaoInternal
public void addBuildToHistory(int buildNumber)
VersionHistoryDao
addBuildToHistory
in interface VersionHistoryDao
Copyright © 2003–2023 Atlassian. All rights reserved.
View cookie preferences