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.Object
public java.lang.String getName()
OptionIf
public void setName(java.lang.String name)
OptionIf
public java.lang.String getValue()
OptionIf
public void setValue(java.lang.String value)
OptionIf
public int getValueId()
OptionIf
getValueId
in interface OptionIf
public void setValueId(int valueId)
OptionIf
setValueId
in interface OptionIf
valueId
- The valueId to set.public int getId()
OptionIf
public void setId(int id)
OptionIf
public java.math.BigDecimal getPriceExTax()
getPriceExTax
in interface OptionIf
public void setPriceExTax(java.math.BigDecimal priceExTax)
setPriceExTax
in interface OptionIf
priceExTax
- The priceExTax to set.public java.math.BigDecimal getPriceIncTax()
getPriceIncTax
in interface OptionIf
public void setPriceIncTax(java.math.BigDecimal priceIncTax)
setPriceIncTax
in interface OptionIf
priceIncTax
- 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()
OptionIf
public void setAttrId(int attrId)
OptionIf
public java.lang.String getAttrCustom1()
getAttrCustom1
in interface OptionIf
public void setAttrCustom1(java.lang.String attrCustom1)
setAttrCustom1
in interface OptionIf
attrCustom1
- the attrCustom1 to setpublic java.lang.String getAttrCustom2()
getAttrCustom2
in interface OptionIf
public void setAttrCustom2(java.lang.String attrCustom2)
setAttrCustom2
in interface OptionIf
attrCustom2
- the attrCustom2 to setpublic java.lang.String getOptionCustom1()
getOptionCustom1
in interface OptionIf
public void setOptionCustom1(java.lang.String optionCustom1)
setOptionCustom1
in interface OptionIf
optionCustom1
- the optionCustom1 to setpublic java.lang.String getOptionCustom2()
getOptionCustom2
in interface OptionIf
public void setOptionCustom2(java.lang.String optionCustom2)
setOptionCustom2
in interface OptionIf
optionCustom2
- the optionCustom2 to setpublic java.lang.String getOptionValCustom1()
getOptionValCustom1
in interface OptionIf
public void setOptionValCustom1(java.lang.String optionValCustom1)
setOptionValCustom1
in interface OptionIf
optionValCustom1
- the optionValCustom1 to setpublic java.lang.String getOptionValCustom2()
getOptionValCustom2
in interface OptionIf
public void setOptionValCustom2(java.lang.String optionValCustom2)
setOptionValCustom2
in interface OptionIf
optionValCustom2
- the optionValCustom2 to setpublic int getType()
public void setType(int type)
public int getQuantity()
getQuantity
in interface OptionIf
public void setQuantity(int quantity)
setQuantity
in interface OptionIf
quantity
- the quantity to setpublic java.math.BigDecimal getCustomerPrice()
getCustomerPrice
in interface OptionIf
public void setCustomerPrice(java.math.BigDecimal customerPrice)
setCustomerPrice
in interface OptionIf
customerPrice
- the customerPrice to setpublic java.lang.String getCustomerText()
getCustomerText
in interface OptionIf
public void setCustomerText(java.lang.String customerText)
setCustomerText
in interface OptionIf
customerText
- the customerText to setpublic int getSortOrder()
OptionIf
getSortOrder
in interface OptionIf
public void setSortOrder(int sortOrder)
OptionIf
setSortOrder
in interface OptionIf
sortOrder
- the sortOrder to setpublic java.lang.String getCode()
OptionIf
public void setCode(java.lang.String code)
OptionIf
public java.lang.String getValueCode()
OptionIf
getValueCode
in interface OptionIf
public void setValueCode(java.lang.String valueCode)
OptionIf
setValueCode
in interface OptionIf
valueCode
- the valueCode to setpublic java.math.BigDecimal getExtPrice0()
getExtPrice0
in interface OptionIf
public void setExtPrice0(java.math.BigDecimal extPrice0)
setExtPrice0
in interface OptionIf
extPrice0
- the extPrice0 to setpublic java.math.BigDecimal getExtPrice1()
getExtPrice1
in interface OptionIf
public void setExtPrice1(java.math.BigDecimal extPrice1)
setExtPrice1
in interface OptionIf
extPrice1
- the extPrice1 to setpublic java.math.BigDecimal getExtPrice2()
getExtPrice2
in interface OptionIf
public void setExtPrice2(java.math.BigDecimal extPrice2)
setExtPrice2
in interface OptionIf
extPrice2
- the extPrice2 to setpublic java.math.BigDecimal getExtPrice3()
getExtPrice3
in interface OptionIf
public void setExtPrice3(java.math.BigDecimal extPrice3)
setExtPrice3
in interface OptionIf
extPrice3
- the extPrice3 to setCopyright © 2018 DS Data Systems UK Ltd.