public class ItemPropertyCacheKey extends ItemCacheKey implements PropertyOwner
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
cloned |
protected TypeInfoMap |
info |
protected PK |
itemPK |
static String |
QUALI |
| Modifier | Constructor and Description |
|---|---|
protected |
ItemPropertyCacheKey(EJBPropertyRowCache preset) |
|
ItemPropertyCacheKey(EJBPropertyRowCache prc,
PK itemPK)
used by HJMP to pre-load unloc props cache - dont use elsewhere
|
protected |
ItemPropertyCacheKey(PK itemPK)
clone constructor
|
|
ItemPropertyCacheKey(TypeInfoMap info) |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
clone() |
protected Object |
cloneValue(Object value)
this method should clone a cached value object.
|
protected Object |
computeValue(ItemEJB item)
initially creates the cached data object for a specified item.
|
protected 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.
|
protected String |
getQualifier() |
protected boolean |
isValid(ItemEJB item) |
void |
notifyPropertyDataChanged(long ts)
just to check that no changes are made on non-cloned cache keys
|
getCopy, getValueForModification, getValueForReading, getValueForReadingIfAvailable, getValueInternalpublic static final String QUALI
protected PK itemPK
protected TypeInfoMap info
protected final boolean cloned
public ItemPropertyCacheKey(TypeInfoMap info)
protected ItemPropertyCacheKey(EJBPropertyRowCache preset)
public ItemPropertyCacheKey(EJBPropertyRowCache prc, PK itemPK)
protected ItemPropertyCacheKey(PK itemPK)
protected Object clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionprotected String getQualifier()
getQualifier in class ItemCacheKeyprotected boolean isValid(ItemEJB item)
isValid in class ItemCacheKeyprotected void dispose(boolean inRemove)
ItemCacheKeydispose in class ItemCacheKeyprotected Object computeValue(ItemEJB item)
ItemCacheKeycomputeValue in class ItemCacheKeyprotected Object cloneValue(Object value)
ItemCacheKeyItemCacheKey.getCopy() only if this
ItemCacheKey object already holds a cached value object.cloneValue in class ItemCacheKeyprotected final Object createUnmodifiableViewOfValue(Object value)
ItemCacheKeygetValue in this method; otherwise, the returned object has to
reflect subsequent changes of the object returned by getValuecreateUnmodifiableViewOfValue in class ItemCacheKeypublic final void notifyPropertyDataChanged(long ts)
notifyPropertyDataChanged in interface PropertyOwnerCopyright © 2017 SAP SE. All Rights Reserved.