Package de.hybris.platform.persistence
Class GenericBMPBean.GenericItemEntityStateCacheUnit
- java.lang.Object
-
- de.hybris.platform.cache.AbstractCacheUnit
-
- de.hybris.platform.persistence.GenericBMPBean.GenericItemEntityStateCacheUnit
-
- All Implemented Interfaces:
CacheValueLoader
- Enclosing class:
- GenericBMPBean
public static final class GenericBMPBean.GenericItemEntityStateCacheUnit extends AbstractCacheUnit
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.cache.AbstractCacheUnit
cacheKey, INVALIDATIONTYPE_CREATED, INVALIDATIONTYPE_MODIFIED, INVALIDATIONTYPE_MODIFIED_STRING, INVALIDATIONTYPE_REMOVED, INVALIDATIONTYPE_REMOVED_STRING, UNKNOWN
-
-
Constructor Summary
Constructors Constructor Description GenericItemEntityStateCacheUnit(Cache cache, PK pk, ItemDeployment depl)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
compute()
java.lang.Object[]
createKey()
de.hybris.platform.persistence.GenericBMPBean.GenericItemEntityState
getEntityState()
int
getInvalidationTopicDepth()
Returns the number of elements of the key that are elements of the invalidation topic key.void
hintEntityState(AbstractEntityState newState)
-
Methods inherited from class de.hybris.platform.cache.AbstractCacheUnit
addedToCacheBeforeComputation, equals, executeInvalidation, get, getCache, getKey, getKeyAsArray, getLoader, getTenantID, getWithoutCompute, getWithoutComputeIgnoringTransaction, hashCode, hintValue, invalidate, isCachingSupported, isValueKnown, load, removedFromCache, toString, useCache
-
-
-
-
Constructor Detail
-
GenericItemEntityStateCacheUnit
public GenericItemEntityStateCacheUnit(Cache cache, PK pk, ItemDeployment depl)
-
-
Method Detail
-
createKey
public java.lang.Object[] createKey()
- Specified by:
createKey
in classAbstractCacheUnit
-
getInvalidationTopicDepth
public int getInvalidationTopicDepth()
Description copied from class:AbstractCacheUnit
Returns the number of elements of the key that are elements of the invalidation topic key. This method must be implemented for all AbstractCacheUnits that are invalidated externally.- Overrides:
getInvalidationTopicDepth
in classAbstractCacheUnit
-
getEntityState
public de.hybris.platform.persistence.GenericBMPBean.GenericItemEntityState getEntityState() throws HJMPException
- Throws:
HJMPException
-
hintEntityState
public void hintEntityState(AbstractEntityState newState)
-
compute
public java.lang.Object compute()
- Specified by:
compute
in classAbstractCacheUnit
-
-