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

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

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

The Product class represents a product that is in inventory. It has units on hand, a manufacturer, and asset account, etc.

See Also:
Serialized Form

Constructor Summary
Product()
           
Product(java.lang.String name)
           
 
Method Summary
 OtherCurrentAssetAccount getAssetAccount()
          Gets the asset account to use for this product
 Manufacturer getManufacturer()
          Gets the Manufacturer of this item.
 java.lang.String getManufacturerDescription()
          Gets the description of this product for use with the product's Manufacturer
 java.lang.String getManufacturerPartNumber()
          Gets the Manufacturer's part number for this product.
 Vendor getPreferredVendor()
          Gets the preferred vendor for this product
 java.lang.Double getUnitsOnHand()
          Gets the units on hand for this product
 void setAssetAccount(OtherCurrentAssetAccount assetAccount)
          Sets the asset account for this product
 void setManufacturer(Manufacturer manufacturer)
          Sets the Manufacturer of the item.
 void setManufacturerDescription(java.lang.String manufacturerDescription)
          Sets the Manufacturer's description of this product
 void setManufacturerPartNumber(java.lang.String manufacturerPartNumber)
          Sets the Manufacturer's part number for this product
 void setPreferredVendor(Vendor preferredVendor)
          Sets the preferred vendor for this product
 void setUnitsOnHand(java.lang.Double unitsOnHand)
          Sets the units on hand for this product
 
Methods inherited from class org.geebis.books.model.item.retail.RetailItem
getAverageCost, getRetail, getTrackable, setAverageCost, setRetail, setTrackable
 
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

Product

public Product()

Product

public Product(java.lang.String name)
Method Detail

getUnitsOnHand

public java.lang.Double getUnitsOnHand()
Gets the units on hand for this product

Returns:
the units on hand of this product

setUnitsOnHand

public void setUnitsOnHand(java.lang.Double unitsOnHand)
Sets the units on hand for this product

Parameters:
unitsOnHand - the new units on hand for this product

getManufacturerPartNumber

public java.lang.String getManufacturerPartNumber()
Gets the Manufacturer's part number for this product.

Returns:
the Manufacturer's part number for this product

setManufacturerPartNumber

public void setManufacturerPartNumber(java.lang.String manufacturerPartNumber)
Sets the Manufacturer's part number for this product

Parameters:
manufacturerPartNumber - the new Manufacturer's part number for this product

getManufacturerDescription

public java.lang.String getManufacturerDescription()
Gets the description of this product for use with the product's Manufacturer

Returns:
the Manufacturer's description of the product

setManufacturerDescription

public void setManufacturerDescription(java.lang.String manufacturerDescription)
Sets the Manufacturer's description of this product

Parameters:
manufacturerDescription - the new Manufacturer's description for this product

getPreferredVendor

public Vendor getPreferredVendor()
Gets the preferred vendor for this product

Returns:
the preferred vendor for this product

setPreferredVendor

public void setPreferredVendor(Vendor preferredVendor)
Sets the preferred vendor for this product

Parameters:
preferredVendor - the new preferred vendor for this product

getManufacturer

public Manufacturer getManufacturer()
Gets the Manufacturer of this item. An item's manufacturer represents the "brand" of the item.

Returns:
the Manufacturer of the item

setManufacturer

public void setManufacturer(Manufacturer manufacturer)
Sets the Manufacturer of the item.

Parameters:
manufacturer - the new Manufacturer of the item

getAssetAccount

public OtherCurrentAssetAccount getAssetAccount()
Gets the asset account to use for this product

Returns:
the asset account for this product

setAssetAccount

public void setAssetAccount(OtherCurrentAssetAccount assetAccount)
Sets the asset account for this product

Parameters:
assetAccount - the new inventory asset account for this product