|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.konakart.app.Option
public class Option
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.
| Field Summary | |
|---|---|
static int |
TYPE_SIMPLE
Constant to define the Option type |
static int |
TYPE_VARIABLE_QUANTITY
Constant to define the Option type. |
| Constructor Summary | |
|---|---|
Option()
Constructor |
|
Option(com.workingdogs.village.Record vr,
org.apache.torque.util.Criteria c)
Instantiates the attributes of the Option object from a Record object |
|
| 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. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int TYPE_SIMPLE
public static final int TYPE_VARIABLE_QUANTITY
| Constructor Detail |
|---|
public Option()
public Option(com.workingdogs.village.Record vr,
org.apache.torque.util.Criteria c)
throws com.workingdogs.village.DataSetException
vr - Record containing datac - Criteria containing column names
com.workingdogs.village.DataSetException| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getName()
OptionIf
getName in interface OptionIfpublic void setName(java.lang.String name)
OptionIf
setName in interface OptionIfname - The name to set.public java.lang.String getValue()
OptionIf
getValue in interface OptionIfpublic void setValue(java.lang.String value)
OptionIf
setValue in interface OptionIfvalue - The value to set.public int getValueId()
OptionIf
getValueId in interface OptionIfpublic void setValueId(int valueId)
OptionIf
setValueId in interface OptionIfvalueId - The valueId to set.public int getId()
OptionIf
getId in interface OptionIfpublic void setId(int id)
OptionIf
setId in interface OptionIfid - The id to set.public java.math.BigDecimal getPriceExTax()
getPriceExTax in interface OptionIfpublic void setPriceExTax(java.math.BigDecimal priceExTax)
setPriceExTax in interface OptionIfpriceExTax - The priceExTax to set.public java.math.BigDecimal getPriceIncTax()
getPriceIncTax in interface OptionIfpublic void setPriceIncTax(java.math.BigDecimal priceIncTax)
setPriceIncTax in interface OptionIfpriceIncTax - The priceIncTax to set.public java.math.BigDecimal getPrice0()
getPrice0 in interface OptionIfpublic void setPrice0(java.math.BigDecimal price0)
setPrice0 in interface OptionIfprice0 - The price0 to set.public java.math.BigDecimal getPrice1()
getPrice1 in interface OptionIfpublic void setPrice1(java.math.BigDecimal price1)
setPrice1 in interface OptionIfprice1 - The price1 to set.public java.math.BigDecimal getPrice2()
getPrice2 in interface OptionIfpublic void setPrice2(java.math.BigDecimal price2)
setPrice2 in interface OptionIfprice2 - The price2 to set.public java.math.BigDecimal getPrice3()
getPrice3 in interface OptionIfpublic void setPrice3(java.math.BigDecimal price3)
setPrice3 in interface OptionIfprice3 - The price3 to set.public int getAttrId()
OptionIf
getAttrId in interface OptionIfpublic void setAttrId(int attrId)
OptionIf
setAttrId in interface OptionIfattrId - the attrId to setpublic java.lang.String getAttrCustom1()
getAttrCustom1 in interface OptionIfpublic void setAttrCustom1(java.lang.String attrCustom1)
setAttrCustom1 in interface OptionIfattrCustom1 - the attrCustom1 to setpublic java.lang.String getAttrCustom2()
getAttrCustom2 in interface OptionIfpublic void setAttrCustom2(java.lang.String attrCustom2)
setAttrCustom2 in interface OptionIfattrCustom2 - the attrCustom2 to setpublic java.lang.String getOptionCustom1()
getOptionCustom1 in interface OptionIfpublic void setOptionCustom1(java.lang.String optionCustom1)
setOptionCustom1 in interface OptionIfoptionCustom1 - the optionCustom1 to setpublic java.lang.String getOptionCustom2()
getOptionCustom2 in interface OptionIfpublic void setOptionCustom2(java.lang.String optionCustom2)
setOptionCustom2 in interface OptionIfoptionCustom2 - the optionCustom2 to setpublic java.lang.String getOptionValCustom1()
getOptionValCustom1 in interface OptionIfpublic void setOptionValCustom1(java.lang.String optionValCustom1)
setOptionValCustom1 in interface OptionIfoptionValCustom1 - the optionValCustom1 to setpublic java.lang.String getOptionValCustom2()
getOptionValCustom2 in interface OptionIfpublic void setOptionValCustom2(java.lang.String optionValCustom2)
setOptionValCustom2 in interface OptionIfoptionValCustom2 - the optionValCustom2 to setpublic int getType()
getType in interface OptionIfpublic void setType(int type)
setType in interface OptionIftype - the type to setpublic int getQuantity()
getQuantity in interface OptionIfpublic void setQuantity(int quantity)
setQuantity in interface OptionIfquantity - the quantity to set
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||