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[]
key
We 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 boolean
equals(java.lang.Object obj)
java.lang.Object[]
getLegacyKey()
int
hashCode()
HashCode has to be the same as in AbstractCacheUnitjava.lang.String
toString()
-
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:
toString
in classAbstractCacheKey
-
hashCode
public int hashCode()
HashCode has to be the same as in AbstractCacheUnit- Overrides:
hashCode
in classAbstractCacheKey
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classAbstractCacheKey
-
-