com.ibm.commerce.order.calculation
Class TaxTypeCache

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

public class TaxTypeCache
extends Cache

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
The IBM copyright string.
See Also:
Constant Field Values
Constructor Detail

TaxTypeCache

public TaxTypeCache()
Constructor for TaxTypeCache.

TaxTypeCache

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

miss

protected java.lang.Object miss(java.lang.Object aKey)
                         throws ECException
Description copied from class: Cache
Returns the value a key is mapped to. This method is called by Cache.get(Object) when the mapping is not found in the cache and should be overridden by the implementing class.
Specified by:
miss in class Cache
Parameters:
aKey - the CalculationUsage/TaxType ID (Long).
Returns:
the TaxType (TaxTypeAccessBean).
Throws:
ECException
See Also:
Cache.miss(Object)