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.
Field Summary |
static java.lang.String |
COPYRIGHT
The IBM copyright string. |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
COPYRIGHT
public static final java.lang.String COPYRIGHT
- The IBM copyright string.
- See Also:
- Constant Field Values
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
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.
Feedback
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.