com.atlassian.confluence.themes.persistence.hibernate
Class DefaultPersistentDecoratorDao
java.lang.Object
org.springframework.dao.support.DaoSupport
org.springframework.orm.hibernate.support.HibernateDaoSupport
com.atlassian.confluence.themes.persistence.hibernate.DefaultPersistentDecoratorDao
- All Implemented Interfaces:
- PersistentDecoratorDao, org.springframework.beans.factory.InitializingBean
public class DefaultPersistentDecoratorDao
- extends org.springframework.orm.hibernate.support.HibernateDaoSupport
- implements PersistentDecoratorDao
Fields inherited from class org.springframework.dao.support.DaoSupport |
logger |
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 |
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(java.lang.String spaceKey,
java.lang.String name)
- Specified by:
get
in interface PersistentDecoratorDao
getFromDB
public PersistentDecorator getFromDB(java.lang.String spaceKey,
java.lang.String name)
remove
public void remove(PersistentDecorator decorator)
- Specified by:
remove
in interface PersistentDecoratorDao
setCacheFactory
public void setCacheFactory(com.atlassian.cache.CacheFactory cacheFactory)
getCacheFactory
public com.atlassian.cache.CacheFactory getCacheFactory()
Copyright © 2003-2014 Atlassian. All Rights Reserved.