org.geebis.books.model.partner.pricelevel
Class PriceLevel

java.lang.Object
  extended by org.geebis.books.model.partner.pricelevel.PriceLevel
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
FixedPercentPriceLevel, PerProductPriceLevel

@Name(value="priceLevel")
public abstract class PriceLevel
extends java.lang.Object
implements java.io.Serializable

The PriceLevel class represents a customer price level that can be used to give different customers different prices

See Also:
Serialized Form

Constructor Summary
protected PriceLevel()
           
protected PriceLevel(java.lang.String name)
           
 
Method Summary
abstract  double calculateRetailItemPrice(RetailItem retailItem)
          Calculates the price of a retail item at this price level
 java.lang.Long getId()
           
 java.lang.String getName()
          The name of the customer price level
 java.lang.Integer getVersion()
           
 void setId(java.lang.Long id)
           
 void setName(java.lang.String name)
          Sets the name of the price level
 void setVersion(java.lang.Integer version)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PriceLevel

protected PriceLevel()

PriceLevel

protected PriceLevel(java.lang.String name)
Method Detail

getName

public java.lang.String getName()
The name of the customer price level

Returns:
the name of the customer price level

setName

public void setName(java.lang.String name)
Sets the name of the price level

Parameters:
name - the new name for the price level

getVersion

public java.lang.Integer getVersion()

setVersion

public void setVersion(java.lang.Integer version)

getId

public java.lang.Long getId()

setId

public void setId(java.lang.Long id)

calculateRetailItemPrice

public abstract double calculateRetailItemPrice(RetailItem retailItem)
Calculates the price of a retail item at this price level

Parameters:
retailItem - the retail item to calculate the price of
Returns:
the price of the retail item