|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.dao.support.DaoSupport org.springframework.orm.hibernate.support.HibernateDaoSupport com.atlassian.hibernate.HibernateObjectDao com.atlassian.confluence.pages.persistence.dao.hibernate.HibernateAbstractPageDao
public class HibernateAbstractPageDao
Field Summary |
---|
Fields inherited from class com.atlassian.hibernate.HibernateObjectDao |
---|
log |
Fields inherited from class org.springframework.dao.support.DaoSupport |
---|
logger |
Constructor Summary | |
---|---|
HibernateAbstractPageDao()
|
Method Summary | |
---|---|
AbstractPage |
getAbstractPageById(long id)
Returns a Page or BlogPost depending on
whether a page id or blog post id is specified. |
java.util.List<AbstractPage> |
getAbstractPageByIds(java.lang.Iterable<java.lang.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. |
java.util.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. |
java.lang.Class |
getPersistentClass()
|
java.util.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. |
Methods inherited from class org.springframework.orm.hibernate.support.HibernateDaoSupport |
---|
checkDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory |
Methods inherited from class org.springframework.dao.support.DaoSupport |
---|
afterPropertiesSet, initDao |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HibernateAbstractPageDao()
Method Detail |
---|
protected AbstractPage getByClassId(long id)
HibernateObjectDao
getByClassId
in class HibernateObjectDao
id
- the id of the object to look up
public AbstractPage getAbstractPageById(long id)
Page
or BlogPost
depending on
whether a page id or blog post id is specified.
getAbstractPageById
in interface AbstractPageDao
Page
or BlogPost
(current subclasses of AbstractPage
). Null if no result could be found.public java.util.List<AbstractPage> getAbstractPageByIds(java.lang.Iterable<java.lang.Long> ids)
AbstractPageDao
AbstractPage
for the list of id
getAbstractPageByIds
in interface AbstractPageDao
public java.util.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 return
public long getHighestCeoId()
AbstractPageDao
getHighestCeoId
in interface AbstractPageDao
public java.util.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 return
public int getCountOfLatestXhtmlContent(long endContentId)
AbstractPageDao
getCountOfLatestXhtmlContent
in interface AbstractPageDao
endContentId
- The maximum ID
public java.lang.Class getPersistentClass()
getPersistentClass
in interface ObjectDao
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |