org.geebis.books.model.item.retail
Class RetailItem

java.lang.Object
  extended by org.geebis.books.model.item.Item
      extended by org.geebis.books.model.item.retail.RetailItem
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
Product, Service

@Name(value="retailItem")
public class RetailItem
extends Item
implements java.io.Serializable

The RetailItem class represents an retail item that can have cost associated with it.

See Also:
Product, Service, Serialized Form

Constructor Summary
protected RetailItem()
           
protected RetailItem(java.lang.String name)
           
 
Method Summary
 java.lang.Double getAverageCost()
          Gets the averageCost of this product
 java.lang.Double getRetail()
          Gets the retail of this item.
 java.lang.Boolean getTrackable()
          Gets whether this item is trackable.
 void setAverageCost(java.lang.Double averageCost)
          Sets the averageCost of this product
 void setRetail(java.lang.Double retail)
          Sets the retail of this item.
 void setTrackable(java.lang.Boolean trackable)
          Sets the trackability of the item
 
Methods inherited from class org.geebis.books.model.item.Item
getDescription, getId, getName, getSalesAccount, getVersion, setDescription, setId, setName, setSalesAccount, setVersion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RetailItem

protected RetailItem()

RetailItem

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

getTrackable

public java.lang.Boolean getTrackable()
Gets whether this item is trackable. An item that's trackable is associated with a customer when a customer purchases it. That way, a user can see what items a customer purchased, and fill out information about the customer's purchase

Returns:
true if the item is trackable, false otherwise

setTrackable

public void setTrackable(java.lang.Boolean trackable)
Sets the trackability of the item

Parameters:
trackable - the new trackables value for this item

getAverageCost

public java.lang.Double getAverageCost()
Gets the averageCost of this product

Returns:
the averageCost of this product

setAverageCost

public void setAverageCost(java.lang.Double averageCost)
Sets the averageCost of this product

Parameters:
averageCost - the new averageCost for this product

getRetail

public java.lang.Double getRetail()
Gets the retail of this item. The retail is the user set price of the item

Returns:
the retail of this item

setRetail

public void setRetail(java.lang.Double retail)
Sets the retail of this item.

Parameters:
retail - the new retail for this item