com.ibm.commerce.order.calculation
Class OrderItemAdjustmentCache
- java.lang.Object
-
- com.ibm.commerce.order.calculation.Cache
-
- com.ibm.commerce.order.calculation.OrderItemAdjustmentCache
-
- All Implemented Interfaces:
- com.ibm.commerce.datatype.CustomProperty
public class OrderItemAdjustmentCache extends Cache implements com.ibm.commerce.datatype.CustomProperty
A class that caches OrderItemAdjustments by OrderItemId.
-
-
Field Summary
Fields Modifier and Type Field and Description 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
Constructors Constructor and Description OrderItemAdjustmentCache()
Constructor for CodeCache.OrderItemAdjustmentCache(int anMaxSize)
Constructor for CodeCache.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static OrderItemAdjustmentCache
getInstance()
Returns the instance of OrderItemAdjustmentCache from the TransactionCache of the CommandContext.OrderItemAdjustmentAccessBean[]
getOrderItemAdjustmentAccessBeans(java.lang.Long aOrderItemId)
Returns an array of OrderItemAdjustmentAccessBean for specified OrderItemIdstatic void
releaseInstance()
Releases the instance from the TransactionCache if there is one in the TransactionCache.-
Methods inherited from class com.ibm.commerce.order.calculation.Cache
clear, get, getDefaultMaxSize, getMaxSize, remove, setMaxSize, setSize, toString
-
-
-
-
Field Detail
-
COPYRIGHT
public static final java.lang.String COPYRIGHT
The IBM copyright notice field.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
OrderItemAdjustmentCache
public OrderItemAdjustmentCache()
Constructor for CodeCache.
-
OrderItemAdjustmentCache
public OrderItemAdjustmentCache(int anMaxSize)
Constructor for CodeCache.- Parameters:
anMaxSize
- the maximum size of the cache.
-
-
Method Detail
-
getInstance
public static OrderItemAdjustmentCache getInstance()
Returns the instance of OrderItemAdjustmentCache from the TransactionCache of the CommandContext. Create one in the TransactionCache if one is not there already.- Returns:
- the instance from the TransactionCache
-
releaseInstance
public static void releaseInstance()
Releases the instance from the TransactionCache if there is one in the TransactionCache.
-
getOrderItemAdjustmentAccessBeans
public OrderItemAdjustmentAccessBean[] getOrderItemAdjustmentAccessBeans(java.lang.Long aOrderItemId) throws ECException
Returns an array of OrderItemAdjustmentAccessBean for specified OrderItemId- Parameters:
aOrderItemId
- the OrderItemId- Returns:
- the array of OrderItemAdjustmentAccessBean
- Throws:
ECException
-
-