|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.elasticpath.domain.impl.AbstractEpDomainImpl com.elasticpath.domain.impl.AbstractPersistenceImpl com.elasticpath.domain.impl.AbstractValueObjectImpl com.elasticpath.domain.catalog.impl.PriceTierImpl
public class PriceTierImpl
PriceTier
represents different price for different minimum quantity A Price
should at least have a
PriceTier
When shopping a product, if quantity is provided, Price
should get the nearest PriceTier
with the minimum quantity equal or less than the given quantity. If no quantity is provided, the Price
will retrieve the first
price tier, i.e. the one with smallest minimum quantity.
Field Summary | |
---|---|
static long |
serialVersionUID
Serial version id. |
Constructor Summary | |
---|---|
PriceTierImpl()
|
Method Summary | |
---|---|
void |
clearComputedPrice()
Clear the computed price of the price tier, will set the computed price to null. |
java.math.BigDecimal |
getComputedPrice()
Get the computed price of the price tier. |
ElasticPath |
getElasticPath()
This is a work around for the Elastic Path not being set by Spring (because this is a component class?). |
java.math.BigDecimal |
getListPrice()
Get the list price of the price tier. |
int |
getMinQty()
Get the minimum quantity of the price tier. |
java.math.BigDecimal |
getPrePromotionPrice()
Get the pre-promotion price to which promotions are to be applied. |
java.math.BigDecimal |
getSalePrice()
Get the sale price of the price tier. |
void |
setComputedPrice(java.math.BigDecimal computedPrice)
Set the computed price of the price tier. |
void |
setDefaultValues()
set default values for price tier. |
void |
setListPrice(java.math.BigDecimal listPrice)
Set the list price for the price tier. |
void |
setMinQty(int minQty)
Set the minimum quantity for the price tier. |
void |
setSalePrice(java.math.BigDecimal salePrice)
Set the sale price for the price tier. |
Methods inherited from class com.elasticpath.domain.impl.AbstractPersistenceImpl |
---|
executeBeforePersistAction, getUidPk, isPersistent, setUidPk |
Methods inherited from class com.elasticpath.domain.impl.AbstractEpDomainImpl |
---|
setElasticPath |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.elasticpath.domain.Persistence |
---|
executeBeforePersistAction, getUidPk, isPersistent, setUidPk |
Methods inherited from interface com.elasticpath.domain.EpDomain |
---|
setElasticPath |
Field Detail |
---|
public static final long serialVersionUID
Constructor Detail |
---|
public PriceTierImpl()
Method Detail |
---|
public void clearComputedPrice()
clearComputedPrice
in interface PriceTier
public java.math.BigDecimal getComputedPrice()
getComputedPrice
in interface PriceTier
public ElasticPath getElasticPath()
getElasticPath
in interface EpDomain
getElasticPath
in class AbstractEpDomainImpl
public java.math.BigDecimal getListPrice()
getListPrice
in interface PriceTier
public int getMinQty()
getMinQty
in interface PriceTier
public java.math.BigDecimal getPrePromotionPrice()
getPrePromotionPrice
in interface PriceTier
public java.math.BigDecimal getSalePrice()
getSalePrice
in interface PriceTier
public void setComputedPrice(java.math.BigDecimal computedPrice)
setComputedPrice
in interface PriceTier
computedPrice
- the computed price of the price tierpublic void setDefaultValues()
setDefaultValues
in interface Persistence
setDefaultValues
in class AbstractPersistenceImpl
public void setListPrice(java.math.BigDecimal listPrice)
setListPrice
in interface PriceTier
listPrice
- the list price of the price tierpublic void setMinQty(int minQty)
setMinQty
in interface PriceTier
minQty
- the minimum quantity of the price tierpublic void setSalePrice(java.math.BigDecimal salePrice)
setSalePrice
in interface PriceTier
salePrice
- the sale price of the price tier
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |