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.
|
getDelegate
findByID, findByOrdersID, findByOrdersIDAndCode, findByPromotionCode, fulfills, getCODE, getEntity, getID, getORDERS_ID, getOwner, instantiateEntity, setCODE, setInitKey_ID, setORDERS_ID
createAccessBean, createAccessBean, createAccessBeanCollection, createAccessBeanCollection, createEntityCollection, detach, remove, setUseDataCache, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
fulfills, getOwner
public static final java.lang.String COPYRIGHT
public OrderPromotionCodeDataBean()
public OrderPromotionCodeDataBean(com.ibm.commerce.order.objects.OrderPromotionCodeAccessBean aabOrderPromotionCode, CommandContext aCommandContext)
aabOrderPromotionCode
- OrderPromotionCodeAccessBeanaCommandContext
- Command Contextjava.lang.Exception
public OrderPromotionCodeDataBean(com.ibm.commerce.order.objects.OrderPromotionCodeAccessBean aabOrderPromotionCode)
aabOrderPromotionCode
- OrderPromotionCodeAccessBeanjava.lang.Exception
public CommandContext getCommandContext()
getCommandContext
in interface SmartDataBean
public void setCommandContext(CommandContext context)
setCommandContext
in interface SmartDataBean
context
- CommandContextpublic TypedProperty getRequestProperties()
getRequestProperties
in interface InputDataBean
public void setRequestProperties(TypedProperty aRequestProperties)
setRequestProperties
in interface InputDataBean
aRequestProperties
- com.ibm.commerce.datatype.TypedPropertypublic void populate()
populate()
method.populate
in interface SmartDataBean
java.lang.Exception
setOrderPromotionCodeID(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.