Class AbstractLegacyRegistrableCacheKey<T>
- java.lang.Object
-
- de.hybris.platform.regioncache.key.AbstractCacheKey
-
- de.hybris.platform.regioncache.key.legacy.LegacyCacheKey
-
- de.hybris.platform.regioncache.key.legacy.AbstractLegacyRegistrableCacheKey<T>
-
- All Implemented Interfaces:
CacheKey
,RegistrableCacheKey
- Direct Known Subclasses:
C2LManager.C2LCacheKey
,FinderResult.FinderResultCacheKey
,JaloTypeCacheUnit.JaloTypeCacheKey
public abstract class AbstractLegacyRegistrableCacheKey<T> extends LegacyCacheKey implements RegistrableCacheKey
Registrable legacy key abstraction for region cache
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.regioncache.key.legacy.LegacyCacheKey
key
-
Fields inherited from class de.hybris.platform.regioncache.key.AbstractCacheKey
cachedHash, tenantId, typeCode, valueType
-
-
Constructor Summary
Constructors Constructor Description AbstractLegacyRegistrableCacheKey(java.lang.Object[] key, java.lang.String tenantId)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object object)
This has to be identical as in AbstractCacheUnitlong[]
getDependentTypeGenerations()
gets last versions of the corresponding type fromRegistrableCacheKey.getDependentTypes()
abstract T[]
getDependentTypes()
All registrable units should define dependent types.
In case of invalidation of one of the dependent type registrable cache unit gets invalidated too.java.lang.Object
getTypeCode()
Gets code from typesystem.int
hashCode()
This has to be identical as in AbstractCacheUnitvoid
setDependentTypeGenerations(long[] dependentTypeGeneration)
lazily loaded generation-
Methods inherited from class de.hybris.platform.regioncache.key.legacy.LegacyCacheKey
getLegacyKey, toString
-
Methods inherited from class de.hybris.platform.regioncache.key.AbstractCacheKey
getCacheValueType, getTenantId
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface de.hybris.platform.regioncache.key.CacheKey
getCacheValueType, getTenantId
-
-
-
-
Method Detail
-
getTypeCode
public java.lang.Object getTypeCode()
Description copied from class:AbstractCacheKey
Gets code from typesystem.- Specified by:
getTypeCode
in interfaceCacheKey
- Overrides:
getTypeCode
in classAbstractCacheKey
-
setDependentTypeGenerations
public void setDependentTypeGenerations(long[] dependentTypeGeneration)
Description copied from interface:RegistrableCacheKey
lazily loaded generation- Specified by:
setDependentTypeGenerations
in interfaceRegistrableCacheKey<T>
-
getDependentTypeGenerations
public long[] getDependentTypeGenerations()
Description copied from interface:RegistrableCacheKey
gets last versions of the corresponding type fromRegistrableCacheKey.getDependentTypes()
- Specified by:
getDependentTypeGenerations
in interfaceRegistrableCacheKey<T>
-
hashCode
public final int hashCode()
This has to be identical as in AbstractCacheUnit- Overrides:
hashCode
in classLegacyCacheKey
-
getDependentTypes
public abstract T[] getDependentTypes()
Description copied from interface:RegistrableCacheKey
All registrable units should define dependent types.
In case of invalidation of one of the dependent type registrable cache unit gets invalidated too.- Specified by:
getDependentTypes
in interfaceRegistrableCacheKey<T>
-
equals
public final boolean equals(java.lang.Object object)
This has to be identical as in AbstractCacheUnit- Overrides:
equals
in classLegacyCacheKey
-
-