public class RedeemPromotionCodeToOrderTaskCmdImpl extends AbstractRedeemPromotionCodeToOrderTaskCmdImpl implements RedeemPromotionCodeToOrderTaskCmd
This class extends AbstractRedeemPromotionCodeToOrderTaskCmdImpl
.
This is the default implementation for
RedeemPromotionCodeToOrderTaskCmd
task command.
defaultCommandClassName, NAME
Constructor and Description |
---|
RedeemPromotionCodeToOrderTaskCmdImpl() |
Modifier and Type | Method and Description |
---|---|
void |
performExecute()
This method executes the business logic of this command implementation.
The business logic of this command implementation is responsible for redeeming a promotion code to an order. |
void |
reset()
This method is called after a command has been executed.
|
void |
setOrderId(java.lang.Long orderId)
This is the method declaration to Set Order Id.
|
void |
setPromotionCode(java.lang.String promotionCode)
This is the method declaration to Set Promotion Code.
|
void |
setPromotionCodeType(java.lang.Short promotionCodeType)
This method sets the implementation type that is used for promotion code.
|
void |
setPromotionId(java.lang.Integer promotionId)
This is the method to set promotion id.
|
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 RedeemPromotionCodeToOrderTaskCmdImpl()
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractRedeemPromotionCodeToOrderTaskCmdImpl
ECException
- This exception is thrown when any kind of Exception catch.public void setPromotionId(java.lang.Integer promotionId)
RedeemPromotionCodeToOrderTaskCmd
setPromotionId
in interface RedeemPromotionCodeToOrderTaskCmd
setPromotionId
in class AbstractRedeemPromotionCodeToOrderTaskCmdImpl
promotionId
- An Integer representing the promotion id to be used in the command.RedeemPromotionCodeToOrderTaskCmd.setPromotionId(java.lang.Integer)
public void setOrderId(java.lang.Long orderId)
RedeemPromotionCodeToOrderTaskCmd
setOrderId
in interface RedeemPromotionCodeToOrderTaskCmd
setOrderId
in class AbstractRedeemPromotionCodeToOrderTaskCmdImpl
orderId
- A Long representing the order id to be used in the command.RedeemPromotionCodeToOrderTaskCmd.setOrderId(java.lang.Long)
public void setPromotionCode(java.lang.String promotionCode)
RedeemPromotionCodeToOrderTaskCmd
setPromotionCode
in interface RedeemPromotionCodeToOrderTaskCmd
setPromotionCode
in class AbstractRedeemPromotionCodeToOrderTaskCmdImpl
promotionCode
- A String representing the promotion code to be used in the
command.RedeemPromotionCodeToOrderTaskCmd.setPromotionCode(java.lang.String)
public void setPromotionCodeType(java.lang.Short promotionCodeType)
RedeemPromotionCodeToOrderTaskCmd
setPromotionCodeType
in interface RedeemPromotionCodeToOrderTaskCmd
setPromotionCodeType
in class AbstractRedeemPromotionCodeToOrderTaskCmdImpl
promotionCodeType
- A Short representing the promotion code implementation type to
be used in the command.RedeemPromotionCodeToOrderTaskCmd.setPromotionCodeType(java.lang.Short)
public void reset()
AbstractECTargetableCommand
reset
in interface com.ibm.websphere.command.Command
reset
in class AbstractECTargetableCommand
AbstractECTargetableCommand.reset()