com.ibm.commerce.order.calculation
Class CodeCache

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

public class CodeCache
extends Cache

A class that caches calculation codes by calculation code ID. This class essentially caches the CALCODE 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
CodeCache()
          Constructor for CodeCache.
CodeCache(int anMaxSize)
          Constructor for CodeCache.
 
Method Summary
protected  java.lang.Object miss(java.lang.Object aKey)
          Returns the calculation code corresponding to a calculation code ID.
 
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

CodeCache

public CodeCache()
Constructor for CodeCache.

CodeCache

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

miss

protected java.lang.Object miss(java.lang.Object aKey)
                         throws ECException
Returns the calculation code corresponding to a calculation code ID.
Specified by:
miss in class Cache
Parameters:
aKey - the calculation code ID (class: Integer).
Returns:
the calculation code.
Throws:
ECException