com.atlassian.confluence.pages.templates.persistence.dao.hibernate
Class HibernatePageTemplateDao

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.ConfluenceHibernateObjectDao
                      extended by com.atlassian.confluence.pages.templates.persistence.dao.hibernate.HibernatePageTemplateDao
All Implemented Interfaces:
ObjectDao, VersionedObjectDao, PageTemplateDao, org.springframework.beans.factory.InitializingBean
Direct Known Subclasses:
MigrationPageTemplateDao

public class HibernatePageTemplateDao
extends ConfluenceHibernateObjectDao
implements PageTemplateDao

Version:
Revision: 1.1.1.1 $
Author:
Ara Abrahamian (ara_e_w@yahoo.com)

Field Summary
 
Fields inherited from class com.atlassian.confluence.core.persistence.hibernate.VersionedHibernateObjectDao
cacheFactory
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
HibernatePageTemplateDao()
           
 
Method Summary
 List findAllGlobalPageTemplates()
           
 List findLatestVersions()
           
 PageTemplate findPageTemplateByModuleCompleteKeyAndSpace(com.atlassian.plugin.ModuleCompleteKey moduleCompleteKey, Space space)
           
 PageTemplate findPageTemplateByName(String name)
          This will find a global page template with the given name
 PageTemplate findPageTemplateByNameAndSpace(String name, Space space)
          This will find a space page template with the given name and space
 List findPreviousVersions(long id)
           
 PageTemplate getById(long id)
           
 Class getPersistentClass()
           
 
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.VersionedObjectDao
findLatestVersionsCount, findLatestVersionsIterator, save
 
Methods inherited from interface bucket.core.persistence.ObjectDao
findAll, findAllSorted, findAllSorted, refresh, remove, replicate, save, saveRaw
 

Constructor Detail

HibernatePageTemplateDao

public HibernatePageTemplateDao()
Method Detail

getPersistentClass

public Class getPersistentClass()
Specified by:
getPersistentClass in interface ObjectDao

getById

public PageTemplate getById(long id)
Specified by:
getById in interface PageTemplateDao

findAllGlobalPageTemplates

public List findAllGlobalPageTemplates()
Specified by:
findAllGlobalPageTemplates in interface PageTemplateDao

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 interface PageTemplateDao

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 interface PageTemplateDao

findPageTemplateByModuleCompleteKeyAndSpace

public PageTemplate findPageTemplateByModuleCompleteKeyAndSpace(com.atlassian.plugin.ModuleCompleteKey moduleCompleteKey,
                                                                Space space)
Specified by:
findPageTemplateByModuleCompleteKeyAndSpace in interface PageTemplateDao

findPreviousVersions

public List findPreviousVersions(long id)
Specified by:
findPreviousVersions in interface PageTemplateDao

findLatestVersions

public List findLatestVersions()
Specified by:
findLatestVersions in interface PageTemplateDao


Copyright © 2003-2013 Atlassian. All Rights Reserved.