public class ProcessInventoryRequirementDecrementCacheActionCmdImpl extends AbstractProcessInventoryRequirementActionCmdImpl
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM Copyright notice field.
|
Constructor and Description |
---|
ProcessInventoryRequirementDecrementCacheActionCmdImpl() |
Modifier and Type | Method and Description |
---|---|
void | decrementCache(java.lang.String catEntryId, java.lang.String onlineStoreId, java.lang.String physicalStoreId, OrderItemType orderItem)
This method performs the operatins to decrement cache.
|
protected InventoryStatusEnumerationType | getInventoryStatusForZeroQuantity()
Get inventory status to update the inventory cache when the available quantity is zero.
|
protected boolean | isCheckMemoryCacheExpiryEnabled()
Read whether to check memory expiry from configuration file.
|
void | performExecute()
This method performs the main business flow to decrement the inventory cache.
|
public static final java.lang.String COPYRIGHT
public ProcessInventoryRequirementDecrementCacheActionCmdImpl()
public void performExecute() throws java.lang.Exception
When an order item in InventoryRequirementType contans catalog entry in an online store or catalog entry in a physical store, and if the order item's inventory status is Allocated. The memory or DB inventory cache of them will be decremented by the quantity ordered.
public void decrementCache(java.lang.String catEntryId, java.lang.String onlineStoreId, java.lang.String physicalStoreId, OrderItemType orderItem) throws AbstractApplicationException
First, for the combination of catalog entry/online store or catalog entry/physical store, the configuration for them will be first read. If the inventory cache is in the memory, memory cache will be decremented; if the inventory cache is in the DB, DB cahce will be decremented.
protected boolean isCheckMemoryCacheExpiryEnabled()
protected InventoryStatusEnumerationType getInventoryStatusForZeroQuantity()