public abstract class JaloItemCacheUnit extends AbstractCacheUnit
| Modifier and Type | Class and Description |
|---|---|
static class |
Item.StillInCacheCallback.NotInTheCache |
| Modifier and Type | Field and Description |
|---|---|
static de.hybris.platform.jalo.Item.StillInCacheCallback |
NOT_IN_CACHE |
cacheKey, INVALIDATIONTYPE_CREATED, INVALIDATIONTYPE_MODIFIED, INVALIDATIONTYPE_MODIFIED_STRING, INVALIDATIONTYPE_REMOVED, INVALIDATIONTYPE_REMOVED_STRING, UNKNOWN| Modifier | Constructor and Description |
|---|---|
protected |
JaloItemCacheUnit(Cache cache,
PK pk) |
| Modifier and Type | Method and Description |
|---|---|
void |
addedToCacheBeforeComputation() |
abstract java.lang.Object |
compute() |
java.lang.Object[] |
createKey() |
java.lang.Object |
getCached()
get the cached object from this cache unit.
|
PK |
getPk() |
void |
invalidate(int invalidationType)
mark the Cache Unit to be invalidated upon commit invalidationType is one of the constants (modified or remove)
|
boolean |
isStillInCache() |
void |
removedFromCache() |
void |
setCacheBoundFalse() |
equals, executeInvalidation, get, getCache, getInvalidationTopicDepth, getKey, getKeyAsArray, getLoader, getTenantID, getWithoutCompute, getWithoutComputeIgnoringTransaction, hashCode, hintValue, isCachingSupported, isValueKnown, load, toString, useCachepublic static final de.hybris.platform.jalo.Item.StillInCacheCallback NOT_IN_CACHE
public PK getPk()
public java.lang.Object[] createKey()
createKey in class AbstractCacheUnitpublic abstract java.lang.Object compute()
compute in class AbstractCacheUnitpublic void invalidate(int invalidationType)
AbstractCacheUnitinvalidate in class AbstractCacheUnitpublic void setCacheBoundFalse()
public void removedFromCache()
removedFromCache in class AbstractCacheUnitpublic void addedToCacheBeforeComputation()
addedToCacheBeforeComputation in class AbstractCacheUnitpublic java.lang.Object getCached()
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.
public boolean isStillInCache()
Copyright © 2018 SAP SE. All Rights Reserved.