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. |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
COPYRIGHT
public static final java.lang.String COPYRIGHT
- The IBM copyright notice field.
- See Also:
- Constant Field Values
CodeCache
public CodeCache()
- Constructor for CodeCache.
CodeCache
public CodeCache(int anMaxSize)
- Constructor for CodeCache.
- Parameters:
- anMaxSize - the maximum size of the cache.
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
Feedback
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.