Class JaloItemCacheUnit

    • Field Detail

      • NOT_IN_CACHE

        public static final de.hybris.platform.jalo.Item.StillInCacheCallback NOT_IN_CACHE
    • Constructor Detail

      • JaloItemCacheUnit

        protected JaloItemCacheUnit​(Cache cache,
                                    PK pk)
    • Method Detail

      • getPk

        public PK getPk()
      • invalidate

        public void invalidate​(int invalidationType)
        Description copied from class: AbstractCacheUnit
        mark the Cache Unit to be invalidated upon commit invalidationType is one of the constants (modified or remove)
        Overrides:
        invalidate in class AbstractCacheUnit
      • setCacheBoundFalse

        public void setCacheBoundFalse()
      • getCached

        public java.lang.Object getCached()
        get the cached object from this cache unit. if it is not yet computed, this method blocks until it's computed.

        helper method which does exactly the same as AbstractCacheUnit.get(), but catches the exception and throws a RuntimeException (JaloSystemException) instead. because of that you don't have to add a try/catch block in your code.

        Returns:
        the object
      • isStillInCache

        public boolean isStillInCache()