com.konakart.app
Class TierPrice

java.lang.Object
  extended by com.konakart.app.TierPrice
All Implemented Interfaces:
TierPriceIf

public class TierPrice
extends java.lang.Object
implements TierPriceIf

Tier Price object that contains the price for different quantities


Constructor Summary
TierPrice()
          Constructor
TierPrice(com.workingdogs.village.Record vr, org.apache.torque.util.Criteria c)
           
 
Method Summary
 java.lang.String getCustom1()
          Custom1 field
 java.util.Calendar getDateAdded()
          The time when this record was created
 int getId()
          Unique object id
 java.util.Calendar getLastModified()
          The last time that this record was modified
 java.math.BigDecimal getPrice0()
          Price0
 java.math.BigDecimal getPrice1()
          Price1
 java.math.BigDecimal getPrice2()
          Price2
 java.math.BigDecimal getPrice3()
          Price3
 java.math.BigDecimal getPriceExTax()
          The discounted price
 java.math.BigDecimal getPriceIncTax()
          The price including tax
 int getProductId()
          Numeric id of the product to which this tier price applies
 int getQuantity()
          Quantity of product that needs to be ordered before this pricing kicks in
 boolean isUsePercentageDiscount()
          Consider the price fields to be percentage discount fields when set
 void setCustom1(java.lang.String custom1)
           
 void setDateAdded(java.util.Calendar dateAdded)
          The time when this record was created
 void setId(int id)
          Unique object id
 void setLastModified(java.util.Calendar lastModified)
          The last time that this record was modified
 void setPrice0(java.math.BigDecimal price0)
          Price0
 void setPrice1(java.math.BigDecimal price1)
          Price1
 void setPrice2(java.math.BigDecimal price2)
          Price2
 void setPrice3(java.math.BigDecimal price3)
          Price3
 void setPriceExTax(java.math.BigDecimal priceExTax)
          The discounted price
 void setPriceIncTax(java.math.BigDecimal priceIncTax)
          The price including tax
 void setProductId(int productId)
          Numeric id of the product to which this tier price applies
 void setQuantity(int quantity)
          Quantity of product that needs to be ordered before this pricing kicks in
 void setUsePercentageDiscount(boolean usePercentageDiscount)
          Consider the price fields to be percentage discount fields when set
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TierPrice

public TierPrice()
Constructor


TierPrice

