com.atlassian.confluence.content.persistence.hibernate
Class PluginContentHibernateDao

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.VersionedHibernateObjectDao
                  extended by com.atlassian.confluence.core.persistence.hibernate.ContentEntityObjectHibernateDao
                      extended by com.atlassian.confluence.content.persistence.hibernate.PluginContentHibernateDao
All Implemented Interfaces:
ObjectDao, CustomContentDao, ContentEntityObjectDao, VersionedObjectDao, org.springframework.beans.factory.InitializingBean

public class PluginContentHibernateDao
extends ContentEntityObjectHibernateDao
implements CustomContentDao, org.springframework.beans.factory.InitializingBean

Hibernate Implementation of the CustomContentDao


Field Summary
 
Fields inherited from class com.atlassian.confluence.core.persistence.hibernate.ContentEntityObjectHibernateDao
ONE_DAY
 
Fields inherited from class com.atlassian.confluence.core.persistence.hibernate.VersionedHibernateObjectDao
cacheFactory
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
PluginContentHibernateDao()
           
 
Method Summary
 Iterator<CustomContentEntityObject> findAllInSpace(long spaceId)
           
 Iterator<CustomContentEntityObject> findAllInSpace(String pluginModuleKey, long spaceId)
           
 Iterator<CustomContentEntityObject> findAllInSpaceWithAttachments(long spaceId)
           
 Iterator<CustomContentEntityObject> findAllInSpaceWithAttachments(String pluginModuleKey, long spaceId)
           
<T> Iterator<T>
findByQuery(ContentQuery<T> contentQuery, int offset, int maxResults)
           
 Iterator<CustomContentEntityObject> findCurrentInSpace(long spaceId, String pluginModuleKey, int offset, int maxResults, CustomContentManager.SortField sortField, CustomContentManager.SortOrder sortOrder)
           
 int findTotalInSpace(long spaceId, String pluginModuleKey)
           
 Class getPersistentClass()
           
 void setPluginAccessor(com.atlassian.plugin.PluginAccessor pluginAccessor)
           
 
Methods inherited from class com.atlassian.confluence.core.persistence.hibernate.ContentEntityObjectHibernateDao
countContentBySpaceIdAndStatus, findContentBySpaceIdAndStatus, findPreviousVersions, getAllCurrentEntities, getById, getContentAuthoredByUser, getFirstVersionAfter, getFirstVersionBefore, getLastEditedVersionsOf, getLockedContentBySpace, getObjectType, getRecentlyAddedEntities, getRecentlyModifiedEntities, getRecentlyModifiedEntities, getRecentlyModifiedEntitiesForUser, getRecentlyModifiedForChangeDigest, getTrashedContent, getVersion, getVersionHistorySummary
 
Methods inherited from class com.atlassian.confluence.core.persistence.hibernate.VersionedHibernateObjectDao
findAllSorted, findLatestVersionsCount, findLatestVersionsIterator, save, setCacheFactory, updateModificationData
 
Methods inherited from class com.atlassian.hibernate.HibernateObjectDao
findAll, 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
 
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
 
Methods inherited from interface com.atlassian.confluence.core.persistence.ContentEntityObjectDao
countContentBySpaceIdAndStatus, findContentBySpaceIdAndStatus, findPreviousVersions, getAllCurrentEntities, getById, getContentAuthoredByUser, getFirstVersionAfter, getFirstVersionBefore, getLastEditedVersionsOf, getLockedContentBySpace, getObjectType, getRecentlyAddedEntities, getRecentlyModifiedEntities, getRecentlyModifiedEntities, getRecentlyModifiedEntitiesForUser, getRecentlyModifiedForChangeDigest, getTrashedContent, getVersion, getVersionHistorySummary
 
Methods inherited from interface com.atlassian.confluence.core.persistence.VersionedObjectDao
findLatestVersionsCount, findLatestVersionsIterator, save
 
Methods inherited from interface bucket.core.persistence.ObjectDao
findAll, findAllSorted, findAllSorted, refresh, remove, replicate, save, saveRaw
 
Methods inherited from interface org.springframework.beans.factory.InitializingBean
afterPropertiesSet
 

Constructor Detail

PluginContentHibernateDao

public PluginContentHibernateDao()
Method Detail

getPersistentClass

public Class getPersistentClass()
Specified by:
getPersistentClass in interface ObjectDao
Overrides:
getPersistentClass in class ContentEntityObjectHibernateDao

setPluginAccessor

public void setPluginAccessor(com.atlassian.plugin.PluginAccessor pluginAccessor)

findByQuery

public <T> Iterator<T> findByQuery(ContentQuery<T> contentQuery,
                                   int offset,
                                   int maxResults)
Specified by:
findByQuery in interface CustomContentDao

findTotalInSpace

public int findTotalInSpace(long spaceId,
                            String pluginModuleKey)
Specified by:
findTotalInSpace in interface CustomContentDao

findCurrentInSpace

public Iterator<CustomContentEntityObject> findCurrentInSpace(long spaceId,
                                                              String pluginModuleKey,
                                                              int offset,
                                                              int maxResults,
                                                              CustomContentManager.SortField sortField,
                                                              CustomContentManager.SortOrder sortOrder)
Specified by:
findCurrentInSpace in interface CustomContentDao

findAllInSpaceWithAttachments

public Iterator<CustomContentEntityObject> findAllInSpaceWithAttachments(String pluginModuleKey,
                                                                         long spaceId)
Specified by:
findAllInSpaceWithAttachments in interface CustomContentDao

findAllInSpace

public Iterator<CustomContentEntityObject> findAllInSpace(String pluginModuleKey,
                                                          long spaceId)
Specified by:
findAllInSpace in interface CustomContentDao

findAllInSpaceWithAttachments

public Iterator<CustomContentEntityObject> findAllInSpaceWithAttachments(long spaceId)
Specified by:
findAllInSpaceWithAttachments in interface CustomContentDao

findAllInSpace

public Iterator<CustomContentEntityObject> findAllInSpace(long spaceId)
Specified by:
findAllInSpace in interface CustomContentDao


Copyright © 2003-2012 Atlassian. All Rights Reserved.