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.
Constructor and Description |
---|
CopyOrderPromotionCodeCOTaskCmdImpl() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Short | checkPromotionCodeImplType(java.lang.String code)
This method returns the promotion code implementation type.
|
protected void | copyUniquePromotionCode(java.lang.Long[] fromOrderIds, java.lang.Long toOrderId, java.lang.String code)
This method is used to copy unique promotion code to order.
|
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.
|
protected java.lang.Short checkPromotionCodeImplType(java.lang.String code) throws ECException
protected void copyUniquePromotionCode(java.lang.Long[] fromOrderIds, java.lang.Long toOrderId, java.lang.String code) throws ECException
public void performExecute() throws ECException
The business logic of this command implementation is responsible for copy a promotion code to an order. *
public void setToOrderId(java.lang.Long orderId)
public void setFromOrderIds(java.lang.Long[] orderIds)
public void setPromotionCode(java.lang.String promotionCode)
public void setPromotionCodeType(java.lang.Short promotionCodeType)
public void reset()