|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.dao.support.DaoSupport
org.springframework.orm.hibernate.support.HibernateDaoSupport
com.atlassian.hibernate.HibernateObjectDao
com.atlassian.confluence.core.persistence.hibernate.HibernateVersionHistoryDao
public class HibernateVersionHistoryDao
| Field Summary |
|---|
| Fields inherited from class org.springframework.dao.support.DaoSupport |
|---|
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. |
java.lang.Class |
getPersistentClass()
|
VersionHistory |
getVersionHistory(int buildNumber)
|
boolean |
tagBuild(int buildNumber,
java.lang.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 com.atlassian.hibernate.HibernateObjectDao |
|---|
findAll, findAllSorted, findNamedQuery, findNamedQuery, findNamedQuery, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findSingleObject, getByClassId, index, refresh, reIndex, remove, replicate, save, saveRaw, setIndexer, unIndex, updateModificationData |
| Methods inherited from class org.springframework.orm.hibernate.support.HibernateDaoSupport |
|---|
checkDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory |
| Methods inherited from class org.springframework.dao.support.DaoSupport |
|---|
afterPropertiesSet, initDao |
| 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 java.lang.Class getPersistentClass()
getPersistentClass in interface bucket.core.persistence.ObjectDaopublic int getLatestBuildNumber()
VersionHistoryDao
getLatestBuildNumber in interface VersionHistoryDaopublic VersionHistory getVersionHistory(int buildNumber)
getVersionHistory in interface VersionHistoryDao
public boolean tagBuild(int buildNumber,
java.lang.String tag)
tagBuild in interface VersionHistoryDaopublic void addBuildToHistory(int buildNumber)
VersionHistoryDao
addBuildToHistory in interface VersionHistoryDao
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||