public class CachingPersistentDecoratorDao extends Object implements PersistentDecoratorDao
PersistentDecoratorDao
which combines a cache with Hibernate.Constructor and Description |
---|
CachingPersistentDecoratorDao(org.hibernate.SessionFactory sessionFactory,
com.atlassian.cache.CacheFactory cacheFactory) |
Modifier and Type | Method and Description |
---|---|
@Nullable PersistentDecorator |
get(@Nullable String spaceKey,
String decoratorName) |
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)
|
public CachingPersistentDecoratorDao(org.hibernate.SessionFactory sessionFactory, com.atlassian.cache.CacheFactory cacheFactory)
public void saveOrUpdate(PersistentDecorator decorator)
saveOrUpdate
in interface PersistentDecoratorDao
public @Nullable PersistentDecorator get(@Nullable String spaceKey, String decoratorName)
get
in interface PersistentDecoratorDao
public void remove(PersistentDecorator decorator)
remove
in interface PersistentDecoratorDao
Copyright © 2003–2023 Atlassian. All rights reserved.