Class RelationCacheUnit
java.lang.Object
de.hybris.platform.cache.AbstractCacheUnit
de.hybris.platform.cache.relation.RelationCacheUnit
- All Implemented Interfaces:
CacheValueLoader
-
Field Summary
FieldsFields 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 -
Method Summary
Modifier and TypeMethodDescriptionprotected static voidclearCacheUnitForTenant(String tenantID) compute()Object[]static RelationCacheUnitstatic RelationCacheUnitcreateRelationCacheUnit(String relationId, String relationSide, PK sourcePK) intReturns the number of elements of the key that are elements of the invalidation topic key.getKey()getTable()toString()Methods inherited from class de.hybris.platform.cache.AbstractCacheUnit
addedToCacheBeforeComputation, equals, executeInvalidation, get, getCache, getKeyAsArray, getLoader, getTenantID, getWithoutCompute, getWithoutComputeIgnoringTransaction, hashCode, hintValue, invalidate, isCachingSupported, isValueKnown, load, removedFromCache, useCache
-
Field Details
-
INVALIDATION_DEPTH
public static final int INVALIDATION_DEPTH- See Also:
-
-
Constructor Details
-
RelationCacheUnit
-
-
Method Details
-
getRelationId
-
getRelationSideId
-
getParentPk
-
createRelationCacheUnit
public static RelationCacheUnit createRelationCacheUnit(String relationId, String relationSide, PK sourcePK) -
createRelationCacheUnit
-
clearCacheUnitForTenant
-
createKey
- Specified by:
createKeyin classAbstractCacheUnit
-
getInvalidationTopicDepth
public int getInvalidationTopicDepth()Description copied from class:AbstractCacheUnitReturns 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:
getInvalidationTopicDepthin classAbstractCacheUnit
-
compute
- Specified by:
computein classAbstractCacheUnit- Throws:
Exception
-
getCachedPKs
-
toString
- Overrides:
toStringin classAbstractCacheUnit
-
getTable
-
getKey
- Overrides:
getKeyin classAbstractCacheUnit
-