com.konakartadmin.app
Class AdminProductAttribute

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

public class AdminProductAttribute
extends java.lang.Object
implements AdminObjectIf

Product Option object for the Admin App


Field Summary
private  java.lang.String custom1
          custom field
private  java.lang.String custom2
          custom field
private  java.math.BigDecimal extPrice0
          External attributes
private  java.math.BigDecimal extPrice1
           
private  java.math.BigDecimal extPrice2
           
private  java.math.BigDecimal extPrice3
           
private  int id
          id
private  int optionId
          optionId
private  java.lang.String optionName
          optionName
private  int optionValueId
          optionValueId
private  java.lang.String optionValueName
          optionValueName
private  java.math.BigDecimal price
          price
private  java.math.BigDecimal price1
          price1
private  java.math.BigDecimal price2
          price2
private  java.math.BigDecimal price3
          price3
private  java.lang.String pricePrefix
          pricePrefix
private  int productId
          productId
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.
 
Constructor Summary
AdminProductAttribute()
          Constructor
AdminProductAttribute(com.workingdogs.village.Record vr, org.apache.torque.util.Criteria c)
           
 
Method Summary
 java.lang.String getCustom1()
           
 java.lang.String getCustom2()
           
 java.math.BigDecimal getExtPrice0()
           
 java.math.BigDecimal getExtPrice1()
           
 java.math.BigDecimal getExtPrice2()
           
 java.math.BigDecimal getExtPrice3()
           
 int getId()
           
 int getOptionId()
           
 java.lang.String getOptionName()
           
 int getOptionValueId()
           
 java.lang.String getOptionValueName()
           
 java.math.BigDecimal getPrice()
           
 java.math.BigDecimal getPrice1()
           
 java.math.BigDecimal getPrice2()
           
 java.math.BigDecimal getPrice3()
           
 java.lang.String getPricePrefix()
           
 int getProductId()
           
 int getType()
          The type of option.
 void setCustom1(java.lang.String custom1)
           
 void setCustom2(java.lang.String custom2)
           
 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)
           
 void setOptionId(int optionId)
           
 void setOptionName(java.lang.String optionName)
           
 void setOptionValueId(int optionValueId)
           
 void setOptionValueName(java.lang.String optionValueName)
           
 void setPrice(java.math.BigDecimal price)
           
 void setPrice1(java.math.BigDecimal price1)
           
 void setPrice2(java.math.BigDecimal price2)
           
 void setPrice3(java.math.BigDecimal price3)
           
 void setPricePrefix(java.lang.String pricePrefix)
           
 void setProductId(int productId)
           
 void setType(int type)
          The type of option.
 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


productId

private int productId
productId


optionId

private int optionId
optionId


optionName

private java.lang.String optionName
optionName


optionValueId

private int optionValueId
optionValueId


optionValueName

private java.lang.String optionValueName
optionValueName


type

private int type
type of option


price

private java.math.BigDecimal price
price


price1

private java.math.BigDecimal price1
price1


price2

private java.math.BigDecimal price2
price2


price3

private java.math.BigDecimal price3
price3


pricePrefix

private java.lang.String pricePrefix
pricePrefix


custom1

private java.lang.String custom1
custom field


custom2

private java.lang.String custom2
custom field


extPrice0

private java.math.BigDecimal extPrice0
External attributes


extPrice1

private java.math.BigDecimal extPrice1

extPrice2

private java.math.BigDecimal extPrice2

extPrice3

private java.math.BigDecimal extPrice3
Constructor Detail

AdminProductAttribute

public AdminProductAttribute()
Constructor


AdminProductAttribute

public AdminProductAttribute(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.

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.

getOptionId

public int getOptionId()
Returns:
Returns the optionId.

setOptionId

public void setOptionId(int optionId)
Parameters:
optionId - The optionId to set.

getOptionValueId

public int getOptionValueId()
Returns:
Returns the optionValueId.

setOptionValueId

public void setOptionValueId(int optionValueId)
Parameters:
optionValueId - The optionValueId to set.

getPrice

public java.math.BigDecimal getPrice()
Returns:
Returns the price.

setPrice

public void setPrice(java.math.BigDecimal price)
Parameters:
price - The price to set.

getPricePrefix

public java.lang.String getPricePrefix()
Returns:
Returns the pricePrefix.

setPricePrefix

public void setPricePrefix(java.lang.String pricePrefix)
Parameters:
pricePrefix - The pricePrefix to set.

getProductId

public int getProductId()
Returns:
Returns the productId.

setProductId

public void setProductId(int productId)
Parameters:
productId - The productId 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.

getCustom1

public java.lang.String getCustom1()
Returns:
the custom1

setCustom1

public void setCustom1(java.lang.String custom1)
Parameters:
custom1 - the custom1 to set

getCustom2

public java.lang.String getCustom2()
Returns:
the custom2

setCustom2

public void setCustom2(java.lang.String custom2)
Parameters:
custom2 - the custom2 to set

getOptionName

public java.lang.String getOptionName()
Returns:
the optionName

setOptionName

public void setOptionName(java.lang.String optionName)
Parameters:
optionName - the optionName to set

getOptionValueName

public java.lang.String getOptionValueName()
Returns:
the optionValueName

setOptionValueName

public void setOptionValueName(java.lang.String optionValueName)
Parameters:
optionValueName - the optionValueName 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

getExtPrice0

public java.math.BigDecimal getExtPrice0()
Returns:
the extPrice0

setExtPrice0

public void setExtPrice0(java.math.BigDecimal extPrice0)
Parameters:
extPrice0 - the extPrice0 to set

getExtPrice1

public java.math.BigDecimal getExtPrice1()
Returns:
the extPrice1

setExtPrice1

public void setExtPrice1(java.math.BigDecimal extPrice1)
Parameters:
extPrice1 - the extPrice1 to set

getExtPrice2

public java.math.BigDecimal getExtPrice2()
Returns:
the extPrice2

setExtPrice2

public void setExtPrice2(java.math.BigDecimal extPrice2)
Parameters:
extPrice2 - the extPrice2 to set

getExtPrice3

public java.math.BigDecimal getExtPrice3()
Returns:
the extPrice3

setExtPrice3

public void setExtPrice3(java.math.BigDecimal extPrice3)
Parameters:
extPrice3 - the extPrice3 to set


Copyright © 2011 DS Data Systems UK Ltd.