com.ibm.commerce.order.calculation
Class CodeDescriptionCache

java.lang.Object
  |
  +--com.ibm.commerce.order.calculation.Cache
        |
        +--com.ibm.commerce.order.calculation.CodeDescriptionCache

public class CodeDescriptionCache
extends Cache

A class that caches calculation codes descriptions by calculation code ID. This class essentially caches the CALCODEDSC table, with CALCODE_ID as the index.


Field Summary
static java.lang.String COPYRIGHT
          The IBM copyright notice field..
 
Fields inherited from class com.ibm.commerce.order.calculation. Cache
DEFAULT_MAX_SIZE
 
Constructor Summary
CodeDescriptionCache()
          Constructor for CodeDescriptionCache.
CodeDescriptionCache(int anMaxSize)
          Constructor for CodeDescriptionCache.
 
Method Summary
protected  java.lang.Object miss(java.lang.Object aKey)
          Returns the descriptions of a calculation code.
 
Methods inherited from class com.ibm.commerce.order.calculation. Cache
clear, get, getSize, remove, setMaxSize, setSize, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail
public static final java.lang.String COPYRIGHT
The IBM copyright notice field..
See Also:
Constant Field Values
Constructor Detail

CodeDescriptionCache

public CodeDescriptionCache()
Constructor for CodeDescriptionCache.

CodeDescriptionCache

public CodeDescriptionCache(int anMaxSize)
Constructor for CodeDescriptionCache.
Parameters:
anMaxSize - the maximum size of the cache.
Method Detail

miss

protected java.lang.Object miss(java.lang.Object aKey)
                         throws ECException
Returns the descriptions of a calculation code.
Specified by:
miss in class Cache
Parameters:
aKey - the calculation code ID (class: Integer).
Returns:
the descriptions. Key: language ID (class: Integer). Value: description (class: String).
Throws:
ECException