public class HibernateAbstractPageDao extends HibernateObjectDao implements AbstractPageDao
HibernateObjectDao.Cacheability
log
NON_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, updateModificationData
protected AbstractPage getByClassId(long id)
HibernateObjectDao
getByClassId
in class HibernateObjectDao
id
- the id of the object to look uppublic AbstractPage getAbstractPageById(long id)
getAbstractPageById
in interface AbstractPageDao
Page
or BlogPost
(current subclasses of AbstractPage
). Null if no result could be found.public List<AbstractPage> getAbstractPageByIds(Iterable<Long> ids)
AbstractPageDao
AbstractPage
for the list of idgetAbstractPageByIds
in interface AbstractPageDao
public List<ContentEntityObject> getOrderedXhtmlContentFromContentId(long startContentId, long endContentId, int maxRows)
AbstractPageDao
getOrderedXhtmlContentFromContentId
in interface AbstractPageDao
startContentId
- The minimum IDendContentId
- The maximum IDmaxRows
- The maximum number of rows to returnpublic long getHighestCeoId()
AbstractPageDao
getHighestCeoId
in interface AbstractPageDao
public List<ContentEntityObject> getPreviousVersionsOfPageWithTaskId(long pageId, long taskId, int maxRows)
AbstractPageDao
getPreviousVersionsOfPageWithTaskId
in interface AbstractPageDao
pageId
- 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)
AbstractPageDao
getCountOfLatestXhtmlContent
in interface AbstractPageDao
endContentId
- The maximum IDpublic List<ContentEntityObject> getStaleSharedDrafts()
AbstractPageDao
getStaleSharedDrafts
in interface AbstractPageDao
public Class getPersistentClass()
getPersistentClass
in interface ObjectDao
Copyright © 2003–2017 Atlassian. All rights reserved.