public class AddPromotionCodeToOrderCOTaskCmdImpl extends AbstractAddPromotionCodeToOrderTaskCmdImpl implements AddPromotionCodeToOrderTaskCmd
AddPromotionCodeToOrderTaskCmd to add a
promotion code to an order and support unique promotion code implementation.defaultCommandClassName, NAME| Constructor and Description |
|---|
AddPromotionCodeToOrderCOTaskCmdImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
performExecute()
This method executes the business logic of this command implementation.
|
void |
reset()
This method is called after a command has been executed.
|
void |
setOrderId(java.lang.Long orderId)
This is the method to set order id.
|
void |
setPromotionCode(java.lang.String promotionCode)
This is the method to set promotion code.
|
void |
setPromotionCodeType(java.lang.Short promotionCodeType)
This method sets the implementation type that is used for promotion code.
|
validateParametersaccessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiesexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCachegetCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicyequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCachegetCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputPropertiescheckIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameterspublic AddPromotionCodeToOrderCOTaskCmdImpl()
public void reset()
AbstractECTargetableCommandreset in interface com.ibm.websphere.command.Commandreset in class AbstractECTargetableCommandAbstractECTargetableCommand.reset()public void performExecute()
throws ECException
The business logic of this command implementation is responsible for adding a promotion code to an order. *
performExecute in interface ECCommandperformExecute in interface com.ibm.websphere.command.TargetableCommandperformExecute in class AbstractAddPromotionCodeToOrderTaskCmdImplECException - This exception is thrown when any kind of Exception catch.public void setOrderId(java.lang.Long orderId)
setOrderId in interface AddPromotionCodeToOrderTaskCmdsetOrderId in class AbstractAddPromotionCodeToOrderTaskCmdImplorderId - A Long representing the order id to be used in the command.public void setPromotionCode(java.lang.String promotionCode)
setPromotionCode in interface AddPromotionCodeToOrderTaskCmdsetPromotionCode in class AbstractAddPromotionCodeToOrderTaskCmdImplpromotionCode - A String representing the promotion code to be used in the
command.public void setPromotionCodeType(java.lang.Short promotionCodeType)
AddPromotionCodeToOrderTaskCmdsetPromotionCodeType in interface AddPromotionCodeToOrderTaskCmdsetPromotionCodeType in class AbstractAddPromotionCodeToOrderTaskCmdImplpromotionCodeType - A Short representing the promotion code implementation type to
be used in the command.AddPromotionCodeToOrderTaskCmd.setPromotionCodeType(java.lang.Short)