com.atlassian.confluence.themes.persistence.hibernate
Class DefaultPersistentDecoratorDao
java.lang.Object
org.springframework.orm.hibernate.support.HibernateDaoSupport
com.atlassian.confluence.themes.persistence.hibernate.DefaultPersistentDecoratorDao
- All Implemented Interfaces:
- org.springframework.beans.factory.InitializingBean, PersistentDecoratorDao
- public class DefaultPersistentDecoratorDao
- extends org.springframework.orm.hibernate.support.HibernateDaoSupport
- implements PersistentDecoratorDao
Fields inherited from class org.springframework.orm.hibernate.support.HibernateDaoSupport |
logger |
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 |
DefaultPersistentDecoratorDao
public DefaultPersistentDecoratorDao()
saveOrUpdate
public void saveOrUpdate(PersistentDecorator decorator)
- If a decorator already exists with a certain space key and name, we should try to update it
(and not try to create a new one just because the body field is different)
(a composite key has not been used for space key and name because spacek key can be null)
- Specified by:
saveOrUpdate
in interface PersistentDecoratorDao
- Parameters:
decorator
-
get
public PersistentDecorator get(String spaceKey,
String name)
- Specified by:
get
in interface PersistentDecoratorDao
getFromDB
public PersistentDecorator getFromDB(String spaceKey,
String name)
remove
public void remove(PersistentDecorator decorator)
- Specified by:
remove
in interface PersistentDecoratorDao
setCacheManager
public void setCacheManager(CacheManager cacheManager)
getCacheManager
public CacheManager getCacheManager()