Class ItemCacheKey

java.lang.Object
de.hybris.platform.persistence.ItemCacheKey
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
ItemACLCacheKey, ItemPropertyCacheKey

public abstract class ItemCacheKey extends Object implements Cloneable
  • Constructor Details

    • ItemCacheKey

      public ItemCacheKey()
    • ItemCacheKey

      protected ItemCacheKey(Object value)
  • Method Details

    • getCopy

      public final ItemCacheKey getCopy()
      create a copy of this ItemCacheKey; must be public for hjmp
    • getValueInternal

      protected final Object getValueInternal()
    • getQualifier

      protected abstract Object getQualifier()
      Returns:
      an key for the CachedValue that is unique within the Item instance
    • isValid

      protected abstract boolean isValid(ItemEJB item)
      Returns:
      true if the cache key object is still valid for the given item. this is called each time when the cache key is retrieved.
    • dispose

      protected void dispose(boolean inRemove)
      called when this cache key object is remove from cache.
    • computeValue

      protected abstract Object computeValue(ItemEJB item)
      initially creates the cached data object for a specified item. this method is only called once for one ItemCacheKey instance.
    • getValueForReading

      protected final Object getValueForReading(ItemEJB item)
    • getValueForReadingIfAvailable

      protected final Object getValueForReadingIfAvailable(ItemEJB item)
    • getValueForModification

      protected final Object getValueForModification(ItemEJB item)
    • cloneValue

      protected abstract Object cloneValue(Object value)
      this method should clone a cached value object. it will be called during getCopy() only if this ItemCacheKey object already holds a cached value object.
    • createUnmodifiableViewOfValue

      protected abstract Object createUnmodifiableViewOfValue(Object value)
      it's ok to return the result of getValue in this method; otherwise, the returned object has to reflect subsequent changes of the object returned by getValue