Class VersionedHibernateObjectDao<T extends ConfluenceEntityObject & Versioned>
java.lang.Object
org.springframework.dao.support.DaoSupport
com.atlassian.confluence.core.persistence.hibernate.HibernateObjectDao<T>
com.atlassian.confluence.core.persistence.hibernate.ConfluenceHibernateObjectDao<T>
com.atlassian.confluence.core.persistence.hibernate.VersionedHibernateObjectDao<T>
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean
- Direct Known Subclasses:
AbstractHibernateAttachmentDao
,ContentEntityObjectHibernateDao
,DefaultContentDao
,HibernateBlogPostDao
,HibernateCommentDao
,HibernatePageDao
,HibernatePageTemplateDao
,HibernatePersonalInformationDao
,PluginContentHibernateDao
public abstract class VersionedHibernateObjectDao<T extends ConfluenceEntityObject & Versioned>
extends ConfluenceHibernateObjectDao<T>
-
Nested Class Summary
Nested classes/interfaces inherited from class com.atlassian.confluence.core.persistence.hibernate.HibernateObjectDao
HibernateObjectDao.Cacheability
-
Field Summary
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
applyChildVersioningPolicy
(Versioned previousVersioned, Versioned updatedVersioned) findAllSorted
(String sortField) protected long
findLatestVersionsCount
(String... statuses) findLatestVersionsIterator
(String... statuses) protected List
findNamedQueryStringParams
(String queryName, boolean cacheable, LimitedRequest limitedRequest, Object... paramNamesAndValues) Deprecated.protected List
findNamedQueryStringParams
(String queryName, HibernateObjectDao.Cacheability cacheability, LimitedRequest limitedRequest, Object... paramNamesAndValues) This method here instead of inHibernateObjectDao
in bucket because we don't want to update bucket right now.protected void
Remove an object from the databasefinal void
Methods inherited from class com.atlassian.confluence.core.persistence.hibernate.ConfluenceHibernateObjectDao
updateModificationData
Methods inherited from class com.atlassian.confluence.core.persistence.hibernate.HibernateObjectDao
applyTransactionTimeout, applyTransactionTimeout, checkDaoConfig, createHibernateTemplate, findAll, findAllSorted, findNamedQuery, findNamedQuery, findNamedQuery, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findSingleObject, getByClassId, getCountResult, getHibernateTemplate, getPersistentClass, getSessionFactory, publishEvent, reIndex, save, saveEntity, saveRaw, setHibernateTemplate, setSessionFactory, uniqueResult
Methods inherited from class org.springframework.dao.support.DaoSupport
afterPropertiesSet, initDao
-
Constructor Details
-
VersionedHibernateObjectDao
public VersionedHibernateObjectDao()
-
-
Method Details
-
findLatestVersionsIterator
-
findLatestVersionsIterator
-
findLatestVersionsCount
-
findAllSorted
- Overrides:
findAllSorted
in classHibernateObjectDao<T extends ConfluenceEntityObject & Versioned>
-
save
-
applyChildVersioningPolicy
-
remove
Description copied from class:HibernateObjectDao
Remove an object from the database- Overrides:
remove
in classHibernateObjectDao<T extends ConfluenceEntityObject & Versioned>
- Parameters:
entity
- the object to remove
-
findNamedQueryStringParams
@Deprecated protected List findNamedQueryStringParams(String queryName, boolean cacheable, LimitedRequest limitedRequest, Object... paramNamesAndValues) Deprecated.since 5.8 Use the equivalent method that uses theHibernateObjectDao.Cacheability
enum instead of the cacheable boolean flag -
findNamedQueryStringParams
protected List findNamedQueryStringParams(String queryName, HibernateObjectDao.Cacheability cacheability, LimitedRequest limitedRequest, Object... paramNamesAndValues) This method here instead of inHibernateObjectDao
in bucket because we don't want to update bucket right now.
-
HibernateObjectDao.Cacheability
enum instead of the cacheable boolean flag