|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.orm.hibernate.support.HibernateDaoSupport com.atlassian.hibernate.HibernateObjectDao com.atlassian.confluence.core.persistence.hibernate.HibernateVersionHistoryDao
Field Summary |
Fields inherited from class org.springframework.orm.hibernate.support.HibernateDaoSupport |
logger |
Fields inherited from interface com.atlassian.confluence.core.persistence.VersionHistoryDao |
PRE_UPGRADE_VERSION, UNKNOWN_BUILD_NUMBER |
Constructor Summary | |
HibernateVersionHistoryDao()
|
Method Summary | |
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()
|
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 |
Methods inherited from class org.springframework.orm.hibernate.support.HibernateDaoSupport |
afterPropertiesSet, closeSessionIfNecessary, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, initDao, setHibernateTemplate, setSessionFactory |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface bucket.core.persistence.ObjectDao |
findAll, findAllSorted, refresh, remove, replicate, save, saveRaw |
Constructor Detail |
public HibernateVersionHistoryDao()
Method Detail |
public Class getPersistentClass()
getPersistentClass
in interface ObjectDao
public int getLatestBuildNumber()
VersionHistoryDao
getLatestBuildNumber
in interface VersionHistoryDao
public VersionHistory getVersionHistory(int buildNumber)
getVersionHistory
in interface VersionHistoryDao
buildNumber
-
public boolean tagBuild(int buildNumber, String tag)
tagBuild
in interface VersionHistoryDao
public void addBuildToHistory(int buildNumber)
VersionHistoryDao
addBuildToHistory
in interface VersionHistoryDao
buildNumber
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |