com.konakartadmin.app
Class AdminOrderProduct

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

public class AdminOrderProduct
extends java.lang.Object
implements AdminObjectIf

OrderProduct object for the Admin App


Field Summary
private  java.lang.String custom1
          Custom fields
private  java.lang.String custom2
           
private  java.lang.String custom3
           
private  java.lang.String custom4
           
private  java.lang.String custom5
           
private  java.util.Date dateAvailable
          dateAvailable - Not persisted
private  java.math.BigDecimal discountPercent
          Percentage discount used in tier pricing
private  java.math.BigDecimal finalPriceExTax
          price of one product with options
private  java.math.BigDecimal finalPriceIncTax
          price of one product with options with Tax
private  int id
          id
private  java.lang.String model
          model
private  java.lang.String name
          name
private  AdminOption[] opts
          Array of options - opts
private  AdminOrder order
          order
private  int orderId
          orderId
private  java.math.BigDecimal price
          price of product without options
private  java.math.BigDecimal price0
           
private  java.math.BigDecimal price1
           
private  java.math.BigDecimal price2
           
private  java.math.BigDecimal price3
           
private  AdminProduct product
          product
private  int productId
          productId
private  int quantity
          quantity
private  java.lang.String sku
          sku
private  int state
          state
private  java.math.BigDecimal tax
          tax that needs to be applied to the final price
private  java.math.BigDecimal taxRate
          tax rate that needs to be applied to the final price
private  java.math.BigDecimal totalPriceExTax
          finalPriceExTax: price of product with options without tax x qty
private  java.math.BigDecimal totalPriceIncTax
          finalPriceIncTax: price of product with options with tax x qty
private  int type
          product type.
private  java.math.BigDecimal weight
          weight
private  int wishListId
          wishListId
private  int wishListItemId
          wishListItemId
 
Constructor Summary
AdminOrderProduct()
          Constructor
AdminOrderProduct(com.workingdogs.village.Record vr, org.apache.torque.util.Criteria c)
          Instantiates the attributes of the OrderProduct object from a Record object
 
Method Summary
 java.lang.String getCustom1()
           
 java.lang.String getCustom2()
           
 java.lang.String getCustom3()
           
 java.lang.String getCustom4()
           
 java.lang.String getCustom5()
           
 java.util.Date getDateAvailable()
          Date Available - Not persisted
 java.math.BigDecimal getDiscountPercent()
           
 java.math.BigDecimal getFinalPriceExTax()
           
 java.math.BigDecimal getFinalPriceIncTax()
           
 int getId()
           
 java.lang.String getModel()
           
 java.lang.String getName()
           
 AdminOption[] getOpts()
           
 AdminOrder getOrder()
           
 int getOrderId()
           
 java.math.BigDecimal getPrice()
           
 java.math.BigDecimal getPrice0()
           
 java.math.BigDecimal getPrice1()
           
 java.math.BigDecimal getPrice2()
           
 java.math.BigDecimal getPrice3()
           
 AdminProduct getProduct()
           
 int getProductId()
           
 int getQuantity()
           
 java.lang.String getSku()
           
 int getState()
           
 java.math.BigDecimal getTax()
           
 java.math.BigDecimal getTaxRate()
           
 java.math.BigDecimal getTotalPriceExTax()
           
 java.math.BigDecimal getTotalPriceIncTax()
           
 int getType()
           
 java.math.BigDecimal getWeight()
           
 int getWishListId()
           
 int getWishListItemId()
           
 void setCustom1(java.lang.String custom1)
           
 void setCustom2(java.lang.String custom2)
           
 void setCustom3(java.lang.String custom3)
           
 void setCustom4(java.lang.String custom4)
           
 void setCustom5(java.lang.String custom5)
           
 void setDateAvailable(java.util.Date dateAvailable)
          Date Available - Not persisted
 void setDiscountPercent(java.math.BigDecimal discountPercent)
           
 void setFinalPriceExTax(java.math.BigDecimal finalPriceExTax)
           
 void setFinalPriceIncTax(java.math.BigDecimal finalPriceIncTax)
           
 void setId(int id)
           
 void setModel(java.lang.String model)
           
 void setName(java.lang.String name)
           
 void setOpts(AdminOption[] opts)
           
 void setOrder(AdminOrder order)
           
 void setOrderId(int orderId)
           
 void setPrice(java.math.BigDecimal price)
           
 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 setProduct(AdminProduct product)
           
 void setProductId(int productId)
           
 void setQuantity(int quantity)
           
 void setSku(java.lang.String sku)
           
 void setState(int state)
           
 void setTax(java.math.BigDecimal tax)
           
 void setTaxRate(java.math.BigDecimal taxRate)
           
 void setTotalPriceExTax(java.math.BigDecimal totalPriceExTax)
           
 void setTotalPriceIncTax(java.math.BigDecimal totalPriceIncTax)
           
 void setType(int type)
           
 void setWeight(java.math.BigDecimal weight)
           
 void setWishListId(int wishListId)
           
 void setWishListItemId(int wishListItemId)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

id

private int id
id


sku

private java.lang.String sku
sku


state

private int state
state


orderId

private int orderId
orderId


order

private AdminOrder order
order


productId

private int productId
productId


product

private AdminProduct product
product


model

private java.lang.String model
model


name

private java.lang.String name
name


price

private java.math.BigDecimal price
price of product without options


finalPriceIncTax

private java.math.BigDecimal finalPriceIncTax
price of one product with options with Tax


finalPriceExTax

private java.math.BigDecimal finalPriceExTax
price of one product with options


totalPriceExTax

private java.math.BigDecimal totalPriceExTax
finalPriceExTax: price of product with options without tax x qty


totalPriceIncTax

private java.math.BigDecimal totalPriceIncTax
finalPriceIncTax: price of product with options with tax x qty


taxRate

private java.math.BigDecimal taxRate
tax rate that needs to be applied to the final price


tax

private java.math.BigDecimal tax
tax that needs to be applied to the final price


quantity

private int quantity
quantity


weight

private java.math.BigDecimal weight
weight


wishListId

private int wishListId
wishListId


wishListItemId

private int wishListItemId
wishListItemId


type

private int type
product type.


opts

private AdminOption[] opts
Array of options - opts


custom1

private java.lang.String custom1
Custom fields


custom2

private java.lang.String custom2

custom3

private java.lang.String custom3

custom4

private java.lang.String custom4

custom5

private java.lang.String custom5

price0

private java.math.BigDecimal price0

price1

private java.math.BigDecimal price1

price2

private java.math.BigDecimal price2

price3

private java.math.BigDecimal price3

dateAvailable

private java.util.Date dateAvailable
dateAvailable - Not persisted


discountPercent

private java.math.BigDecimal discountPercent
Percentage discount used in tier pricing

Constructor Detail

AdminOrderProduct

public AdminOrderProduct()
Constructor


AdminOrderProduct

public AdminOrderProduct(com.workingdogs.village.Record vr,
                         org.apache.torque.util.Criteria c)
                  throws com.workingdogs.village.DataSetException
Instantiates the attributes of the OrderProduct object from a Record object

Parameters:
vr - Record containing data
c - Criteria containing column names
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 OrderProduct 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.

getModel

public java.lang.String getModel()
Returns:
Returns the model.

setModel

public void setModel(java.lang.String model)
Parameters:
model - The model to set.

getName

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

setName

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

getOpts

public AdminOption[] getOpts()
Returns:
Returns the opts.

setOpts

public void setOpts(AdminOption[] opts)
Parameters:
opts - The opts to set.

getOrder

public AdminOrder getOrder()
Returns:
Returns the order.

setOrder

public void setOrder(AdminOrder order)
Parameters:
order - The order to set.

getOrderId

public int getOrderId()
Returns:
Returns the orderId.

setOrderId

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

getProduct

public AdminProduct getProduct()
Returns:
Returns the product.

setProduct

public void setProduct(AdminProduct product)
Parameters:
product - The product to set.

getProductId

public int getProductId()
Returns:
Returns the productId.

setProductId

public void setProductId(int productId)
Parameters:
productId - The productId to set.

