com.ibm.commerce.order.calculation
Class CodeMemberGroupRelationshipCache

java.lang.Object
  com.ibm.commerce.order.calculation.Cache
      com.ibm.commerce.order.calculation.CodeMemberGroupRelationshipCache

public class CodeMemberGroupRelationshipCache
extends Cache

A class that caches related member group IDs by calculation code ID. This class essentially caches the CALCODEMGP table, with CALCODE_ID as the index.


Field Summary
static java.lang.String COPYRIGHT
The IBM copyright notice field.
Fields inherited from class com.ibm.commerce.order.calculation.Cache
DEFAULT_MAX_SIZE
Constructor Summary
CodeMemberGroupRelationshipCache()
Constructor for CodeMemberGroupRelationshipCache.
CodeMemberGroupRelationshipCache(int anMaxSize)
Constructor for CodeMemberGroupRelationshipCache.
Method Summary
protected java.lang.Object miss(java.lang.Object aKey)
Returns the member groups related to a calculation code.
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

COPYRIGHT

public static final java.lang.String COPYRIGHT
The IBM copyright notice field.
See Also:
Constant Field Values
Constructor Detail

CodeMemberGroupRelationshipCache

public CodeMemberGroupRelationshipCache()
Constructor for CodeMemberGroupRelationshipCache.

CodeMemberGroupRelationshipCache

public CodeMemberGroupRelationshipCache(int anMaxSize)
Constructor for CodeMemberGroupRelationshipCache.
Parameters:
anMaxSize - the maximum size of the cache.
Method Detail

miss

protected java.lang.Object miss(java.lang.Object aKey)
                         throws ECException
Returns the member groups related to a calculation code.
Specified by:
miss in class Cache
Parameters:
aKey - the calculation code ID (class: Integer).
Returns:
the related member group IDs.
Throws:
ECException

Feedback