Class HibernatePageTemplateDao
- java.lang.Object
-
- org.springframework.dao.support.DaoSupport
-
- com.atlassian.confluence.core.persistence.hibernate.HibernateObjectDao<T>
-
- com.atlassian.confluence.core.persistence.hibernate.VersionedHibernateObjectDao<T>
-
- com.atlassian.confluence.core.persistence.hibernate.ConfluenceHibernateObjectDao<PageTemplate>
-
- com.atlassian.confluence.pages.templates.persistence.dao.hibernate.HibernatePageTemplateDao
-
- All Implemented Interfaces:
ObjectDao
,VersionedObjectDao<PageTemplate>
,ObjectDaoInternal<PageTemplate>
,VersionedObjectDaoInternal<PageTemplate>
,PageTemplateDao
,org.springframework.beans.factory.InitializingBean
- Direct Known Subclasses:
MigrationPageTemplateDao
public class HibernatePageTemplateDao extends ConfluenceHibernateObjectDao<PageTemplate> implements PageTemplateDao
- Version:
- Revision: 1.1.1.1 $
- Author:
- Ara Abrahamian (ara_e_w@yahoo.com)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.atlassian.confluence.core.persistence.hibernate.HibernateObjectDao
HibernateObjectDao.Cacheability
-
-
Field Summary
-
Fields inherited from class com.atlassian.confluence.core.persistence.hibernate.VersionedHibernateObjectDao
cacheFactory, confluenceUserDao
-
-
Constructor Summary
Constructors Constructor Description HibernatePageTemplateDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List
findAllGlobalPageTemplates()
List<PageTemplate>
findBySpace(Space space)
PageTemplate
findCustomisedPluginTemplate(PluginTemplateReference pluginTemplateReference)
List
findLatestVersions()
PageTemplate
findPageTemplateByName(String name)
This will find a global page template with the given namePageTemplate
findPageTemplateByNameAndSpace(String name, Space space)
This will find a space page template with the given name and spaceList
findPreviousVersions(long id)
PageTemplate
getById(long id)
Class
getPersistentClass()
Gets the type ofEntityObject
this Dao works with.-
Methods inherited from class com.atlassian.confluence.core.persistence.hibernate.VersionedHibernateObjectDao
findAllSorted, findLatestVersionsCount, findLatestVersionsCount, findLatestVersionsIterator, findLatestVersionsIterator, findNamedQueryStringParams, findNamedQueryStringParams, save, saveEntity, setCacheFactory, setConfluenceUserDao, updateEntityModificationData, updateModificationData
-
Methods inherited from class com.atlassian.confluence.core.persistence.hibernate.HibernateObjectDao
applyTransactionTimeout, applyTransactionTimeout, checkDaoConfig, createHibernateTemplate, findAll, findAllSorted, findByClassIds, findByClassIdsFiltered, findNamedQuery, findNamedQuery, findNamedQuery, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findSingleObject, getByClassId, getCountResult, getHibernateTemplate, getSessionFactory, index, indexEntity, refresh, refreshEntity, reIndex, reIndexEntity, remove, removeEntity, replicate, replicateEntity, save, saveEntity, saveRaw, saveRawEntity, setEventPublisher, setHibernateTemplate, setIndexer, setSessionFactory, unIndex, unIndexEntity, uniqueResult
-
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.internal.persistence.ObjectDaoInternal
findAll, findAllSorted, findByClassIds, findByClassIdsFiltered, refresh, refreshEntity, remove, removeEntity, replicate, replicateEntity, save, saveEntity, saveRaw, saveRawEntity
-
Methods inherited from interface com.atlassian.confluence.core.persistence.VersionedObjectDao
findLatestVersionsCount, findLatestVersionsIterator, save
-
-
-
-
Method Detail
-
getPersistentClass
public Class getPersistentClass()
Description copied from interface:ObjectDaoInternal
Gets the type ofEntityObject
this Dao works with.- Specified by:
getPersistentClass
in interfaceObjectDao
- Specified by:
getPersistentClass
in interfaceObjectDaoInternal<PageTemplate>
- Returns:
- the type
-
getById
public PageTemplate getById(long id)
- Specified by:
getById
in interfacePageTemplateDao
-
findAllGlobalPageTemplates
public List findAllGlobalPageTemplates()
- Specified by:
findAllGlobalPageTemplates
in interfacePageTemplateDao
-
findPageTemplateByName
public PageTemplate findPageTemplateByName(String name)
Description copied from interface:PageTemplateDao
This will find a global page template with the given name- Specified by:
findPageTemplateByName
in interfacePageTemplateDao
-
findPageTemplateByNameAndSpace
public PageTemplate findPageTemplateByNameAndSpace(String name, Space space)
Description copied from interface:PageTemplateDao
This will find a space page template with the given name and space- Specified by:
findPageTemplateByNameAndSpace
in interfacePageTemplateDao
-
findCustomisedPluginTemplate
public PageTemplate findCustomisedPluginTemplate(PluginTemplateReference pluginTemplateReference)
- Specified by:
findCustomisedPluginTemplate
in interfacePageTemplateDao
-
findPreviousVersions
public List findPreviousVersions(long id)
- Specified by:
findPreviousVersions
in interfacePageTemplateDao
-
findLatestVersions
public List findLatestVersions()
- Specified by:
findLatestVersions
in interfacePageTemplateDao
-
findBySpace
public List<PageTemplate> findBySpace(Space space)
- Specified by:
findBySpace
in interfacePageTemplateDao
-
-