java.lang.Object | +--com.ibm.commerce.order.calculation.Cache | +--com.ibm.commerce.order.calculation.TaxTypeCache
This class caches TaxTypes by CalculationUsage/TaxType ID.
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT The IBM copyright string. |
Fields inherited from class com.ibm.commerce.order.calculation. Cache |
DEFAULT_MAX_SIZE |
Constructor Summary | |
---|---|
TaxTypeCache() Constructor for TaxTypeCache. | |
TaxTypeCache(int anMaxSize) Constructor for TaxTypeCache. |
Method Summary | |
---|---|
protected
java.lang.Object |
miss(java.lang.Object aKey) Returns the value a key is mapped to. |
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
Constructor Detail |
---|
public TaxTypeCache()
public TaxTypeCache(int anMaxSize)
anMaxSize
- the maximum size of the cache.Method Detail |
---|
protected java.lang.Object miss(java.lang.Object aKey) throws ECException
Cache
Cache.get(Object)
when the mapping is not found in the cache
and should be overridden by the implementing class.
miss
in class
Cache
aKey
- the CalculationUsage/TaxType ID (Long).ECException
Cache.miss(Object)