org.geebis.books.model.item
Class Item

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

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

The Item class represents a generic item that can appear on a sales order, work order, or invoice.

See Also:
Serialized Form

Constructor Summary
Item()
           
Item(java.lang.String name)
           
 
Method Summary
 java.lang.String getDescription()
          Gets the description of the item
 java.lang.Long getId()
           
 java.lang.String getName()
          Gets the name of the item.
 IncomeAccount getSalesAccount()
          Gets the sales account for this product
 java.lang.Integer getVersion()
           
 void setDescription(java.lang.String description)
          Sets the description of the item
 void setId(java.lang.Long id)
           
 void setName(java.lang.String name)
          Sets the name of the item.
 void setSalesAccount(IncomeAccount salesAccount)
          Sets the sales account to use with this product
 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

Item

public Item()

Item

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

getName

public java.lang.String getName()
Gets the name of the item. This is a unique identifier that is used to look up the item

Returns:
the name of the item

setName

public void setName(java.lang.String name)
Sets the name of the item. Item names must be unique

Parameters:
name - the new name for the item

getDescription

public java.lang.String getDescription()
Gets the description of the item

Returns:
the description of the item

setDescription

public void setDescription(java.lang.String description)
Sets the description of the item

Parameters:
description - the new description of the item

getSalesAccount

public IncomeAccount getSalesAccount()
Gets the sales account for this product

Returns:
the sales account for this product

setSalesAccount

public void setSalesAccount(IncomeAccount salesAccount)
Sets the sales account to use with this product

Parameters:
salesAccount - the new sales account to use with this product

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)