com.atlassian.confluence.themes.persistence.hibernate
Class DefaultPersistentDecoratorDao

java.lang.Object
  extended byorg.springframework.orm.hibernate.support.HibernateDaoSupport
      extended bycom.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


Field Summary
 
Fields inherited from class org.springframework.orm.hibernate.support.HibernateDaoSupport
logger
 
Constructor Summary
DefaultPersistentDecoratorDao()
           
 
Method Summary
 PersistentDecorator get(String spaceKey, String name)
           
 CacheManager getCacheManager()
           
 PersistentDecorator getFromDB(String spaceKey, String name)
           
 void remove(PersistentDecorator decorator)
           
 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)
 void setCacheManager(CacheManager cacheManager)
           
 
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
 

Constructor Detail

DefaultPersistentDecoratorDao

public DefaultPersistentDecoratorDao()
Method Detail

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()


Confluence is developed by Atlassian.