public class CouponListByOrderDataBean extends SmartDataBeanImpl implements Delegator
This databean lists all the coupons used in the Order.
Before invoking the populate method on this bean, you must
invoke the setOrderId method.
emptyString| Constructor and Description |
|---|
CouponListByOrderDataBean()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
com.ibm.commerce.marketing.promotion.coupon.Coupon[] |
getCoupons()
Returns a list of coupons.
|
Protectable |
getDelegate()
Returns the order data bean with the order id set.
|
void |
populate()
Loads data into the databean when the
DataBeanmanager.activate()
runs. |
void |
setCommandContext(CommandContext cc)
Sets the command context associated with the data bean.
|
void |
setOrderId(java.lang.Long anOrderId)
Sets the order ID.
|
void |
setRequestProperties(TypedProperty param)
Sets the request properties associated with the data bean.
|
fulfills, getCommandContext, getHttpRequest, getHttpResponse, getResources, getViewCommandContext, setHttpRequest, setHttpResponse, setViewCommandContextgetRequestPropertiesequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRequestPropertiespublic void setCommandContext(CommandContext cc)
DataBeanManager during the activate method.setCommandContext in interface SmartDataBeansetCommandContext in class SmartDataBeanImplcc - The command context passed to the JSP page that invokes this data
bean.public void setRequestProperties(TypedProperty param)
DataBeanManager during the activate method.setRequestProperties in interface InputDataBeansetRequestProperties in class InputDataBeanImplparam - The set of properties passed to the JSP page that invokes this
data bean.public void setOrderId(java.lang.Long anOrderId)
anOrderId - The order ID.public void populate()
throws java.lang.Exception
DataBeanmanager.activate()
runs.populate in interface SmartDataBeanpopulate in class SmartDataBeanImpljava.lang.Exception - when an error is encountered.SmartDataBean.populate()public com.ibm.commerce.marketing.promotion.coupon.Coupon[] getCoupons()
public Protectable getDelegate() throws java.lang.Exception
getDelegate in interface Delegatorjava.lang.Exception - when an error is encountered on getting the order data bean.Delegator.getDelegate()