com.ibm.commerce.price.beans
Class DiscountDataBean

java.lang.Object
  com.ibm.commerce.price.beans.DiscountDataBean
All Implemented Interfaces:
DataBean, DiscountInputDataBean, DiscountSmartDataBean, InputDataBean, java.io.Serializable, SmartDataBean

public class DiscountDataBean
extends java.lang.Object
implements DiscountInputDataBean, DiscountSmartDataBean

This data bean represents a discount for a catalog entry id. You can set one or an array of catalog entry ids and get one or an array of discount values.

See Also:
Serialized Form

Field Summary
protected CommandContext commandContext
Command context
static java.lang.String COPYRIGHT
The internal copyright field.
protected java.lang.Long[] iCatEntryId
array of CatEntryId in Long
protected java.math.BigDecimal[] iDiscountValue
array of discountValue in Long
Fields inherited from interface com.ibm.commerce.beans.DataBean
emptyString
Constructor Summary
DiscountDataBean()
OrderDataBean constructor comment.
Method Summary
CommandContext getCommandContext()
Returns command context
java.math.BigDecimal getDiscountValue()
Return a discount value.
java.math.BigDecimal[] getDiscountValues()
Return an array of discount values.
TypedProperty getRequestProperties()
Returns request properties
void populate()
Retrieves 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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
The internal copyright field.
See Also:
Constant Field Values

commandContext

protected CommandContext commandContext
Command context

iCatEntryId

protected java.lang.Long[] iCatEntryId
array of CatEntryId in Long

iDiscountValue

protected java.math.BigDecimal[] iDiscountValue
array of discountValue in Long
Constructor Detail

DiscountDataBean

public DiscountDataBean()
OrderDataBean constructor comment.
Method Detail

getCommandContext

public CommandContext getCommandContext()
Returns command context
Specified by:
getCommandContext in interface SmartDataBean
Returns:

getDiscountValue

public java.math.BigDecimal getDiscountValue()
Return a discount value.
Specified by:
getDiscountValue in interface DiscountSmartDataBean
Returns:

getDiscountValues

public java.math.BigDecimal[] getDiscountValues()
Return an array of discount values.
Specified by:
getDiscountValues in interface DiscountSmartDataBean
Returns:

getRequestProperties

public TypedProperty getRequestProperties()
Returns request properties
Specified by:
getRequestProperties in interface InputDataBean
Returns:

populate

public void populate()
              throws java.lang.Exception
Retrieves data from the database
Specified by:
populate in interface SmartDataBean
Throws:
java.lang.Exception

setCatalogEntryId

public void setCatalogEntryId(java.lang.Long[] catEntryId)
sets an array of catalog entry ids.
Specified by:
setCatalogEntryId in interface DiscountInputDataBean
Parameters:
catEntryId -

setCatalogEntryId

public void setCatalogEntryId(java.lang.String[] catEntryId)
sets an array of catalog entry ids.
Specified by:
setCatalogEntryId in interface DiscountInputDataBean
Parameters:
catEntryId -

setCatalogEntryId

public void setCatalogEntryId(java.lang.Long catEntryId)
sets catalog entry id.
Specified by:
setCatalogEntryId in interface DiscountInputDataBean
Parameters:
catEntryId -

setCatalogEntryId

public void setCatalogEntryId(java.lang.String catEntryId)
sets catalog entry id.
Specified by:
setCatalogEntryId in interface DiscountInputDataBean
Parameters:
catEntryId -

setCommandContext

public void setCommandContext(CommandContext context)
sets command context
Specified by:
setCommandContext in interface SmartDataBean
Parameters:
context -

setRequestProperties

public void setRequestProperties(TypedProperty param)
sets request properties
Specified by:
setRequestProperties in interface InputDataBean
Parameters:
param -

Feedback