|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.commerce.pricing.priceLists.PriceCacheAdapter
public class PriceCacheAdapter
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
class version string |
Constructor Summary | |
---|---|
PriceCacheAdapter()
|
Method Summary | |
---|---|
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()
|
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 |
setPriceListManager(PriceListManager pPriceListManager)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String CLASS_VERSION
Constructor Detail |
---|
public PriceCacheAdapter()
Method Detail |
---|
public void setPriceListManager(PriceListManager pPriceListManager)
public PriceListManager getPriceListManager()
public java.lang.Object getCacheElement(java.lang.Object pKey) throws java.lang.Exception
CacheAdapter
getCacheElement
in interface CacheAdapter
java.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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |