com.konakart.json.app
Class J_Option

java.lang.Object
  extended by com.konakart.json.app.J_Option
All Implemented Interfaces:
java.io.Serializable

public class J_Option
extends java.lang.Object
implements java.io.Serializable

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.

See Also:
Serialized Form

Constructor Summary
J_Option()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

J_Option

public J_Option()
Method Detail

getName

public java.lang.String getName()
The name of the option. e.g color or size.

Returns:
Returns the name.

setName

public void setName(java.lang.String _name)
The name of the option. e.g color or size.

Parameters:
_name - The name to set.

getValue

public java.lang.String getValue()
The value of the option. e.g red, blue or small, large.

Returns:
Returns the value.

setValue

public void setValue(java.lang.String _value)
The value of the option. e.g red, blue or small, large.

Parameters:
_value - The value to set.

getValueId

public int getValueId()
The id of the record in the products_options_values table.

Returns:
Returns the valueId.

setValueId

public void setValueId(int _valueId)
The id of the record in the products_options_values table.

Parameters:
_valueId - The valueId to set.

getId

public int getId()
The id of the record in the products_options table.

Returns:
Returns the id.

setId

public void setId(int _id)
The id of the record in the products_options table.

Parameters:
_id - The id to set.

getAttrId

public int getAttrId()
The id of the record in the products_attributes table.

Returns:
the attrId

setAttrId

public void setAttrId(int _attrId)
The id of the record in the products_attributes table.

Parameters:
_attrId - the attrId to set

getPriceExTax

public java.math.BigDecimal getPriceExTax()
Returns:
Returns the priceExTax.

setPriceExTax

public void setPriceExTax(java.math.BigDecimal _priceExTax)
Parameters:
_priceExTax - The priceExTax to set.

getPriceIncTax

public java.math.BigDecimal getPriceIncTax()
Returns:
Returns the priceIncTax.

setPriceIncTax

public void setPriceIncTax(java.math.BigDecimal _priceIncTax)
Parameters:
_priceIncTax - The priceIncTax to set.

getPrice0

public java.math.BigDecimal getPrice0()
Returns:
Returns the price0.

setPrice0

public void setPrice0(java.math.BigDecimal _price0)
Parameters:
_price0 - The price0 to set.

getPrice1

public java.math.BigDecimal getPrice1()
Returns:
Returns the price1.

setPrice1

public void setPrice1(java.math.BigDecimal _price1)
Parameters:
_price1 - The price1 to set.

getPrice2

public java.math.BigDecimal getPrice2()
Returns:
Returns the price2.

setPrice2

public void setPrice2(java.math.BigDecimal _price2)
Parameters:
_price2 - The price2 to set.

getPrice3

public java.math.BigDecimal getPrice3()
Returns:
Returns the price3.

setPrice3

public void setPrice3(java.math.BigDecimal _price3)
Parameters:
_price3 - The price3 to set.

getAttrCustom1

public java.lang.String getAttrCustom1()
Custom field that can take a unique value whenever the option is connected to a product.

Returns:
the attrCustom1

setAttrCustom1

public void setAttrCustom1(java.lang.String _attrCustom1)
Custom field that can take a unique value whenever the option is connected to a product.

Parameters:
_attrCustom1 - the attrCustom1 to set

getAttrCustom2

public java.lang.String getAttrCustom2()
Custom field that can take a unique value whenever the option is connected to a product.

Returns:
the attrCustom2

setAttrCustom2

public void setAttrCustom2(java.lang.String _attrCustom2)
Custom field that can take a unique value whenever the option is connected to a product.

Parameters:
_attrCustom2 - the attrCustom2 to set

getOptionCustom1

public java.lang.String getOptionCustom1()
Custom field, the value of which is defined when the option is created.

Returns:
the optionCustom1

setOptionCustom1

public void setOptionCustom1(java.lang.String _optionCustom1)
Custom field, the value of which is defined when the option is created.

Parameters:
_optionCustom1 - the optionCustom1 to set

getOptionCustom2

public java.lang.String getOptionCustom2()
Custom field, the value of which is defined when the option is created.

Returns:
the optionCustom2

setOptionCustom2

public void setOptionCustom2(java.lang.String _optionCustom2)
Custom field, the value of which is defined when the option is created.

Parameters:
_optionCustom2 - the optionCustom2 to set

getOptionValCustom1

public java.lang.String getOptionValCustom1()
Custom field, the value of which is defined when the option value is created.

Returns:
the optionValCustom1

setOptionValCustom1

public void setOptionValCustom1(java.lang.String _optionValCustom1)
Custom field, the value of which is defined when the option value is created.

Parameters:
_optionValCustom1 - the optionValCustom1 to set

getOptionValCustom2

public java.lang.String getOptionValCustom2()
Custom field, the value of which is defined when the option value is created.

Returns:
the optionValCustom2

setOptionValCustom2

public void setOptionValCustom2(java.lang.String _optionValCustom2)
Custom field, the value of which is defined when the option value is created.

Parameters:
_optionValCustom2 - the optionValCustom2 to set

getType

public int getType()
The type of option. Valid types are

Returns:
the type

setType

public void setType(int _type)
The type of option. Valid types are

Parameters:
_type - the type to set

getQuantity

public int getQuantity()
Only applicable in the case where the option is of type TYPE_VARIABLE_QUANTITY. In this case a quantity may be defined for the option which will be multiplied by the unit price in order to calculate the total option price.

Returns:
the quantity

setQuantity

public void setQuantity(int _quantity)
Only applicable in the case where the option is of type TYPE_VARIABLE_QUANTITY. In this case a quantity may be defined for the option which will be multiplied by the unit price in order to calculate the total option price.

Parameters:
_quantity - the quantity to set


Copyright © 2011 DS Data Systems UK Ltd.