com.ibm.commerce.price.beans
Class DiscountDataBean

java.lang.Object
  |
  +--com.ibm.commerce.price.beans.DiscountDataBean

public class DiscountDataBean
extends java.lang.Object

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.


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
 
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
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
Returns:

getDiscountValue

public java.math.BigDecimal getDiscountValue()
Return a discount value.
Returns:

getDiscountValues

public java.math.BigDecimal[] getDiscountValues()
Return an array of discount values.
Returns:

getRequestProperties

public TypedProperty getRequestProperties()
Returns request properties
Returns:

populate

public void populate()
              throws java.lang.Exception
Retrieves data from the database
Throws:
java.lang.Exception

setCatalogEntryId

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

setCatalogEntryId

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

setCatalogEntryId

public void setCatalogEntryId(java.lang.Long catEntryId)
sets catalog entry id.
Parameters:
catEntryId -

setCatalogEntryId

public void setCatalogEntryId(java.lang.String catEntryId)
sets catalog entry id.
Parameters:
catEntryId -

setCommandContext

public void setCommandContext(CommandContext context)
sets command context
Parameters:
context -

setRequestProperties

public void setRequestProperties(TypedProperty param)
sets request properties
Parameters:
param -