public class ShippingJurisdictionCache extends Cache implements com.ibm.commerce.datatype.CustomProperty
Modifier and Type | Class and Description |
---|---|
static class | ShippingJurisdictionCache.Key
Key class of ShippingJurisdictionCache.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
The IBM copyright string.
|
Constructor and Description |
---|
ShippingJurisdictionCache(CommandContext aCommandContext)
Constructs a ShippingJurisdictionCache with the default cache size.
|
ShippingJurisdictionCache(CommandContext aCommandContext, int anCacheSize)
Constructs a ShippingJurisdictionCache with the specified cache size.
|
Modifier and Type | Method and Description |
---|---|
void | clear()
Removes all data from this instance, including the command context.
|
static ShippingJurisdictionCache | getInstance(CommandContext aCommandContext)
Returns the instance from the command context.
|
java.lang.Integer[] | getJurisdictionIds(ShippingJurisdictionCache.Key aKey)
Returns the JurisdictionIds associated with the Store and Address indicated by aKey.
|
protected int | getSize(java.lang.Object aValue)
Returns a number of ShippingJurisdictionIds in the specified array.
|
protected java.lang.Object | miss(java.lang.Object aKey)
Returns an array of ShippingJurisdictionIds for the specified addressId.
|
static void | releaseInstance(CommandContext aCommandContext)
Releases the instance from the command context, if there is one in the command context.
|
public static final java.lang.String COPYRIGHT
public ShippingJurisdictionCache(CommandContext aCommandContext)
public ShippingJurisdictionCache(CommandContext aCommandContext, int anCacheSize)
public static ShippingJurisdictionCache getInstance(CommandContext aCommandContext)
public static void releaseInstance(CommandContext aCommandContext)
public void clear()
public java.lang.Integer[] getJurisdictionIds(ShippingJurisdictionCache.Key aKey) throws ECException
protected java.lang.Object miss(java.lang.Object aKey) throws ECException
protected int getSize(java.lang.Object aValue)