|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface OptionIf
A product contains an array of these option objects. An option is used to configure a product and may change the price of a product. i.e. The amount of memory or CPU specification for a personal computer.
| Method Summary | |
|---|---|
java.lang.String |
getAttrCustom1()
Custom field that can take a unique value whenever the option is connected to a product. |
java.lang.String |
getAttrCustom2()
Custom field that can take a unique value whenever the option is connected to a product. |
int |
getAttrId()
The id of the record in the products_attributes table. |
int |
getId()
The id of the record in the products_options table. |
java.lang.String |
getName()
The name of the option. |
java.lang.String |
getOptionCustom1()
Custom field, the value of which is defined when the option is created. |
java.lang.String |
getOptionCustom2()
Custom field, the value of which is defined when the option is created. |
java.lang.String |
getOptionValCustom1()
Custom field, the value of which is defined when the option value is created. |
java.lang.String |
getOptionValCustom2()
Custom field, the value of which is defined when the option value is created. |
java.math.BigDecimal |
getPrice0()
|
java.math.BigDecimal |
getPrice1()
|
java.math.BigDecimal |
getPrice2()
|
java.math.BigDecimal |
getPrice3()
|
java.math.BigDecimal |
getPriceExTax()
|
java.math.BigDecimal |
getPriceIncTax()
|
int |
getQuantity()
Only applicable in the case where the option is of type TYPE_VARIABLE_QUANTITY. |
int |
getType()
The type of option. |
java.lang.String |
getValue()
The value of the option. |
int |
getValueId()
The id of the record in the products_options_values table. |
void |
setAttrCustom1(java.lang.String attrCustom1)
Custom field that can take a unique value whenever the option is connected to a product. |
void |
setAttrCustom2(java.lang.String attrCustom2)
Custom field that can take a unique value whenever the option is connected to a product. |
void |
setAttrId(int attrId)
The id of the record in the products_attributes table. |
void |
setId(int id)
The id of the record in the products_options table. |
void |
setName(java.lang.String name)
The name of the option. |
void |
setOptionCustom1(java.lang.String optionCustom1)
Custom field, the value of which is defined when the option is created. |
void |
setOptionCustom2(java.lang.String optionCustom2)
Custom field, the value of which is defined when the option is created. |
void |
setOptionValCustom1(java.lang.String optionValCustom1)
Custom field, the value of which is defined when the option value is created. |
void |
setOptionValCustom2(java.lang.String optionValCustom2)
Custom field, the value of which is defined when the option value is created. |
void |
setPrice0(java.math.BigDecimal price0)
|
void |
setPrice1(java.math.BigDecimal price1)
|
void |
setPrice2(java.math.BigDecimal price2)
|
void |
setPrice3(java.math.BigDecimal price3)
|
void |
setPriceExTax(java.math.BigDecimal priceExTax)
|
void |
setPriceIncTax(java.math.BigDecimal priceIncTax)
|
void |
setQuantity(int quantity)
Only applicable in the case where the option is of type TYPE_VARIABLE_QUANTITY. |
void |
setType(int type)
The type of option. |
void |
setValue(java.lang.String value)
The value of the option. |
void |
setValueId(int valueId)
The id of the record in the products_options_values table. |
| Method Detail |
|---|
java.lang.String getName()
void setName(java.lang.String name)
name - The name to set.java.lang.String getValue()
void setValue(java.lang.String value)
value - The value to set.int getValueId()
void setValueId(int valueId)
valueId - The valueId to set.int getId()
void setId(int id)
id - The id to set.int getAttrId()
void setAttrId(int attrId)
attrId - the attrId to setjava.math.BigDecimal getPriceExTax()
void setPriceExTax(java.math.BigDecimal priceExTax)
priceExTax - The priceExTax to set.java.math.BigDecimal getPriceIncTax()
void setPriceIncTax(java.math.BigDecimal priceIncTax)
priceIncTax - The priceIncTax to set.java.math.BigDecimal getPrice0()
void setPrice0(java.math.BigDecimal price0)
price0 - The price0 to set.java.math.BigDecimal getPrice1()
void setPrice1(java.math.BigDecimal price1)
price1 - The price1 to set.java.math.BigDecimal getPrice2()
void setPrice2(java.math.BigDecimal price2)
price2 - The price2 to set.java.math.BigDecimal getPrice3()
void setPrice3(java.math.BigDecimal price3)
price3 - The price3 to set.java.lang.String getAttrCustom1()
void setAttrCustom1(java.lang.String attrCustom1)
attrCustom1 - the attrCustom1 to setjava.lang.String getAttrCustom2()
void setAttrCustom2(java.lang.String attrCustom2)
attrCustom2 - the attrCustom2 to setjava.lang.String getOptionCustom1()
void setOptionCustom1(java.lang.String optionCustom1)
optionCustom1 - the optionCustom1 to setjava.lang.String getOptionCustom2()
void setOptionCustom2(java.lang.String optionCustom2)
optionCustom2 - the optionCustom2 to setjava.lang.String getOptionValCustom1()
void setOptionValCustom1(java.lang.String optionValCustom1)
optionValCustom1 - the optionValCustom1 to setjava.lang.String getOptionValCustom2()
void setOptionValCustom2(java.lang.String optionValCustom2)
optionValCustom2 - the optionValCustom2 to setint getType()
void setType(int type)
type - the type to setint getQuantity()
void setQuantity(int quantity)
quantity - the quantity to set
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||