Package de.hybris.platform.jalo
Class Item.CachedSetter
java.lang.Object
de.hybris.platform.jalo.Item.CachedSetter
- Enclosing class:
- Item
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreates a setter clearing the whole jalo item cache.protectedCachedSetter(Object key) Creates a setter clearing a specified unlocalized jalo item cache entry.protectedCachedSetter(Object key, boolean localized) Creates a setter clearing a specified jalo item cache entry.protectedCachedSetter(Object key, boolean localized, boolean invalidateOnRemovalOnly) Creates a setter clearing a specified jalo item cache entry. -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract Objectcompute(SessionContext ctx) booleanprotected final Map<de.hybris.platform.jalo.Item.CacheableItemLogic,de.hybris.platform.jalo.Item.CacheEntry> protected final de.hybris.platform.jalo.Item.CacheableItemLogicgetKey(SessionContext ctx) inthashCode()protected final booleanprotected final booleannoLanguage(SessionContext ctx) final Objectset()final Objectset(SessionContext ctx) toString()
-
Constructor Details
-
CachedSetter
protected CachedSetter()Creates a setter clearing the whole jalo item cache. only the invalidated-on-modification cache is cleared! -
CachedSetter
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
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
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 Details
-
set
-
set
-
compute
- Throws:
Exception
-
toString
-
isLocalCachingSupported
protected final boolean isLocalCachingSupported() -
noLanguage
-
getKey
-
hashCode
public int hashCode() -
equals
-
getCacheMap
protected final Map<de.hybris.platform.jalo.Item.CacheableItemLogic,de.hybris.platform.jalo.Item.CacheEntry> getCacheMap()
-