public class PriceCacheAdapter extends java.lang.Object implements CacheAdapter
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
class version string
|
Constructor and Description |
---|
PriceCacheAdapter() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getCacheElement(java.lang.Object pKey)
Gets the element to be stored in the cache with the given key.
|
java.lang.Object[] |
getCacheElements(java.lang.Object[] pKeys)
Returns the array of elements corresponding to the given array of
keys.
|
int |
getCacheElementSize(java.lang.Object pElement,
java.lang.Object pKey)
Returns the approximate size in bytes of the given cache
element.
|
int |
getCacheKeySize(java.lang.Object pKey)
Returns the approximate size in bytes of the given cache key.
|
PriceListManager |
getPriceListManager() |
boolean |
isIgnoreFilterAdapter()
Returns property ignoreFilterAdapter.
|
void |
removeCacheElement(java.lang.Object pElement,
java.lang.Object pKey)
This method is called by the synchronized method Cache.remove to
allow the adapter to do any related clean up, if necessary, when
an element is removed from the cache.
|
void |
setIgnoreFilterAdapter(boolean pIgnoreFilterAdapter)
Sets property ignoreFilterAdapter.
|
void |
setPriceListManager(PriceListManager pPriceListManager) |
public void setPriceListManager(PriceListManager pPriceListManager)
public PriceListManager getPriceListManager()
public void setIgnoreFilterAdapter(boolean pIgnoreFilterAdapter)
public boolean isIgnoreFilterAdapter()
public java.lang.Object getCacheElement(java.lang.Object pKey) throws java.lang.Exception
CacheAdapter
getCacheElement
in interface CacheAdapter
pKey
- the key to get a value forjava.lang.Exception
- if some form of exception occurs while
attempting to retrieve the element (e.g., SQLException). Since
the type of exceptions possible depend upon the implementation of
the adapter, the interface allows for generic exceptions.public java.lang.Object[] getCacheElements(java.lang.Object[] pKeys) throws java.lang.Exception
CacheAdapter
getCacheElements
in interface CacheAdapter
java.lang.Exception
- if some form of exception occurs while
attempting to retrieve the elements (e.g., SQLException). Since
the type of exceptions possible depend upon the implementation of
the adapter, the interface allows for generic exceptions.public int getCacheKeySize(java.lang.Object pKey)
CacheAdapter
getCacheKeySize
in interface CacheAdapter
public int getCacheElementSize(java.lang.Object pElement, java.lang.Object pKey)
CacheAdapter
getCacheElementSize
in interface CacheAdapter
public void removeCacheElement(java.lang.Object pElement, java.lang.Object pKey)
CacheAdapter
removeCacheElement
in interface CacheAdapter