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.
|
void |
performExecute()
This method performs the main business flow to decrement the inventory cache.
|
void |
setInventoryStatusToDecrementCache(java.lang.String inventoryStatusToDecrementCache)
Sets the inventory status(es) to decrement cache.
|
buildInternalSelectionCriteria, getInventoryAvailabilityFromDOM, getInventoryConfiguration, isValidStoreId, validate
getActionExpression, getNoun, isGeneric, isReadyToCallExecute, reset, setActionExpression, setNoun, setPersistentObjects
execute, executeFromCache, getCaller, getEntryInfo, getId, getObjectSize, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isGeneric, setActionExpression, setNoun, setPersistentObjects
public static final java.lang.String COPYRIGHT
public ProcessInventoryRequirementDecrementCacheActionCmdImpl()
public void setInventoryStatusToDecrementCache(java.lang.String inventoryStatusToDecrementCache)
inventoryStatusToDecrementCache
- A comma-separated list of inventory statuses.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.
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractProcessInventoryRequirementActionCmdImpl
java.lang.Exception
decrementCache(String, String, String, OrderItemType)
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.
catEntryId
- The catalog entry ID of the product in the order item.onlineStoreId
- The online store ID where the product purchased. When this parameter is set, physicalStoreId should be null.physicalStoreId
- The physical store ID where the product purchased. When this parameter is set, onlineStoreId should be null.orderItem
- The order item which contains the catalog entry id.AbstractApplicationException