Class LegacyCacheKey
- java.lang.Object
-
- de.hybris.platform.regioncache.key.AbstractCacheKey
-
- de.hybris.platform.regioncache.key.legacy.LegacyCacheKey
-
- All Implemented Interfaces:
CacheKey
- Direct Known Subclasses:
AbstractLegacyRegistrableCacheKey,TestCacheKeyFactory.TestLegacyCacheKeyWithLoader
public class LegacyCacheKey extends AbstractCacheKey
Class wraps old fashion Object[] key to meaningful structure.
This class does not handle FlexibleSearch multi-keys: [ [ ... ], [ ... ], [ ... ] ].
Sanity check is done in the constructor. To handle multi-keys override RegistrableCacheKey (see FlexibleSearchCacheUnit).
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Object[]keyWe keep legacy key in order to support equals().-
Fields inherited from class de.hybris.platform.regioncache.key.AbstractCacheKey
cachedHash, tenantId, typeCode, valueType
-
-
Constructor Summary
Constructors Constructor Description LegacyCacheKey(java.lang.Object[] key, java.lang.String tenantId)LegacyCacheKey(java.lang.String typeCode, java.lang.Object[] key, java.lang.String tenantId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.Object[]getLegacyKey()inthashCode()HashCode has to be the same as in AbstractCacheUnitjava.lang.StringtoString()-
Methods inherited from class de.hybris.platform.regioncache.key.AbstractCacheKey
getCacheValueType, getTenantId, getTypeCode
-
-
-
-
Method Detail
-
getLegacyKey
public java.lang.Object[] getLegacyKey()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classAbstractCacheKey
-
hashCode
public int hashCode()
HashCode has to be the same as in AbstractCacheUnit- Overrides:
hashCodein classAbstractCacheKey
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classAbstractCacheKey
-
-