public class OrderPromotionCodeDataBean extends OrderPromotionCodeDataBeanBase implements InputDataBean, SmartDataBean
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
The IBM copyright notice field.
|
Constructor and Description |
---|
OrderPromotionCodeDataBean()
OrderPromotionCodeDataBean constructor .
|
OrderPromotionCodeDataBean(com.ibm.commerce.order.objects.OrderPromotionCodeAccessBean aabOrderPromotionCode)
Constructs an OrderPromotionCodeDataBean from an OrderPromotionCodeAccessBean by extracting the Order EJB reference from the OrderPromotionCodeAccessBean.
|
OrderPromotionCodeDataBean(com.ibm.commerce.order.objects.OrderPromotionCodeAccessBean aabOrderPromotionCode, CommandContext aCommandContext)
Constructs an OrderPromotionCodeDataBean from an OrderPromotionCodeAccessBean by extracting the Order EJB reference from the OrderPromotionCodeAccessBean and setting the commandContext
|
Modifier and Type | Method and Description |
---|---|
boolean | getAddOrderPromotionCode()
This method adds the Promotion Code specified to the specified order.
|
java.lang.String | getCode()
This method returns the promotion code associated with the order
|
CommandContext | getCommandContext()
This method returns command context.
|
java.lang.String | getOrderID()
This method returns the order id.
|
java.lang.String | getOrderPromotionCodeID()
This method returns the id of the record.
|
java.lang.String[] | getOrderPromotionCodes()
This method returns the Promotion Codes associated with a specified order.
|
boolean | getRemoveAllCodesForOrder()
This method removes all the Promotion Codes for the specified order.
|
boolean | getRemoveOrderPromotionCode()
This method removes the Promotion Code specified from the specified order.
|
TypedProperty | getRequestProperties()
This method returns the request property set within this bean.
|
void | populate()
This method is used to populate the OrderPromotionCodeDataBean.
|
void | setCode(java.lang.String string)
This method sets the promotion code.
|
void | setCommandContext(CommandContext context)
This method setsCommandContext method comment.
|
void | setOrderID(java.lang.String string)
This method sets the order id that will be used to get the order promotion codes.
|
void | setOrderPromotionCodeID(java.lang.String string)
This method sets the record id.
|
void | setRequestProperties(TypedProperty aRequestProperties)
This method sets the request properties within this bean.
|
public static final java.lang.String COPYRIGHT
public OrderPromotionCodeDataBean()
public OrderPromotionCodeDataBean(com.ibm.commerce.order.objects.OrderPromotionCodeAccessBean aabOrderPromotionCode, CommandContext aCommandContext) throws java.lang.Exception
public OrderPromotionCodeDataBean(com.ibm.commerce.order.objects.OrderPromotionCodeAccessBean aabOrderPromotionCode) throws java.lang.Exception
public CommandContext getCommandContext()
public void setCommandContext(CommandContext context)
public TypedProperty getRequestProperties()
public void setRequestProperties(TypedProperty aRequestProperties) throws javax.ejb.CreateException, java.rmi.RemoteException, javax.naming.NamingException, javax.ejb.FinderException
public void populate() throws java.lang.Exception
public java.lang.String getCode()
public java.lang.String getOrderPromotionCodeID()
public java.lang.String getOrderID()
public void setCode(java.lang.String string)
public void setOrderPromotionCodeID(java.lang.String string)
public void setOrderID(java.lang.String string)
public java.lang.String[] getOrderPromotionCodes()
public boolean getAddOrderPromotionCode()
public boolean getRemoveOrderPromotionCode()
public boolean getRemoveAllCodesForOrder()