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
           
static java.lang.String COPYRIGHT
          The internal copyright field.
protected  java.lang.Long[] iCatEntryId
           
protected  java.math.BigDecimal[] iDiscountValue
           
 
Fields inherited from interface com.ibm.commerce.beans.DataBean
emptyString
 
Constructor Summary
DiscountDataBean()
          OrderDataBean constructor comment.
 
Method Summary
 CommandContext getCommandContext()
          Return the CommandContext
 java.math.BigDecimal getDiscountValue()
          Return a discount value.
 java.math.BigDecimal[] getDiscountValues()
          Return an array of discount values.
 TypedProperty getRequestProperties()
          Get Request Properties.
 void populate()
          populate the databean
 void setCatalogEntryId(java.lang.Long catEntryId)
          set catalog entry id.
 void setCatalogEntryId(java.lang.Long[] catEntryId)
          set an array of catalog entry ids.
 void setCatalogEntryId(java.lang.String catEntryId)
           
 void setCatalogEntryId(java.lang.String[] catEntryId)
           
 void setCommandContext(CommandContext context)
          Set CommandContext.
 void setRequestProperties(TypedProperty param)
          setRequestProperties method is used to set the requestProperties associated with the data bean.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

commandContext

protected CommandContext commandContext

COPYRIGHT

public static final java.lang.String COPYRIGHT
The internal copyright field.

iCatEntryId

protected java.lang.Long[] iCatEntryId

iDiscountValue

protected java.math.BigDecimal[] iDiscountValue
Constructor Detail

DiscountDataBean

public DiscountDataBean()
OrderDataBean constructor comment.
Method Detail

getCommandContext

public CommandContext getCommandContext()
Description copied from interface: SmartDataBean
Return the CommandContext
Specified by:
getCommandContext in interface SmartDataBean

getDiscountValue

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

getDiscountValues

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

getRequestProperties

public TypedProperty getRequestProperties()
Description copied from interface: InputDataBean
Get Request Properties.
Specified by:
getRequestProperties in interface InputDataBean

populate

public void populate()
              throws java.lang.Exception
Description copied from interface: SmartDataBean
populate the databean
Specified by:
populate in interface SmartDataBean

setCatalogEntryId

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

setCatalogEntryId

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

setCatalogEntryId

public void setCatalogEntryId(java.lang.String catEntryId)
Specified by:
setCatalogEntryId in interface DiscountInputDataBean

setCatalogEntryId

public void setCatalogEntryId(java.lang.String[] catEntryId)
Specified by:
setCatalogEntryId in interface DiscountInputDataBean

setCommandContext

public void setCommandContext(CommandContext context)
Description copied from interface: SmartDataBean
Set CommandContext.
Specified by:
setCommandContext in interface SmartDataBean

setRequestProperties

public void setRequestProperties(TypedProperty param)
Description copied from interface: InputDataBean
setRequestProperties method is used to set the requestProperties associated with the data bean. If the requestProperties is null when the activate method on the DataBeanManager is invoked, the DataBeanManager sets the request properties based on the request properties set in the request.
Specified by:
setRequestProperties in interface InputDataBean
Following copied from interface: com.ibm.commerce.beans.InputDataBean
Parameters:
TypedProperty - requestProperties - the set of properties passed to the JSP page that invokes this data bean,