public class AdminOption
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.math.BigDecimal |
customerPrice
customerPrice
|
private java.lang.String |
customerText
customerText
|
private int |
id
id
|
private java.lang.String |
name
name
|
private java.math.BigDecimal |
priceExTax
priceExTax
|
private java.math.BigDecimal |
priceIncTax
priceIncTax
|
private int |
quantity
quantity
|
private int |
type
type of option
|
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.
|
private java.lang.String |
value
value
|
private int |
valueId
id
|
Constructor and Description |
---|
AdminOption()
Constructor
|
AdminOption(com.workingdogs.village.Record vr,
com.konakart.db.KKCriteria c) |
Modifier and Type | Method and Description |
---|---|
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.
|
int |
getId() |
java.lang.String |
getName() |
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() |
int |
getValueId() |
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 |
setId(int id) |
void |
setName(java.lang.String name) |
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) |
void |
setValueId(int valueId) |
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
private int id
private int valueId
private java.lang.String name
private java.lang.String value
private int type
private int quantity
private java.math.BigDecimal customerPrice
private java.lang.String customerText
private java.math.BigDecimal priceIncTax
private java.math.BigDecimal priceExTax
public AdminOption()
public AdminOption(com.workingdogs.village.Record vr, com.konakart.db.KKCriteria c) throws com.workingdogs.village.DataSetException
vr
- the vrc
- the ccom.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()
public void setName(java.lang.String name)
name
- The name to set.public java.lang.String getValue()
public void setValue(java.lang.String value)
value
- The value to set.public int getValueId()
public void setValueId(int valueId)
valueId
- The valueId to set.public int getId()
public void setId(int id)
id
- The id to set.public java.math.BigDecimal getPriceExTax()
public void setPriceExTax(java.math.BigDecimal priceExTax)
priceExTax
- The priceExTax to set.public java.math.BigDecimal getPriceIncTax()
public void setPriceIncTax(java.math.BigDecimal priceIncTax)
priceIncTax
- The priceIncTax to set.public int getType()
public void setType(int type)
type
- the type to setpublic int getQuantity()
public void setQuantity(int quantity)
quantity
- the quantity to setpublic java.math.BigDecimal getCustomerPrice()
public void setCustomerPrice(java.math.BigDecimal customerPrice)
customerPrice
- the customerPrice to setpublic java.lang.String getCustomerText()
public void setCustomerText(java.lang.String customerText)
customerText
- the customerText to setCopyright © 2018 DS Data Systems UK Ltd.