public class DefaultPersistentDecoratorDao extends org.springframework.orm.hibernate.support.HibernateDaoSupport implements PersistentDecoratorDao
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 |
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(String spaceKey, String name)
get
in interface PersistentDecoratorDao
public PersistentDecorator getFromDB(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()
Copyright © 2003–2015 Atlassian. All rights reserved.