public class DiscountDataBean extends java.lang.Object implements DiscountInputDataBean, DiscountSmartDataBean
Modifier and Type | Field and Description |
---|---|
protected CommandContext | commandContext
Command context
|
static java.lang.String | COPYRIGHT
The IBM copyright notice field.
|
protected java.lang.Long[] | iCatEntryId
array of CatEntryId in Long
|
protected java.math.BigDecimal[] | iDiscountValue
array of discountValue in Long
|
Constructor and Description |
---|
DiscountDataBean()
Constructs DiscountDataBean object.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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(CommandContext context)
sets command context
|
void | setRequestProperties(TypedProperty param)
sets request properties
|
public static final java.lang.String COPYRIGHT
protected CommandContext commandContext
protected java.lang.Long[] iCatEntryId
protected java.math.BigDecimal[] iDiscountValue
public CommandContext getCommandContext()
public 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.)
public 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.)
public TypedProperty getRequestProperties()
public void populate() throws java.lang.Exception
public void setCatalogEntryId(java.lang.Long[] catEntryId)
public void setCatalogEntryId(java.lang.String[] catEntryId)
public void setCatalogEntryId(java.lang.Long catEntryId)
public void setCatalogEntryId(java.lang.String catEntryId)
public void setCommandContext(CommandContext context)
public void setRequestProperties(TypedProperty param)