com.konakartadmin.app
Class AdminOption

java.lang.Object
  extended by com.konakartadmin.app.AdminOption
All Implemented Interfaces:
AdminObjectIf

public class AdminOption
extends java.lang.Object
implements AdminObjectIf

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

TYPE_SIMPLE

public static final int TYPE_SIMPLE
Constant to define the Option type

See Also:
Constant Field Values

TYPE_VARIABLE_QUANTITY

public static final int TYPE_VARIABLE_QUANTITY
Constant to define the Option type. In this case a quantity may be defined for the option. (i.e. Number of megabytes)

See Also:
Constant Field Values

id

private int id
id


valueId

private int valueId
id


name

private java.lang.String name
name


value

private java.lang.String value
value


type

private int type
type of option


quantity

private int quantity
quantity


priceIncTax

private java.math.BigDecimal priceIncTax
priceIncTax


priceExTax

private java.math.BigDecimal priceExTax
priceExTax

Constructor Detail

AdminOption

public AdminOption()
Constructor


AdminOption

public AdminOption(com.workingdogs.village.Record vr,
                   org.apache.torque.util.Criteria c)
            throws com.workingdogs.village.DataSetException
Parameters:
vr -
c -
Throws:
com.workingdogs.village.DataSetException
Method Detail

toString

public java.lang.String toString()
Specified by:
toString in interface AdminObjectIf
Overrides:
toString in class java.lang.Object
Returns:
Returns a string containing the attributes of the Option object.

getName

public java.lang.String getName()
Returns:
Returns the name.

setName

public void setName(java.lang.String name)
Parameters:
name - The name to set.

getValue

public java.lang.String getValue()
Returns:
Returns the value.

setValue

public void setValue(java.lang.String value)
Parameters:
value - The value to set.

getValueId

public int getValueId()
Returns:
Returns the valueId.

setValueId

public void setValueId(int valueId)
Parameters:
valueId - The valueId to set.

getId

public int getId()
Specified by:
getId in interface AdminObjectIf
Returns:
Returns the id.

setId

public void setId(int id)
Specified by:
setId in interface AdminObjectIf
Parameters:
id - The id 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.

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.