public class HibernateAbstractPageDao extends HibernateObjectDao implements AbstractPageDaoInternal
HibernateObjectDao.Cacheability
Constructor and Description |
---|
HibernateAbstractPageDao() |
Modifier and Type | Method and Description |
---|---|
int |
countStaleSharedDrafts()
Counting number of stale share draft in DB
|
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()
Gets the type of
EntityObject this Dao works with. |
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.
|
List<ContentEntityObject> |
getStaleSharedDrafts(LimitedRequest limitedRequest)
Get all stale shared drafts in the database.
|
applyTransactionTimeout, applyTransactionTimeout, checkDaoConfig, createHibernateTemplate, findAll, findAllSorted, findAllSorted, findByClassIds, findByClassIdsFiltered, findNamedQuery, findNamedQuery, findNamedQuery, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findSingleObject, getCountResult, getHibernateTemplate, getSession, getSessionFactory, index, indexEntity, refresh, refreshEntity, reIndex, reIndexEntity, remove, removeEntity, replicate, replicateEntity, save, saveEntity, saveRaw, saveRawEntity, setHibernateTemplate, setIndexer, setSessionFactory, unIndex, unIndexEntity, uniqueResult, updateEntityModificationData, 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 int countStaleSharedDrafts()
AbstractPageDaoInternal
countStaleSharedDrafts
in interface AbstractPageDaoInternal
public List<ContentEntityObject> getStaleSharedDrafts(LimitedRequest limitedRequest)
AbstractPageDaoInternal
getStaleSharedDrafts
in interface AbstractPageDaoInternal
limitedRequest
- limit number of object to returnpublic List<ContentEntityObject> getStaleSharedDrafts()
AbstractPageDao
getStaleSharedDrafts
in interface AbstractPageDao
public Class getPersistentClass()
ObjectDaoInternal
EntityObject
this Dao works with.getPersistentClass
in interface ObjectDao
getPersistentClass
in interface ObjectDaoInternal
Copyright © 2003–2020 Atlassian. All rights reserved.