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

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.orm.hibernate.support.HibernateDaoSupport
          extended by 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


Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
DefaultPersistentDecoratorDao()
           
 
Method Summary
 PersistentDecorator get(java.lang.String spaceKey, java.lang.String name)
           
 com.atlassian.cache.CacheFactory getCacheFactory()
           
 PersistentDecorator getFromDB(java.lang.String spaceKey, java.lang.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 setCacheFactory(com.atlassian.cache.CacheFactory cacheFactory)
           
 
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
 

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