public abstract class ItemCacheKey extends Object implements Cloneable
ItemEJB.getCachedValueForModification(de.hybris.platform.persistence.ItemCacheKey) and ItemEJB.getCachedValueForReading(de.hybris.platform.persistence.ItemCacheKey)| Modifier | Constructor and Description |
|---|---|
|
ItemCacheKey() |
protected |
ItemCacheKey(Object value) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Object |
cloneValue(Object value)
this method should clone a cached value object.
|
protected abstract Object |
computeValue(ItemEJB item)
initially creates the cached data object for a specified item.
|
protected abstract Object |
createUnmodifiableViewOfValue(Object value)
it's ok to return the result of
getValue in this method; otherwise, the returned object has to
reflect subsequent changes of the object returned by getValue |
protected void |
dispose(boolean inRemove)
called when this cache key object is remove from cache.
|
ItemCacheKey |
getCopy()
create a copy of this ItemCacheKey; must be public for hjmp
|
protected abstract Object |
getQualifier() |
protected Object |
getValueForModification(ItemEJB item) |
protected Object |
getValueForReading(ItemEJB item) |
protected Object |
getValueForReadingIfAvailable(ItemEJB item) |
protected Object |
getValueInternal() |
protected abstract boolean |
isValid(ItemEJB item) |
public ItemCacheKey()
protected ItemCacheKey(Object value)
public final ItemCacheKey getCopy()
protected final Object getValueInternal()
protected abstract Object getQualifier()
protected abstract boolean isValid(ItemEJB item)
protected void dispose(boolean inRemove)
protected abstract Object computeValue(ItemEJB item)
protected abstract Object cloneValue(Object value)
getCopy() only if this
ItemCacheKey object already holds a cached value object.Copyright © 2017 SAP SE. All Rights Reserved.