com.ibm.commerce.fulfillment.commands
Class ShippingJurisdictionGroupCache

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

public class ShippingJurisdictionGroupCache
extends JurisdictionGroupCache

This MRU cache caches ShippingJurisdictionIds by ShippingJurisdictionGroupId.


Nested Class Summary
 
Nested classes inherited from class com.ibm.commerce.fulfillment.commands. JurisdictionGroupCache
JurisdictionGroupCache.Key
 
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
ShippingJurisdictionGroupCache()
          Constructor for ShippingJurisdictionGroupCache.
ShippingJurisdictionGroupCache(int anCacheSize)
          Constructor for ShippingJurisdictionGroupCache.
 
Method Summary
static  ShippingJurisdictionGroupCache getInstance( CommandContext aCommandContext)
          Returns the instance from the command context.
protected  java.lang.Integer getSubclass()
          Returns the JurisdictionGroupRelationship subclass.
static void releaseInstance( CommandContext aCommandContext)
          Releases the instance from the command context, if there is one in the command context.
 
Methods inherited from class com.ibm.commerce.fulfillment.commands. JurisdictionGroupCache
getJurisdictionIds, miss
 
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

ShippingJurisdictionGroupCache

public ShippingJurisdictionGroupCache()
Constructor for ShippingJurisdictionGroupCache.

ShippingJurisdictionGroupCache

public ShippingJurisdictionGroupCache(int anCacheSize)
Constructor for ShippingJurisdictionGroupCache.
Parameters:
anCacheSize -
Method Detail

getInstance

public static ShippingJurisdictionGroupCache getInstance(CommandContext aCommandContext)
Returns the instance from the command context. Creates one in the command context if one is not there already.
Parameters:
aCommandContext - The command context as CommandContext object.
Returns:
the instance from the command context.

releaseInstance

public static void releaseInstance(CommandContext aCommandContext)
Releases the instance from the command context, if there is one in the command context.
Parameters:
aCommandContext - The command context as CommandContext object.

getSubclass

protected java.lang.Integer getSubclass()
Returns the JurisdictionGroupRelationship subclass.
Specified by:
getSubclass in class JurisdictionGroupCache
Returns:
the JurisdictionGroupRelationShip subclass.