Class ItemPropertyCacheKey
java.lang.Object
de.hybris.platform.persistence.ItemCacheKey
de.hybris.platform.persistence.property.ItemPropertyCacheKey
- All Implemented Interfaces:
PropertyOwner,Cloneable
- Direct Known Subclasses:
ItemLocalizedPropertyCacheKey,ItemOldPropertyCacheKey
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedItemPropertyCacheKey(PK itemPK) clone constructorprotectedItemPropertyCacheKey(EJBPropertyRowCache prc, PK itemPK) used by HJMP to pre-load unloc props cache - dont use elsewhere -
Method Summary
Modifier and TypeMethodDescriptionprotected Objectclone()protected ObjectcloneValue(Object value) this method should clone a cached value object.protected ObjectcomputeValue(ItemEJB item) initially creates the cached data object for a specified item.protected final Objectit's ok to return the result ofgetValuein this method; otherwise, the returned object has to reflect subsequent changes of the object returned by getValueprotected voiddispose(boolean inRemove) called when this cache key object is remove from cache.protected Stringprotected booleanfinal voidnotifyPropertyDataChanged(long ts) just to check that no changes are made on non-cloned cache keysMethods inherited from class de.hybris.platform.persistence.ItemCacheKey
getCopy, getValueForModification, getValueForReading, getValueForReadingIfAvailable, getValueInternal
-
Field Details
-
QUALI
-
itemPK
-
info
-
cloned
protected final boolean cloned
-
-
Constructor Details
-
ItemPropertyCacheKey
-
ItemPropertyCacheKey
-
ItemPropertyCacheKey
used by HJMP to pre-load unloc props cache - dont use elsewhere -
ItemPropertyCacheKey
clone constructor
-
-
Method Details
-
clone
- Overrides:
clonein classObject- Throws:
CloneNotSupportedException
-
getQualifier
- Specified by:
getQualifierin classItemCacheKey- Returns:
- an key for the CachedValue that is unique within the Item instance
-
isValid
- Specified by:
isValidin classItemCacheKey- Returns:
- true if the cache key object is still valid for the given item. this is called each time when the cache key is retrieved.
-
dispose
protected void dispose(boolean inRemove) Description copied from class:ItemCacheKeycalled when this cache key object is remove from cache.- Overrides:
disposein classItemCacheKey
-
computeValue
Description copied from class:ItemCacheKeyinitially creates the cached data object for a specified item. this method is only called once for one ItemCacheKey instance.- Specified by:
computeValuein classItemCacheKey
-
cloneValue
Description copied from class:ItemCacheKeythis method should clone a cached value object. it will be called duringItemCacheKey.getCopy()only if this ItemCacheKey object already holds a cached value object.- Specified by:
cloneValuein classItemCacheKey
-
createUnmodifiableViewOfValue
Description copied from class:ItemCacheKeyit's ok to return the result ofgetValuein this method; otherwise, the returned object has to reflect subsequent changes of the object returned by getValue- Specified by:
createUnmodifiableViewOfValuein classItemCacheKey
-
notifyPropertyDataChanged
public final void notifyPropertyDataChanged(long ts) just to check that no changes are made on non-cloned cache keys- Specified by:
notifyPropertyDataChangedin interfacePropertyOwner
-