com.ibm.commerce.order.calculation
Class IndirectAttachmentCache
java.lang.Object
|
+--com.ibm.commerce.order.calculation.Cache
|
+--com.ibm.commerce.order.calculation.IndirectAttachmentCache
- public class IndirectAttachmentCache
- extends
Cache
Reserved for IBM internal use.
Caches tables CATENCALCD and CATGPCALCD.
Field Summary |
static java.lang.String |
COPYRIGHT
|
Method Summary |
protected
int |
getSize(java.lang.Object aValue)
Returns the size of a value. |
protected
java.lang.Object |
miss(java.lang.Object aKey)
Returns the value a key is mapped to. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait,
wait, wait |
COPYRIGHT
public static final java.lang.String COPYRIGHT
-
- See Also:
-
Constant Field Values
IndirectAttachmentCache
public IndirectAttachmentCache()
IndirectAttachmentCache
public IndirectAttachmentCache(int anMaxSize)
getSize
protected int getSize(java.lang.Object aValue)
- Description copied from class:
Cache
- Returns the size of a value. This method is called by
Cache.get(Object)
and should be overridden by the implementing
class.
-
- Overrides:
-
getSize
in class
Cache
-
- Parameters:
aValue
- the value.
- Returns:
- 1 for all values.
miss
protected java.lang.Object miss(java.lang.Object aKey)
throws ECException
- Description copied from class:
Cache
- Returns the value a key is mapped to. This method is called by
Cache.get(Object)
when the mapping is not found in the cache
and should be overridden by the implementing class.
-
- Specified by:
-
miss
in class
Cache
-
- Parameters:
aKey
- the key.
- Returns:
- the value.
- Throws:
-
ECException