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.


Nested Class Summary
static class ShippingArrangementCache.Key
          Key class of ShippingArrangementCache.
 
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
ShippingArrangementCache()
          Constructs a ShippingArrangementCache with the default cache size.
ShippingArrangementCache(int anCacheSize)
          Constructs a ShippingArrangementCache with the specified cache size.
 
Method Summary
  ShippingArrangementWrapper[] getShippingArrangementWrappers( ShippingArrangementCache.Key aKey)
          Returns the ShippingArrangementWrappers associated with the Store and ShippingMode indicated by aKey.
protected  java.lang.Object miss(java.lang.Object aKey)
          Returns an array of ShippingArrangementWrappers with the specified storeId and shippingModeId.
 
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

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.
Method Detail

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)