com.atlassian.confluence.core.persistence.hibernate
Class BodyContentHibernateDao

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.orm.hibernate.support.HibernateDaoSupport
          extended by com.atlassian.hibernate.HibernateObjectDao
              extended by com.atlassian.confluence.core.persistence.hibernate.BodyContentHibernateDao
All Implemented Interfaces:
ObjectDao, BodyContentDao, org.springframework.beans.factory.InitializingBean

public class BodyContentHibernateDao
extends HibernateObjectDao
implements BodyContentDao

This DAO is used to support the migration of wiki formatted content to XHTML formatted. It will return the lowest level


Field Summary
 
Fields inherited from class com.atlassian.hibernate.HibernateObjectDao
log
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
BodyContentHibernateDao()
           
 
Method Summary
 java.util.List<BodyContent> getBodyContent(int startRow, int maxRows)
           
 int getBodyContentCount()
           
 java.lang.Class getPersistentClass()
           
 
Methods inherited from class com.atlassian.hibernate.HibernateObjectDao
findAll, findAllSorted, findAllSorted, findNamedQuery, findNamedQuery, findNamedQuery, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findSingleObject, getByClassId, getCountResult, index, refresh, reIndex, remove, replicate, save, saveRaw, setIndexer, unIndex, uniqueResult, updateModificationData
 
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

BodyContentHibernateDao

public BodyContentHibernateDao()
Method Detail

getPersistentClass

public java.lang.Class getPersistentClass()
Specified by:
getPersistentClass in interface ObjectDao

getBodyContentCount

public int getBodyContentCount()
Specified by:
getBodyContentCount in interface BodyContentDao
Returns:
the total number of BodyContent objects in Confluence. This includes all content types and all historical versions.

getBodyContent

public java.util.List<BodyContent> getBodyContent(int startRow,
                                                  int maxRows)
Specified by:
getBodyContent in interface BodyContentDao
Parameters:
startRow - the row to begin returning data from
maxRows - the maximum number of rows to return. This must be greater than 0
Returns:
the BodyContent objects found.


Copyright © 2003-2014 Atlassian. All Rights Reserved.