public class DiscountDataBean extends java.lang.Object implements DiscountInputDataBean, DiscountSmartDataBean
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COPYRIGHT
The IBM copyright notice field.
|
| Constructor and Description |
|---|
DiscountDataBean()
Constructs DiscountDataBean object.
|
| Modifier and Type | Method and Description |
|---|---|
com.ibm.commerce.command.CommandContext |
getCommandContext()
Returns command context
|
java.math.BigDecimal |
getDiscountValue()
Returns the first catalog entry's total adjustment that applies at
the catalog entry level.
|
java.math.BigDecimal[] |
getDiscountValues()
Returns the total adjustment for all catalog entries that apply at
the catalog entry level.
|
com.ibm.commerce.datatype.TypedProperty |
getRequestProperties()
Returns request properties
|
void |
populate()
This method is used to retrieve data from the database.
|
void |
setCatalogEntryId(java.lang.Long catEntryId)
sets catalog entry id.
|
void |
setCatalogEntryId(java.lang.Long[] catEntryId)
sets an array of catalog entry ids.
|
void |
setCatalogEntryId(java.lang.String catEntryId)
sets catalog entry id.
|
void |
setCatalogEntryId(java.lang.String[] catEntryId)
sets an array of catalog entry ids.
|
void |
setCommandContext(com.ibm.commerce.command.CommandContext context)
sets command context
|
void |
setRequestProperties(com.ibm.commerce.datatype.TypedProperty param)
sets request properties
|
public static final java.lang.String COPYRIGHT
public com.ibm.commerce.command.CommandContext getCommandContext()
getCommandContext in interface com.ibm.commerce.beans.SmartDataBeanpublic java.math.BigDecimal getDiscountValue()
If only one catalog entry ID was set using
DiscountInputDataBean.setCatalogEntryId(Long), then the returned
value is for that. Otherwise the returned value corresponds to the first
catalog entry ID that was set using
DiscountInputDataBean.setCatalogEntryId(Long[]). (Similar for
the String-based set methods.)
getDiscountValue in interface DiscountSmartDataBeanpublic java.math.BigDecimal[] getDiscountValues()
The returned values correspond to the catalog entry IDs given by
DiscountInputDataBean.setCatalogEntryId(Long[]). If
DiscountInputDataBean.setCatalogEntryId(Long) was used to set
the catalog entry IDs, the returned array will have a length of 1.
(Similar for the String-based set methods.)
getDiscountValues in interface DiscountSmartDataBeanpublic com.ibm.commerce.datatype.TypedProperty getRequestProperties()
getRequestProperties in interface com.ibm.commerce.beans.InputDataBeanpublic void populate()
throws java.lang.Exception
DataBeanManager.activate()
runs.populate in interface com.ibm.commerce.beans.SmartDataBeanjava.lang.Exceptionpublic void setCatalogEntryId(java.lang.Long catEntryId)
setCatalogEntryId in interface DiscountInputDataBeancatEntryId - public void setCatalogEntryId(java.lang.Long[] catEntryId)
setCatalogEntryId in interface DiscountInputDataBeancatEntryId - []public void setCatalogEntryId(java.lang.String catEntryId)
setCatalogEntryId in interface DiscountInputDataBeancatEntryId - public void setCatalogEntryId(java.lang.String[] catEntryId)
setCatalogEntryId in interface DiscountInputDataBeancatEntryId - []public void setCommandContext(com.ibm.commerce.command.CommandContext context)
setCommandContext in interface com.ibm.commerce.beans.SmartDataBeancontext - public void setRequestProperties(com.ibm.commerce.datatype.TypedProperty param)
setRequestProperties in interface com.ibm.commerce.beans.InputDataBeanparam -