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.
|
DEFAULT_MAX_SIZE
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.
|
static void |
releaseInstance(CommandContext aCommandContext)
Releases the instance from the command context, if there is one in the command context.
|
get, getDefaultMaxSize, getMaxSize, remove, setMaxSize, setSize, toString
public static final java.lang.String COPYRIGHT
public ShippingJurisdictionCache(CommandContext aCommandContext)
aCommandContext
- The command context as CommandContext
object.public ShippingJurisdictionCache(CommandContext aCommandContext, int anCacheSize)
aCommandContext
- The command context as CommandContext
object.anCacheSize
- the cache sizepublic static ShippingJurisdictionCache getInstance(CommandContext aCommandContext)
aCommandContext
- The command context as CommandContext
object.public static void releaseInstance(CommandContext aCommandContext)
aCommandContext
- The command context as CommandContext
object.public void clear()
public java.lang.Integer[] getJurisdictionIds(ShippingJurisdictionCache.Key aKey) throws ECException
aKey
- indicates the Store and Address.ECException