Package de.hybris.platform.jalo
Class Item.CachedSetter
- java.lang.Object
-
- de.hybris.platform.jalo.Item.CachedSetter
-
- Enclosing class:
- Item
public abstract class Item.CachedSetter extends java.lang.Object
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
CachedSetter()
Creates a setter clearing the whole jalo item cache.protected
CachedSetter(java.lang.Object key)
Creates a setter clearing a specified unlocalized jalo item cache entry.protected
CachedSetter(java.lang.Object key, boolean localized)
Creates a setter clearing a specified jalo item cache entry.protected
CachedSetter(java.lang.Object key, boolean localized, boolean invalidateOnRemovalOnly)
Creates a setter clearing a specified jalo item cache entry.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract java.lang.Object
compute(SessionContext ctx)
java.lang.Object
set()
java.lang.Object
set(SessionContext ctx)
-
-
-
Constructor Detail
-
CachedSetter
protected CachedSetter()
Creates a setter clearing the whole jalo item cache. only the invalidated-on-modification cache is cleared!
-
CachedSetter
protected CachedSetter(java.lang.Object key)
Creates a setter clearing a specified unlocalized jalo item cache entry. only entries of the invalidated-on-modification cache are cleared!- Parameters:
key
- the name of the cleared entry
-
CachedSetter
protected CachedSetter(java.lang.Object key, boolean localized)
Creates a setter clearing a specified jalo item cache entry. only entries of the invalidated-on-modification cache are cleared!- Parameters:
key
- the name of the cleared entrylocalized
- tells whether the entry is localized or not - localized entries have one value per language so the value for the current session language is cleared only
-
CachedSetter
protected CachedSetter(java.lang.Object key, boolean localized, boolean invalidateOnRemovalOnly)
Creates a setter clearing a specified jalo item cache entry.- Parameters:
key
- the name of the cleared entrylocalized
- tells whether the entry is localized or not - localized entries have one value per language so the value for the current session language is cleared onlyinvalidateOnRemovalOnly
- chooses a separate cache which is invalidated on item removal only - use with care !
-
-
Method Detail
-
set
public final java.lang.Object set() throws Item.JaloCachedComputationException
-
set
public final java.lang.Object set(SessionContext ctx) throws Item.JaloCachedComputationException
-
compute
protected abstract java.lang.Object compute(SessionContext ctx) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-