com.ibm.commerce.fulfillment.commands
Class JurisdictionGroupCache

java.lang.Object
  |
  +--com.ibm.commerce.order.calculation.Cache
        |
        +--com.ibm.commerce.fulfillment.commands.JurisdictionGroupCache
Direct Known Subclasses:
ShippingJurisdictionGroupCache

public abstract class JurisdictionGroupCache
extends Cache

This MRU cache caches JurisdictionIds by JurisdictionGroupId.


Nested Class Summary
static class JurisdictionGroupCache.Key
          Key class of JurisdictionGroupCache.
 
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
JurisdictionGroupCache()
          Constructs a JurisdictionGroupCache with the default cache size.
JurisdictionGroupCache(int anCacheSize)
          Constructs a JurisdictionGroupCache with the specified cache size.
 
Method Summary
 java.lang.Integer[] getJurisdictionIds( JurisdictionGroupCache.Key aKey)
          Returns the JurisdictionIds associated with the JurisdictionGroup indicated by aKey.
protected abstract  java.lang.Integer getSubclass()
          Returns the JurisdictionGroupRelationship subclass.
protected  java.lang.Object miss(java.lang.Object aKey)
          Returns the array of JurisdictionIds for the specified JurisdictionGroupId.
 
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

JurisdictionGroupCache

public JurisdictionGroupCache()
Constructs a JurisdictionGroupCache with the default cache size.

JurisdictionGroupCache

public JurisdictionGroupCache(int anCacheSize)
Constructs a JurisdictionGroupCache with the specified cache size.
Parameters:
anCacheSize - the cache size
Method Detail

getJurisdictionIds

public java.lang.Integer[] getJurisdictionIds(JurisdictionGroupCache.Key aKey)
                                       throws ECException
Returns the JurisdictionIds associated with the JurisdictionGroup indicated by aKey.
Parameters:
aKey - indicates the JurisisdictionGroup.
Returns:
the JurisdictionIds.
Throws:
ECException

miss

protected java.lang.Object miss(java.lang.Object aKey)
                         throws ECException
Returns the array of JurisdictionIds for the specified JurisdictionGroupId.
Specified by:
miss in class Cache
Parameters:
aKey - the key (JurisdictionGroupCache.Key).
Returns:
the array of JurisdictionIds.
Throws:
ECException
See Also:
Cache.miss(Object)

getSubclass

protected abstract java.lang.Integer getSubclass()
Returns the JurisdictionGroupRelationship subclass.
Returns:
the JurisdictionGroupRelationShip subclass.