public class EntitledPriceDataBean
extends java.lang.Object
implements com.ibm.commerce.beans.CommandDataBean
EntitledPriceDataBeanCmd
for a generic
catalog entry.
You can find more information about data beans in the WebSphere Commerce data beans topic in the Information Center.
Mandatory Parameters:
catentry ID
Some hints and tips for using this data bean are:
catentry
ID value before activating the data beanConstructor and Description |
---|
EntitledPriceDataBean() |
Modifier and Type | Method and Description |
---|---|
java.lang.Long |
getCatEntryId()
Gets the ID that represents the primary key for this catalog entry.
|
java.lang.String |
getCommandInterfaceName()
This method gets the command interface name that populates this data bean.
|
java.lang.String |
getCurrency()
Gets the monetary currency.
|
java.math.BigDecimal |
getPrice()
Gets the price amount that represents monetary price for this catalog entry.
|
QuantityAmount |
getQuantity()
Gets quantity that represents quantity for the catalog entry.
|
com.ibm.commerce.datatype.TypedProperty |
getRequestProperties()
This method gets the parameters passed as part of the URL if any.
|
void |
setCatEntryId(java.lang.Long aCatEntryId)
Sets the ID that represents the primary key for this catalog entry.
|
void |
setCommandInterfaceName(java.lang.String ifname)
This method sets the command interface name.
|
void |
setCurrency(java.lang.String aCurrency)
Sets the monetary currency.
|
void |
setPrice(java.math.BigDecimal aPrice)
Sets the price that represents the monetary price for this catalog entry.
|
void |
setQuantity(QuantityAmount aQuantity)
Sets the product quantity for calculating the price.
|
void |
setRequestProperties(com.ibm.commerce.datatype.TypedProperty aTypedProp)
Sets the request property and populates the parameters that are needed by the bean.
|
public java.lang.Long getCatEntryId()
Long
representing the catalog entry ID.public java.lang.String getCommandInterfaceName()
EntitledPriceDataBeanCmd
.getCommandInterfaceName
in interface com.ibm.commerce.beans.CommandDataBean
public java.lang.String getCurrency()
String
representing the monetary currency.public java.math.BigDecimal getPrice()
BigDecimal
representing the catalog entry price amount.public QuantityAmount getQuantity()
QuantityAmount
representing the quantity for the catalog entry.public com.ibm.commerce.datatype.TypedProperty getRequestProperties()
getRequestProperties
in interface com.ibm.commerce.beans.InputDataBean
TypedProperty
that specifies the parameters passed as part of the URL if any.public void setCatEntryId(java.lang.Long aCatEntryId)
aCatEntryId
- The primary key.public void setCommandInterfaceName(java.lang.String ifname)
setCommandInterfaceName
in interface com.ibm.commerce.beans.CommandDataBean
ifname
- A String that specifies the command interface name to be set.public void setCurrency(java.lang.String aCurrency)
aCurrency
- The monetary currency.public void setPrice(java.math.BigDecimal aPrice)
aPrice
- The monetary amount price.public void setQuantity(QuantityAmount aQuantity)
aQuantity
- The product quantity for calculating the price.public void setRequestProperties(com.ibm.commerce.datatype.TypedProperty aTypedProp) throws java.lang.Exception
catentry ID
.setRequestProperties
in interface com.ibm.commerce.beans.InputDataBean
aTypedProp
- The request property as TypedProperty
.java.lang.Exception
- Thrown if there is a problem when setting the request properties. This particular method should
not throw any exception because it just stores the request properties.