CachingPersistentDecoratorDao
@Deprecated public class DefaultPersistentDecoratorDao extends org.springframework.orm.hibernate.support.HibernateDaoSupport implements PersistentDecoratorDao, PersistentDecoratorCachePrimer.Primeable
Constructor and Description |
---|
DefaultPersistentDecoratorDao()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
PersistentDecorator |
get(String spaceKey,
String name)
Deprecated.
|
com.atlassian.cache.CacheFactory |
getCacheFactory()
Deprecated.
|
PersistentDecorator |
getFromDB(String spaceKey,
String name)
Deprecated.
|
void |
prime()
Deprecated.
Primes cache
|
void |
remove(PersistentDecorator decorator)
Deprecated.
|
void |
saveOrUpdate(PersistentDecorator decorator)
Deprecated.
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)
Deprecated.
|
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.