public TierPrice(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()
Overrides:
toString in class java.lang.Object
Returns:
Returns a string containing the attributes of the Tier Price object.

getId

public int getId()
Description copied from interface: TierPriceIf
Unique object id

Specified by:
getId in interface TierPriceIf
Returns:
the id

setId

public void setId(int id)
Description copied from interface: TierPriceIf
Unique object id

Specified by:
setId in interface TierPriceIf
Parameters:
id - the id to set

getProductId

public int getProductId()
Description copied from interface: TierPriceIf
Numeric id of the product to which this tier price applies

Specified by:
getProductId in interface TierPriceIf
Returns:
the productId

setProductId

public void setProductId(int productId)
Description copied from interface: TierPriceIf
Numeric id of the product to which this tier price applies

Specified by:
setProductId in interface TierPriceIf
Parameters:
productId - the productId to set

getQuantity

public int getQuantity()
Description copied from interface: TierPriceIf
Quantity of product that needs to be ordered before this pricing kicks in

Specified by:
getQuantity in interface TierPriceIf
Returns:
the quantity

setQuantity

public void setQuantity(int quantity)
Description copied from interface: TierPriceIf
Quantity of product that needs to be ordered before this pricing kicks in

Specified by:
setQuantity in interface TierPriceIf
Parameters:
quantity - the quantity to set

getPriceExTax

public java.math.BigDecimal getPriceExTax()
Description copied from interface: TierPriceIf
The discounted price

Specified by:
getPriceExTax in interface TierPriceIf
Returns:
the priceExTax

setPriceExTax

public void setPriceExTax(java.math.BigDecimal priceExTax)
Description copied from interface: TierPriceIf
The discounted price

Specified by:
setPriceExTax in interface TierPriceIf
Parameters:
priceExTax - the priceExTax to set

getPrice0

public java.math.BigDecimal getPrice0()
Description copied from interface: TierPriceIf
Price0

Specified by:
getPrice0 in interface TierPriceIf
Returns:
the price0

setPrice0

public void setPrice0(java.math.BigDecimal price0)
Description copied from interface: TierPriceIf
Price0

Specified by:
setPrice0 in interface TierPriceIf
Parameters:
price0 - the price0 to set

getPrice1

public java.math.BigDecimal getPrice1()
Description copied from interface: TierPriceIf
Price1

Specified by:
getPrice1 in interface TierPriceIf
Returns:
the price1

setPrice1

public void setPrice1(java.math.BigDecimal price1)
Description copied from interface: TierPriceIf
Price1

Specified by:
setPrice1 in interface TierPriceIf
Parameters:
price1 - the price1 to set

getPrice2

public java.math.BigDecimal getPrice2()
Description copied from interface: TierPriceIf
Price2

Specified by:
getPrice2 in interface TierPriceIf
Returns:
the price2

setPrice2

public void setPrice2(java.math.BigDecimal price2)
Description copied from interface: TierPriceIf
Price2

Specified by:
setPrice2 in interface TierPriceIf
Parameters:
price2 - the price2 to set

getPrice3

public java.math.BigDecimal getPrice3()
Description copied from interface: TierPriceIf
Price3

Specified by:
getPrice3 in interface TierPriceIf
Returns:
the price3

setPrice3

public void setPrice3(java.math.BigDecimal price3)
Description copied from interface: TierPriceIf
Price3

Specified by:
setPrice3 in interface TierPriceIf
Parameters:
price3 - the price3 to set

getCustom1

public java.lang.String getCustom1()
Description copied from interface: TierPriceIf
Custom1 field

Specified by:
getCustom1 in interface TierPriceIf
Returns:
the custom1

setCustom1

public void setCustom1(java.lang.String custom1)
Specified by:
setCustom1 in interface TierPriceIf
Parameters:
custom1 - the custom1 to set

getLastModified

public java.util.Calendar getLastModified()
Description copied from interface: TierPriceIf
The last time that this record was modified

Specified by:
getLastModified in interface TierPriceIf
Returns:
the lastModified

setLastModified

public void setLastModified(java.util.Calendar lastModified)
Description copied from interface: TierPriceIf
The last time that this record was modified

Specified by:
setLastModified in interface TierPriceIf
Parameters:
lastModified - the lastModified to set

getDateAdded

public java.util.Calendar getDateAdded()
Description copied from interface: TierPriceIf
The time when this record was created

Specified by:
getDateAdded in interface TierPriceIf
Returns:
the dateAdded

setDateAdded

public void setDateAdded(java.util.Calendar dateAdded)
Description copied from interface: TierPriceIf
The time when this record was created

Specified by:
setDateAdded in interface TierPriceIf
Parameters:
dateAdded - the dateAdded to set

isUsePercentageDiscount

public boolean isUsePercentageDiscount()
Description copied from interface: TierPriceIf
Consider the price fields to be percentage discount fields when set

Specified by:
isUsePercentageDiscount in interface TierPriceIf
Returns:
the usePercentageDiscount

setUsePercentageDiscount

public void setUsePercentageDiscount(boolean usePercentageDiscount)
Description copied from interface: TierPriceIf
Consider the price fields to be percentage discount fields when set

Specified by:
setUsePercentageDiscount in interface TierPriceIf
Parameters:
usePercentageDiscount - the usePercentageDiscount to set

getPriceIncTax

public java.math.BigDecimal getPriceIncTax()
Description copied from interface: TierPriceIf
The price including tax

Specified by:
getPriceIncTax in interface TierPriceIf
Returns:
the priceIncTax

setPriceIncTax

public void setPriceIncTax(java.math.BigDecimal priceIncTax)
Description copied from interface: TierPriceIf
The price including tax

Specified by:
setPriceIncTax in interface TierPriceIf
Parameters:
priceIncTax - the priceIncTax to set


Copyright © 2011 DS Data Systems UK Ltd.