getQuantity

public int getQuantity()
Returns:
Returns the quantity.

setQuantity

public void setQuantity(int quantity)
Parameters:
quantity - The quantity to set.

getTaxRate

public java.math.BigDecimal getTaxRate()
Returns:
Returns the taxRate.

setTaxRate

public void setTaxRate(java.math.BigDecimal taxRate)
Parameters:
taxRate - The taxRate to set.

getTax

public java.math.BigDecimal getTax()
Returns:
Returns the tax.

setTax

public void setTax(java.math.BigDecimal tax)
Parameters:
tax - The tax to set.

getTotalPriceExTax

public java.math.BigDecimal getTotalPriceExTax()
Returns:
Returns the totalPriceExTax.

setTotalPriceExTax

public void setTotalPriceExTax(java.math.BigDecimal totalPriceExTax)
Parameters:
totalPriceExTax - The totalPriceExTax to set.

getTotalPriceIncTax

public java.math.BigDecimal getTotalPriceIncTax()
Returns:
Returns the totalPriceIncTax.

setTotalPriceIncTax

public void setTotalPriceIncTax(java.math.BigDecimal totalPriceIncTax)
Parameters:
totalPriceIncTax - The totalPriceIncTax to set.

getFinalPriceExTax

public java.math.BigDecimal getFinalPriceExTax()
Returns:
Returns the finalPriceExTax.

setFinalPriceExTax

public void setFinalPriceExTax(java.math.BigDecimal finalPriceExTax)
Parameters:
finalPriceExTax - The finalPriceExTax to set.

getFinalPriceIncTax

public java.math.BigDecimal getFinalPriceIncTax()
Returns:
Returns the finalPriceIncTax.

setFinalPriceIncTax

public void setFinalPriceIncTax(java.math.BigDecimal finalPriceIncTax)
Parameters:
finalPriceIncTax - The finalPriceIncTax to set.

getType

public int getType()
Returns:
Returns the type.

setType

public void setType(int type)
Parameters:
type - The type to set.

getCustom1

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

setCustom1

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

getCustom2

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

setCustom2

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

getCustom3

public java.lang.String getCustom3()
Returns:
Returns the custom3.

setCustom3

public void setCustom3(java.lang.String custom3)
Parameters:
custom3 - The custom3 to set.

getCustom4

public java.lang.String getCustom4()
Returns:
Returns the custom4.

setCustom4

public void setCustom4(java.lang.String custom4)
Parameters:
custom4 - The custom4 to set.

getCustom5

public java.lang.String getCustom5()
Returns:
Returns the custom5.

setCustom5

public void setCustom5(java.lang.String custom5)
Parameters:
custom5 - The custom5 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.

getSku

public java.lang.String getSku()
Returns:
the sku

setSku

public void setSku(java.lang.String sku)
Parameters:
sku - the sku to set

getState

public int getState()
Returns:
the state

setState

public void setState(int state)
Parameters:
state - the state to set

getDateAvailable

public java.util.Date getDateAvailable()
Date Available - Not persisted

Returns:
the dateAvailable

setDateAvailable

public void setDateAvailable(java.util.Date dateAvailable)
Date Available - Not persisted

Parameters:
dateAvailable - the dateAvailable to set

getWishListId

public int getWishListId()
Returns:
the wishListId

setWishListId

public void setWishListId(int wishListId)
Parameters:
wishListId - the wishListId to set

getWishListItemId

public int getWishListItemId()
Returns:
the wishListItemId

setWishListItemId

public void setWishListItemId(int wishListItemId)
Parameters:
wishListItemId - the wishListItemId to set

getWeight

public java.math.BigDecimal getWeight()
Returns:
the weight

setWeight

public void setWeight(java.math.BigDecimal weight)
Parameters:
weight - the weight to set

getDiscountPercent

public java.math.BigDecimal getDiscountPercent()
Returns:
the discountPercent

setDiscountPercent

public void setDiscountPercent(java.math.BigDecimal discountPercent)
Parameters:
discountPercent - the discountPercent to set


Copyright © 2011 DS Data Systems UK Ltd.