com.ibm.commerce.fulfillment.commands
Class ShippingArrangementCache
java.lang.Object
|
+--com.ibm.commerce.order.calculation.Cache
|
+--com.ibm.commerce.fulfillment.commands.ShippingArrangementCache
- public class ShippingArrangementCache
- extends
Cache
This MRU cache caches ShippingArrangementWrappers by storeId and
shippingModeId.
Field Summary |
static java.lang.String |
COPYRIGHT
The IBM copyright string. |
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
ShippingArrangementCache
public ShippingArrangementCache()
- Constructs a ShippingArrangementCache with the default cache size.
ShippingArrangementCache
public ShippingArrangementCache(int anCacheSize)
- Constructs a ShippingArrangementCache with the specified cache size.
- Parameters:
anCacheSize
- the cache size.
getShippingArrangementWrappers
public ShippingArrangementWrapper[] getShippingArrangementWrappers(ShippingArrangementCache.Key aKey)
throws ECException
- Returns the ShippingArrangementWrappers associated with the Store and
ShippingMode indicated by aKey.
-
- Parameters:
aKey
- indicates the Store and ShippingMode.
- Returns:
- the ShippingArrangementWrappers.
- Throws:
-
ECException
miss
protected java.lang.Object miss(java.lang.Object aKey)
throws ECException
- Returns an array of ShippingArrangementWrappers with the specified storeId
and shippingModeId.
-
- Specified by:
-
miss
in class
Cache
-
- Parameters:
aKey
- the key (ShippingArrangementCache.Key)
- Returns:
- the array of ShippingArrangementWrappers.
- Throws:
-
ECException
- See Also:
-
Cache.miss(Object)