public class DefaultPersistentDecoratorDao extends org.springframework.orm.hibernate.support.HibernateDaoSupport implements PersistentDecoratorDao, PersistentDecoratorCachePrimer.Primeable
Constructor and Description |
---|
DefaultPersistentDecoratorDao() |
Modifier and Type | Method and Description |
---|---|
PersistentDecorator |
get(String spaceKey,
String name) |
com.atlassian.cache.CacheFactory |
getCacheFactory() |
PersistentDecorator |
getFromDB(String spaceKey,
String name) |
void |
prime()
Primes cache
|
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) |
public void saveOrUpdate(PersistentDecorator decorator)
saveOrUpdate
in interface PersistentDecoratorDao
decorator
- public PersistentDecorator get(@Nullable String spaceKey, String name)
get
in interface PersistentDecoratorDao
public PersistentDecorator getFromDB(@Nullable String spaceKey, String name)
public void remove(PersistentDecorator decorator)
remove
in interface PersistentDecoratorDao
public void setCacheFactory(com.atlassian.cache.CacheFactory cacheFactory)
public com.atlassian.cache.CacheFactory getCacheFactory()
public void prime()
PersistentDecoratorCachePrimer.Primeable
prime
in interface PersistentDecoratorCachePrimer.Primeable
Copyright © 2003–2016 Atlassian. All rights reserved.