public class CopyOrderPromotionCodeCOTaskCmdImpl extends AbstractCopyOrderPromotionCodeTaskCmdImpl implements CopyOrderPromotionCodeTaskCmd
This class supports unique promotion code.
This class extends AbstractCopyOrderPromotionCodeTaskCmdImpl
.
This is the default implementation for CopyOrderPromotionCodeTaskCmd
and supports unique promotion code implementation.
defaultCommandClassName, NAME
Constructor and Description |
---|
CopyOrderPromotionCodeCOTaskCmdImpl() |
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 |
setFromOrderIds(java.lang.Long[] orderIds)
This is the method declaration to Set From Order Id array.
|
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 |
setToOrderId(java.lang.Long orderId)
This is the method declaration to Set To Order Id.
|
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, validateParameters
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 void performExecute() throws ECException
The business logic of this command implementation is responsible for copy a promotion code to an order. *
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractCopyOrderPromotionCodeTaskCmdImpl
ECException
- This exception is thrown when any kind of Exception catch.public void setToOrderId(java.lang.Long orderId)
CopyOrderPromotionCodeTaskCmd
setToOrderId
in interface CopyOrderPromotionCodeTaskCmd
setToOrderId
in class AbstractCopyOrderPromotionCodeTaskCmdImpl
orderId
- A Long representing the to order id to be used in the command.CopyOrderPromotionCodeTaskCmd.setToOrderId(Long)
public void setFromOrderIds(java.lang.Long[] orderIds)
CopyOrderPromotionCodeTaskCmd
setFromOrderIds
in interface CopyOrderPromotionCodeTaskCmd
setFromOrderIds
in class AbstractCopyOrderPromotionCodeTaskCmdImpl
orderIds
- An Array of Long representing the from order id array to be used in the command.CopyOrderPromotionCodeTaskCmd.setFromOrderIds(Long[])
public void setPromotionCode(java.lang.String promotionCode)
CopyOrderPromotionCodeTaskCmd
setPromotionCode
in interface CopyOrderPromotionCodeTaskCmd
setPromotionCode
in class AbstractCopyOrderPromotionCodeTaskCmdImpl
promotionCode
- A String representing the promotion code to be used in the
command.CopyOrderPromotionCodeTaskCmd.setPromotionCode(String)
public void setPromotionCodeType(java.lang.Short promotionCodeType)
CopyOrderPromotionCodeTaskCmd
setPromotionCodeType
in interface CopyOrderPromotionCodeTaskCmd
setPromotionCodeType
in class AbstractCopyOrderPromotionCodeTaskCmdImpl
promotionCodeType
- A Short representing the promotion code implementation type to
be used in the command.CopyOrderPromotionCodeTaskCmd.setPromotionCodeType(java.lang.Short)
public void reset()
AbstractECTargetableCommand
reset
in interface com.ibm.websphere.command.Command
reset
in class AbstractECTargetableCommand
AbstractECTargetableCommand.reset()