public class Option extends java.lang.Object implements OptionIf
| Modifier and Type | Field and Description |
|---|---|
static int |
TYPE_CUSTOMER_PRICE
Constant to define the Option type.
|
static int |
TYPE_CUSTOMER_TEXT
Constant to define the Option type.
|
static int |
TYPE_SIMPLE
Constant to define the Option type
|
static int |
TYPE_VARIABLE_QUANTITY
Constant to define the Option type.
|
| Constructor and Description |
|---|
Option()
Constructor
|
Option(com.workingdogs.village.Record vr,
KKCriteria c)
Instantiates the attributes of the Option object from a Record object
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
java.lang.String |
getCode()
The code of the option.
|
java.math.BigDecimal |
getCustomerPrice()
Only applicable in the case where the option is of type TYPE_CUSTOMER_PRICE.
|
java.lang.String |
getCustomerText()
Only applicable in the case where the option is of type TYPE_CUSTOMER_TEXT.
|
java.math.BigDecimal |
getExtPrice0() |
java.math.BigDecimal |
getExtPrice1() |
java.math.BigDecimal |
getExtPrice2() |
java.math.BigDecimal |
getExtPrice3() |
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 |
getSortOrder()
Determines the sort order of the options
|
int |
getType()
The type of option.
|
java.lang.String |
getValue()
The value of the option.
|
java.lang.String |
getValueCode()
The code of the option value.
|
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 |
setCode(java.lang.String code)
The code of the option.
|
void |
setCustomerPrice(java.math.BigDecimal customerPrice)
Only applicable in the case where the option is of type TYPE_CUSTOMER_PRICE.
|
void |
setCustomerText(java.lang.String customerText)
Only applicable in the case where the option is of type TYPE_CUSTOMER_TEXT.
|
void |
setExtPrice0(java.math.BigDecimal extPrice0) |
void |
setExtPrice1(java.math.BigDecimal extPrice1) |
void |
setExtPrice2(java.math.BigDecimal extPrice2) |
void |
setExtPrice3(java.math.BigDecimal extPrice3) |
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 |
setSortOrder(int sortOrder)
Determines the sort order of the options
|
void |
setType(int type)
The type of option.
|
void |
setValue(java.lang.String value)
The value of the option.
|
void |
setValueCode(java.lang.String valueCode)
The code of the option value.
|
void |
setValueId(int valueId)
The id of the record in the products_options_values table.
|
java.lang.String |
toString() |
public static final int TYPE_SIMPLE
public static final int TYPE_VARIABLE_QUANTITY
public static final int TYPE_CUSTOMER_PRICE
public static final int TYPE_CUSTOMER_TEXT
public Option()
public Option(com.workingdogs.village.Record vr,
KKCriteria c)
throws com.workingdogs.village.DataSetException
vr - Record containing datac - Criteria containing column namescom.workingdogs.village.DataSetException - an unexpected exception due to data in Torque (the database layer)public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getName()
OptionIfpublic void setName(java.lang.String name)
OptionIfpublic java.lang.String getValue()
OptionIfpublic void setValue(java.lang.String value)
OptionIfpublic int getValueId()
OptionIfgetValueId in interface OptionIfpublic void setValueId(int valueId)
OptionIfsetValueId in interface OptionIfvalueId - The valueId to set.public int getId()
OptionIfpublic void setId(int id)
OptionIfpublic 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()
public void setPrice0(java.math.BigDecimal price0)
public java.math.BigDecimal getPrice1()
public void setPrice1(java.math.BigDecimal price1)
public java.math.BigDecimal getPrice2()
public void setPrice2(java.math.BigDecimal price2)
public java.math.BigDecimal getPrice3()
public void setPrice3(java.math.BigDecimal price3)
public int getAttrId()
OptionIfpublic void setAttrId(int attrId)
OptionIfpublic 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()
public void setType(int type)
public int getQuantity()
getQuantity in interface OptionIfpublic void setQuantity(int quantity)
setQuantity in interface OptionIfquantity - the quantity to setpublic java.math.BigDecimal getCustomerPrice()
getCustomerPrice in interface OptionIfpublic void setCustomerPrice(java.math.BigDecimal customerPrice)
setCustomerPrice in interface OptionIfcustomerPrice - the customerPrice to setpublic java.lang.String getCustomerText()
getCustomerText in interface OptionIfpublic void setCustomerText(java.lang.String customerText)
setCustomerText in interface OptionIfcustomerText - the customerText to setpublic int getSortOrder()
OptionIfgetSortOrder in interface OptionIfpublic void setSortOrder(int sortOrder)
OptionIfsetSortOrder in interface OptionIfsortOrder - the sortOrder to setpublic java.lang.String getCode()
OptionIfpublic void setCode(java.lang.String code)
OptionIfpublic java.lang.String getValueCode()
OptionIfgetValueCode in interface OptionIfpublic void setValueCode(java.lang.String valueCode)
OptionIfsetValueCode in interface OptionIfvalueCode - the valueCode to setpublic java.math.BigDecimal getExtPrice0()
getExtPrice0 in interface OptionIfpublic void setExtPrice0(java.math.BigDecimal extPrice0)
setExtPrice0 in interface OptionIfextPrice0 - the extPrice0 to setpublic java.math.BigDecimal getExtPrice1()
getExtPrice1 in interface OptionIfpublic void setExtPrice1(java.math.BigDecimal extPrice1)
setExtPrice1 in interface OptionIfextPrice1 - the extPrice1 to setpublic java.math.BigDecimal getExtPrice2()
getExtPrice2 in interface OptionIfpublic void setExtPrice2(java.math.BigDecimal extPrice2)
setExtPrice2 in interface OptionIfextPrice2 - the extPrice2 to setpublic java.math.BigDecimal getExtPrice3()
getExtPrice3 in interface OptionIfpublic void setExtPrice3(java.math.BigDecimal extPrice3)
setExtPrice3 in interface OptionIfextPrice3 - the extPrice3 to setCopyright © 2018 DS Data Systems UK Ltd.