public class RemovePromotionCodeFromOrderCOTaskCmdImpl extends AbstractRemovePromotionCodeFromOrderTaskCmdImpl implements RemovePromotionCodeFromOrderTaskCmd
RemovePromotionCodeFromOrderTaskCmd
and supports unique
promotion code implementation.defaultCommandClassName, NAME
Constructor and Description |
---|
RemovePromotionCodeFromOrderCOTaskCmdImpl() |
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.
|
validateParameters
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
executeFromCache, getCaller, getEntryInfo, getId, 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
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
public RemovePromotionCodeFromOrderCOTaskCmdImpl()
public void performExecute() throws ECException
The business logic of this command implementation is responsible for removing a promotion code from an order.
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractRemovePromotionCodeFromOrderTaskCmdImpl
ECException
- This exception is thrown when any kind of Exception catch.public void setOrderId(java.lang.Long orderId)
setOrderId
in interface RemovePromotionCodeFromOrderTaskCmd
setOrderId
in class AbstractRemovePromotionCodeFromOrderTaskCmdImpl
orderId
- A Long representing the order id to be used in the command.public void setPromotionCode(java.lang.String promotionCode)
setPromotionCode
in interface RemovePromotionCodeFromOrderTaskCmd
setPromotionCode
in class AbstractRemovePromotionCodeFromOrderTaskCmdImpl
promotionCode
- A String representing the promotion code to be used in the
command.public void setPromotionCodeType(java.lang.Short promotionCodeType)
RemovePromotionCodeFromOrderTaskCmd
setPromotionCodeType
in interface RemovePromotionCodeFromOrderTaskCmd
setPromotionCodeType
in class AbstractRemovePromotionCodeFromOrderTaskCmdImpl
promotionCodeType
- A Short representing the promotion code implementation type to
be used in the command.RemovePromotionCodeFromOrderTaskCmd.setPromotionCodeType(java.lang.Short)
public void reset()
AbstractECTargetableCommand
reset
in interface com.ibm.websphere.command.Command
reset
in class AbstractECTargetableCommand
AbstractECTargetableCommand.reset()