com.atlassian.confluence.spaces.persistence.dao.hibernate
Class HibernateSpaceGroupDao

java.lang.Object
  extended byorg.springframework.orm.hibernate.support.HibernateDaoSupport
      extended bycom.atlassian.hibernate.HibernateObjectDao
          extended bybucket.core.persistence.hibernate.CachableHibernateObjectDao
              extended bycom.atlassian.confluence.core.persistence.hibernate.VersionedHibernateObjectDao
                  extended bycom.atlassian.confluence.core.persistence.hibernate.ConfluenceHibernateObjectDao
                      extended bycom.atlassian.confluence.spaces.persistence.dao.hibernate.HibernateSpaceGroupDao
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean, ObjectDao, SpaceGroupDao, VersionedObjectDao

public class HibernateSpaceGroupDao
extends ConfluenceHibernateObjectDao
implements SpaceGroupDao


Field Summary
 
Fields inherited from class com.atlassian.confluence.core.persistence.hibernate.VersionedHibernateObjectDao
log
 
Fields inherited from class bucket.core.persistence.hibernate.CachableHibernateObjectDao
cacheManager
 
Fields inherited from class org.springframework.orm.hibernate.support.HibernateDaoSupport
logger
 
Constructor Summary
HibernateSpaceGroupDao()
           
 
Method Summary
 int findSpaceTotal(SpaceGroup spaceGroup)
          Fast way to count Spaces in a SpaceGroup without loading them.
protected  EntityObject getByClassId(long l)
           
 SpaceGroup getById(long id)
           
 Class getPersistentClass()
           
 SpaceGroup getSpaceGroup(String spaceGroupKey)
          first tries to fetch the spaceGroup from the cache by space id if not, fetch it from database
 void remove(EntityObject entity)
          Override the parent remove method as we want to remove the object out of the cache as well
 
Methods inherited from class com.atlassian.confluence.core.persistence.hibernate.ConfluenceHibernateObjectDao
findByQuery
 
Methods inherited from class com.atlassian.confluence.core.persistence.hibernate.VersionedHibernateObjectDao
findAllSorted, findLatestVersionsCount, findLatestVersionsIterator, save, updateModificationData
 
Methods inherited from class bucket.core.persistence.hibernate.CachableHibernateObjectDao
setCacheManager
 
Methods inherited from class com.atlassian.hibernate.HibernateObjectDao
findAll, findNamedQuery, findNamedQuery, findNamedQuery, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findSingleObject, index, refresh, reIndex, replicate, save, saveRaw, setIndexer, unIndex
 
Methods inherited from class org.springframework.orm.hibernate.support.HibernateDaoSupport
afterPropertiesSet, closeSessionIfNecessary, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, initDao, setHibernateTemplate, setSessionFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface bucket.core.persistence.ObjectDao
findAll, findAllSorted, refresh, replicate, save, saveRaw
 

Constructor Detail

HibernateSpaceGroupDao

public HibernateSpaceGroupDao()
Method Detail

getByClassId

protected EntityObject getByClassId(long l)

getById

public SpaceGroup getById(long id)
Specified by:
getById in interface SpaceGroupDao

getSpaceGroup

public SpaceGroup getSpaceGroup(String spaceGroupKey)
first tries to fetch the spaceGroup from the cache by space id if not, fetch it from database

Specified by:
getSpaceGroup in interface SpaceGroupDao
Parameters:
spaceGroupKey -

findSpaceTotal

public int findSpaceTotal(SpaceGroup spaceGroup)
Description copied from interface: SpaceGroupDao
Fast way to count Spaces in a SpaceGroup without loading them.

Specified by:
findSpaceTotal in interface SpaceGroupDao
Returns:
returns the number of all spaces within a spaceGroup

remove

public void remove(EntityObject entity)
Override the parent remove method as we want to remove the object out of the cache as well

Specified by:
remove in interface ObjectDao
Parameters:
entity -

getPersistentClass

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


Confluence is developed by Atlassian.