public class HibernateAbstractPageDao extends HibernateObjectDao implements AbstractPageDao
HibernateObjectDao.CacheabilitylogNON_CACHEABLE| Constructor and Description |
|---|
HibernateAbstractPageDao() |
| Modifier and Type | Method and Description |
|---|---|
AbstractPage |
getAbstractPageById(long id)
|
List<AbstractPage> |
getAbstractPageByIds(Iterable<Long> ids)
Retrieves a list of
AbstractPage for the list of id |
protected AbstractPage |
getByClassId(long id)
Retrieve the object with a particular id from the database.
|
int |
getCountOfLatestXhtmlContent(long endContentId)
Count the number of AbstractPages that have an ID lower than the specified ID, excluding older versions.
|
long |
getHighestCeoId()
Get the highest content ID in the database, excluding older versions of content.
|
List<ContentEntityObject> |
getOrderedXhtmlContentFromContentId(long startContentId,
long endContentId,
int maxRows)
Gets the latest versions of AbstractPages between the given IDs limited by the specified number of rows.
|
Class |
getPersistentClass() |
List<ContentEntityObject> |
getPreviousVersionsOfPageWithTaskId(long pageId,
long taskId,
int maxRows)
Get previous versions of a CEO that contain the given task ID sorted by versions in descending order.
|
List<ContentEntityObject> |
getStaleSharedDrafts()
Get all stale shared drafts in the database.
|
applyTransactionTimeout, applyTransactionTimeout, checkDaoConfig, createHibernateTemplate, findAll, findAllSorted, 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, getCountResult, getHibernateTemplate, getSession, getSessionFactory, index, refresh, reIndex, remove, replicate, save, saveRaw, setHibernateTemplate, setIndexer, setSessionFactory, unIndex, uniqueResult, updateModificationDataprotected AbstractPage getByClassId(long id)
HibernateObjectDaogetByClassId in class HibernateObjectDaoid - the id of the object to look uppublic AbstractPage getAbstractPageById(long id)
getAbstractPageById in interface AbstractPageDaoPage or BlogPost (current subclasses of AbstractPage). Null if no result could be found.public List<AbstractPage> getAbstractPageByIds(Iterable<Long> ids)
AbstractPageDaoAbstractPage for the list of idgetAbstractPageByIds in interface AbstractPageDaopublic List<ContentEntityObject> getOrderedXhtmlContentFromContentId(long startContentId, long endContentId, int maxRows)
AbstractPageDaogetOrderedXhtmlContentFromContentId in interface AbstractPageDaostartContentId - The minimum IDendContentId - The maximum IDmaxRows - The maximum number of rows to returnpublic long getHighestCeoId()
AbstractPageDaogetHighestCeoId in interface AbstractPageDaopublic List<ContentEntityObject> getPreviousVersionsOfPageWithTaskId(long pageId, long taskId, int maxRows)
AbstractPageDaogetPreviousVersionsOfPageWithTaskId in interface AbstractPageDaopageId - The ID of the latest version of the pagetaskId - The task ID to look for in previous versionsmaxRows - The maximum number of previous versions to returnpublic int getCountOfLatestXhtmlContent(long endContentId)
AbstractPageDaogetCountOfLatestXhtmlContent in interface AbstractPageDaoendContentId - The maximum IDpublic List<ContentEntityObject> getStaleSharedDrafts()
AbstractPageDaogetStaleSharedDrafts in interface AbstractPageDaopublic Class getPersistentClass()
getPersistentClass in interface ObjectDaoCopyright © 2003–2017 Atlassian. All rights reserved.