public abstract class ItemCacheKey
extends java.lang.Object
implements java.lang.Cloneable
ItemEJB.getCachedValueForModification(de.hybris.platform.persistence.ItemCacheKey) and ItemEJB.getCachedValueForReading(de.hybris.platform.persistence.ItemCacheKey)| Modifier | Constructor and Description |
|---|---|
|
ItemCacheKey() |
protected |
ItemCacheKey(java.lang.Object value) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract java.lang.Object |
cloneValue(java.lang.Object value)
this method should clone a cached value object.
|
protected abstract java.lang.Object |
computeValue(ItemEJB item)
initially creates the cached data object for a specified item.
|
protected abstract java.lang.Object |
createUnmodifiableViewOfValue(java.lang.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 java.lang.Object |
getQualifier() |
protected java.lang.Object |
getValueForModification(ItemEJB item) |
protected java.lang.Object |
getValueForReading(ItemEJB item) |
protected java.lang.Object |
getValueForReadingIfAvailable(ItemEJB item) |
protected java.lang.Object |
getValueInternal() |
protected abstract boolean |
isValid(ItemEJB item) |
public ItemCacheKey()
protected ItemCacheKey(java.lang.Object value)
public final ItemCacheKey getCopy()
protected final java.lang.Object getValueInternal()
protected abstract java.lang.Object getQualifier()
protected abstract boolean isValid(ItemEJB item)
protected void dispose(boolean inRemove)
protected abstract java.lang.Object computeValue(ItemEJB item)
protected final java.lang.Object getValueForReading(ItemEJB item)
protected final java.lang.Object getValueForReadingIfAvailable(ItemEJB item)
protected final java.lang.Object getValueForModification(ItemEJB item)
protected abstract java.lang.Object cloneValue(java.lang.Object value)
getCopy() only if this
ItemCacheKey object already holds a cached value object.protected abstract java.lang.Object createUnmodifiableViewOfValue(java.lang.Object value)
getValue in this method; otherwise, the returned object has to
reflect subsequent changes of the object returned by getValueCopyright © 2018 SAP SE. All Rights Reserved.