public class HibernateSpaceGroupDao extends ConfluenceHibernateObjectDao implements SpaceGroupDao
HibernateObjectDao.Cacheability
Modifier and Type | Field and Description |
---|---|
static String |
CACHE_KEY |
cacheFactory, confluenceUserDao
NON_CACHEABLE
Constructor and Description |
---|
HibernateSpaceGroupDao() |
Modifier and Type | Method and Description |
---|---|
int |
findSpaceTotal(SpaceGroup spaceGroup)
Fast way to count Spaces in a SpaceGroup without loading them.
|
protected com.atlassian.core.bean.EntityObject |
getByClassId(long l)
Retrieve the object with a particular id from the database.
|
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(com.atlassian.core.bean.EntityObject entity)
Override the parent remove method as we want to remove the object out of the cache as well
|
findAllSorted, findLatestVersionsCount, findLatestVersionsCount, findLatestVersionsIterator, findLatestVersionsIterator, findNamedQueryStringParams, findNamedQueryStringParams, save, setCacheFactory, setConfluenceUserDao, updateModificationData
findAll, findAllSorted, findByClassIds, findNamedQuery, findNamedQuery, findNamedQuery, findNamedQuery, findNamedQuery, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findSingleObject, getCountResult, index, refresh, reIndex, replicate, save, saveRaw, setIndexer, unIndex, uniqueResult
checkDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
findAll, findAllSorted, findAllSorted, findByClassIds, refresh, replicate, save, saveRaw
public static final String CACHE_KEY
protected com.atlassian.core.bean.EntityObject getByClassId(long l)
HibernateObjectDao
getByClassId
in class HibernateObjectDao
l
- the id of the object to look uppublic SpaceGroup getById(long id)
getById
in interface SpaceGroupDao
public SpaceGroup getSpaceGroup(String spaceGroupKey)
getSpaceGroup
in interface SpaceGroupDao
public int findSpaceTotal(SpaceGroup spaceGroup)
SpaceGroupDao
findSpaceTotal
in interface SpaceGroupDao
public void remove(com.atlassian.core.bean.EntityObject entity)
remove
in interface ObjectDao
remove
in class HibernateObjectDao
entity
- the object to removepublic Class getPersistentClass()
getPersistentClass
in interface ObjectDao
Copyright © 2003–2015 Atlassian. All rights reserved.