com.atlassian.confluence.content.persistence.hibernate
Class PluginContentHibernateDao
java.lang.Object
org.springframework.dao.support.DaoSupport
org.springframework.orm.hibernate.support.HibernateDaoSupport
com.atlassian.hibernate.HibernateObjectDao
com.atlassian.confluence.core.persistence.hibernate.VersionedHibernateObjectDao
com.atlassian.confluence.core.persistence.hibernate.ContentEntityObjectHibernateDao
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
Fields inherited from class org.springframework.dao.support.DaoSupport |
logger |
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)
|
|
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, findHistoricalVersionsAfterVersion, findPreviousVersions, getAllCurrentEntities, getById, getContentAuthoredByUser, getFirstVersionAfter, getFirstVersionBefore, getLastEditedVersionsOf, getLockedContentBySpace, getObjectType, getOldestPageCreationDate, getRecentlyAddedEntities, getRecentlyModifiedEntities, getRecentlyModifiedEntities, getRecentlyModifiedEntitiesForUser, getRecentlyModifiedForChangeDigest, getTrashedContent, getVersion, getVersionHistorySummary |
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, uniqueResult |
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, findHistoricalVersionsAfterVersion, findPreviousVersions, getAllCurrentEntities, getById, getContentAuthoredByUser, getFirstVersionAfter, getFirstVersionBefore, getLastEditedVersionsOf, getLockedContentBySpace, getObjectType, getOldestPageCreationDate, getRecentlyAddedEntities, getRecentlyModifiedEntities, getRecentlyModifiedEntities, getRecentlyModifiedEntitiesForUser, getRecentlyModifiedForChangeDigest, getTrashedContent, getVersion, getVersionHistorySummary |
Methods inherited from interface org.springframework.beans.factory.InitializingBean |
afterPropertiesSet |
PluginContentHibernateDao
public PluginContentHibernateDao()
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