public class OrderPromotionCodeDataBean extends OrderPromotionCodeDataBeanBase implements InputDataBean, SmartDataBean
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COPYRIGHT
The IBM copyright notice field.
|
emptyString| 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.
|
getDelegatefindByID, findByOrdersID, findByOrdersIDAndCode, findByPromotionCode, fulfills, getCODE, getEntity, getID, getORDERS_ID, getOwner, instantiateEntity, setCODE, setInitKey_ID, setORDERS_IDcreateAccessBean, createAccessBean, createAccessBeanCollection, createAccessBeanCollection, createEntityCollection, detach, remove, setUseDataCache, toStringequals, getClass, hashCode, notify, notifyAll, wait, wait, waitfulfills, getOwnerpublic static final java.lang.String COPYRIGHT
public OrderPromotionCodeDataBean()
public OrderPromotionCodeDataBean(com.ibm.commerce.order.objects.OrderPromotionCodeAccessBean aabOrderPromotionCode,
CommandContext aCommandContext)
aabOrderPromotionCode - OrderPromotionCodeAccessBeanaCommandContext - Command Contextjava.lang.Exceptionpublic OrderPromotionCodeDataBean(com.ibm.commerce.order.objects.OrderPromotionCodeAccessBean aabOrderPromotionCode)
aabOrderPromotionCode - OrderPromotionCodeAccessBeanjava.lang.Exceptionpublic CommandContext getCommandContext()
getCommandContext in interface SmartDataBeanpublic void setCommandContext(CommandContext context)
setCommandContext in interface SmartDataBeancontext - CommandContextpublic TypedProperty getRequestProperties()
getRequestProperties in interface InputDataBeanpublic void setRequestProperties(TypedProperty aRequestProperties)
setRequestProperties in interface InputDataBeanaRequestProperties - com.ibm.commerce.datatype.TypedPropertypublic void populate()
populate() method.populate in interface SmartDataBeanjava.lang.ExceptionsetOrderPromotionCodeID(String)public java.lang.String getCode()
public java.lang.String getOrderPromotionCodeID()
public java.lang.String getOrderID()
public void setCode(java.lang.String string)
string - codepublic void setOrderPromotionCodeID(java.lang.String string)
string - idpublic void setOrderID(java.lang.String string)
string - order idpublic java.lang.String[] getOrderPromotionCodes()
public boolean getAddOrderPromotionCode()
setOrderID
to set order ID and method setCode to set promotion code before this method.public boolean getRemoveOrderPromotionCode()
setOrderID
to set order ID and method setCode to set promotion code before this method.public boolean getRemoveAllCodesForOrder()
setOrderID
to set the order ID before this method.