|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.konakartadmin.app.AdminOption
public class AdminOption
Option object for the Admin App
Field Summary | |
---|---|
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_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 Summary | |
---|---|
AdminOption()
Constructor |
|
AdminOption(com.workingdogs.village.Record vr,
org.apache.torque.util.Criteria c)
|
Method Summary | |
---|---|
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 |
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()
|
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
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 priceIncTax
private java.math.BigDecimal priceExTax
Constructor Detail |
---|
public AdminOption()
public AdminOption(com.workingdogs.village.Record vr, org.apache.torque.util.Criteria c) throws com.workingdogs.village.DataSetException
vr
- c
-
com.workingdogs.village.DataSetException
Method Detail |
---|
public java.lang.String toString()
toString
in interface AdminObjectIf
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()
getId
in interface AdminObjectIf
public void setId(int id)
setId
in interface AdminObjectIf
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 set
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |