com.ibm.commerce.order.calculation

Class 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 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