public class AllocatePromotionCodeCmdImpl extends TaskCommandImpl implements AllocatePromotionCodeCmd
Modifier and Type | Field and Description |
---|---|
static java.lang.String | CLASSNAME
The name of the class.
|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
Constructor and Description |
---|
AllocatePromotionCodeCmdImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.String | getAllocatedPromotionCode()
This method gets the promotion code that has been allocated.
|
java.lang.String | getAndAllocatePromotionCode(java.lang.Integer promoId)
This method attempts to get an unallocated code from the specified promotion.
|
java.lang.Long | getOwnerId()
This method gets the member ID of the customer to whom the allocated promotion code should be assigned.
|
void | performExecute()
Performs the execution of the command.
|
void | setBatchMode(boolean b)
The methods sets if the e-mail containing the PromotionCode tag is being sent from an e-mail in batch mode.
|
void | setOwnerId(java.lang.Long newOwnerId)
This method sets the member ID of the customer to whom the allocated promotion code should be assigned.
|
void | setPromotionId(java.lang.Integer newPromotionId)
This method sets the promotion ID of the promotion from which a promotion code should be allocated.
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String CLASSNAME
public void performExecute() throws ECException
public java.lang.String getAndAllocatePromotionCode(java.lang.Integer promoId) throws java.sql.SQLException, javax.naming.NamingException
public java.lang.String getAllocatedPromotionCode()
public void setPromotionId(java.lang.Integer newPromotionId)
public void setOwnerId(java.lang.Long newOwnerId)
public java.lang.Long getOwnerId()
public void setBatchMode(boolean b)