public abstract class VersionedHibernateObjectDao<T extends com.atlassian.core.bean.EntityObject> extends HibernateObjectDao implements VersionedObjectDao
HibernateObjectDao.Cacheability| Modifier and Type | Field and Description |
|---|---|
protected com.atlassian.cache.CacheFactory |
cacheFactory |
protected ConfluenceUserDao |
confluenceUserDao |
NON_CACHEABLE| Constructor and Description |
|---|
VersionedHibernateObjectDao() |
| Modifier and Type | Method and Description |
|---|---|
List<T> |
findAllSorted(String sortField)
Find all objects currently persisted of a particular type and sort results by named property.
|
long |
findLatestVersionsCount()
Returns the number of results for the latest versions
of the current persistent class.
|
protected long |
findLatestVersionsCount(String... statuses) |
Iterator<T> |
findLatestVersionsIterator()
Returns an iterator for the latest versions of the current
persistent class.
|
protected Iterator<T> |
findLatestVersionsIterator(String... statuses) |
protected List |
findNamedQueryStringParams(String queryName,
boolean cacheable,
LimitedRequest limitedRequest,
Object... paramNamesAndValues)
Deprecated.
since 5.8 Use the equivalent method that uses the
HibernateObjectDao.Cacheability enum instead of the cacheable boolean flag |
protected List |
findNamedQueryStringParams(String queryName,
HibernateObjectDao.Cacheability cacheability,
LimitedRequest limitedRequest,
Object... paramNamesAndValues)
This method here instead of in
HibernateObjectDao in bucket because we don't want to update bucket right now. |
void |
save(com.atlassian.core.bean.EntityObject objectToSave,
com.atlassian.core.bean.EntityObject previousVersion) |
void |
setCacheFactory(com.atlassian.cache.CacheFactory cacheFactory) |
void |
setConfluenceUserDao(ConfluenceUserDao confluenceUserDao) |
protected void |
updateModificationData(com.atlassian.core.bean.EntityObject objectToSave)
Perform any modifications that need to be done to an object every time it is
saved.
|
findAll, 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, uniqueResultcheckDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactoryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfindAll, findAllSorted, findByClassIds, getPersistentClass, refresh, remove, replicate, save, saveRawprotected com.atlassian.cache.CacheFactory cacheFactory
protected ConfluenceUserDao confluenceUserDao
public Iterator<T> findLatestVersionsIterator()
VersionedObjectDaofindLatestVersionsIterator in interface VersionedObjectDaopublic long findLatestVersionsCount()
VersionedObjectDaofindLatestVersionsCount in interface VersionedObjectDaoprotected long findLatestVersionsCount(String... statuses)
@Nonnull public List<T> findAllSorted(String sortField)
ObjectDaofindAllSorted in interface ObjectDaofindAllSorted in class HibernateObjectDaosortField - the name of the property to be sorted on. This should be null if no sorting is required.public void save(com.atlassian.core.bean.EntityObject objectToSave,
com.atlassian.core.bean.EntityObject previousVersion)
save in interface VersionedObjectDaoprotected void updateModificationData(com.atlassian.core.bean.EntityObject objectToSave)
HibernateObjectDaoupdateModificationData in class HibernateObjectDaoobjectToSave - the object that is about to be saved@Deprecated protected List findNamedQueryStringParams(String queryName, boolean cacheable, LimitedRequest limitedRequest, Object... paramNamesAndValues)
HibernateObjectDao.Cacheability enum instead of the cacheable boolean flagprotected List findNamedQueryStringParams(String queryName, HibernateObjectDao.Cacheability cacheability, LimitedRequest limitedRequest, Object... paramNamesAndValues)
HibernateObjectDao in bucket because we don't want to update bucket right now.public void setCacheFactory(com.atlassian.cache.CacheFactory cacheFactory)
public void setConfluenceUserDao(ConfluenceUserDao confluenceUserDao)
Copyright © 2003–2016 Atlassian. All rights reserved.