public abstract class VersionedHibernateObjectDao<T extends EntityObject> extends HibernateObjectDao implements VersionedObjectDao
HibernateObjectDao.Cacheability| Modifier and Type | Field and Description | 
|---|---|
| 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,
                          LimitedRequest limitedRequest,
                          Object... paramNamesAndValues)Deprecated. 
 use  Session.createNamedQuery(String, Class) | 
| void | save(EntityObject objectToSave,
    EntityObject previousVersion) | 
| void | setConfluenceUserDao(ConfluenceUserDao confluenceUserDao)Deprecated. 
 since 6.0. Subclasses should implement this themselves. | 
| protected void | updateModificationData(EntityObject objectToSave)Perform any modifications that need to be done to an object every time it is
 saved. | 
applyTransactionTimeout, applyTransactionTimeout, checkDaoConfig, createHibernateTemplate, findAll, findAllSorted, findByClassIds, findNamedQuery, findNamedQuery, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findSingleObject, getByClassId, getCountResult, getHibernateTemplate, getSession, getSessionFactory, index, refresh, reIndex, remove, replicate, save, saveRaw, setHibernateTemplate, setIndexer, setSessionFactory, unIndex, uniqueResultclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfindAll, findAllSorted, findByClassIds, findByClassIds, getPersistentClass, refresh, remove, replicate, save, saveRawprotected 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(EntityObject objectToSave, EntityObject previousVersion)
save in interface VersionedObjectDaoprotected void updateModificationData(EntityObject objectToSave)
HibernateObjectDaoupdateModificationData in class HibernateObjectDaoobjectToSave - the object that is about to be saved@Deprecated protected List findNamedQueryStringParams(String queryName, LimitedRequest limitedRequest, Object... paramNamesAndValues)
Session.createNamedQuery(String, Class)@Deprecated public void setConfluenceUserDao(ConfluenceUserDao confluenceUserDao)
Copyright © 2003–2017 Atlassian. All rights reserved.