org.cocome.tradingsystem.inventory.data.enterprise
Class Product

java.lang.Object
  extended by org.cocome.tradingsystem.inventory.data.enterprise.Product

public class Product
extends java.lang.Object

This class represents a Product in the database

Author:
Yannick Welsch

Constructor Summary
Product()
           
 
Method Summary
 long getBarcode()
           
 long getId()
          Gets identifier value
 java.lang.String getName()
           
 double getPurchasePrice()
           
 ProductSupplier getSupplier()
           
 void setBarcode(long barcode)
           
 void setId(long id)
          Sets identifier.
 void setName(java.lang.String name)
           
 void setPurchasePrice(double purchasePrice)
           
 void setSupplier(ProductSupplier supplier)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Product

public Product()
Method Detail

getId

public long getId()
Gets identifier value

Returns:
The id.

setId

public void setId(long id)
Sets identifier.

Parameters:
id - Identifier value.

getBarcode

public long getBarcode()
Returns:
The barcode of the product

setBarcode

public void setBarcode(long barcode)
Parameters:
barcode - The barcode of the product

getName

public java.lang.String getName()
Returns:
The name of the product

setName

public void setName(java.lang.String name)
Parameters:
name - The name of the product

getSupplier

public ProductSupplier getSupplier()
Returns:
The ProductSupplier of this product

setSupplier

public void setSupplier(ProductSupplier supplier)
Parameters:
supplier - The ProductSupplier of this product

getPurchasePrice

public double getPurchasePrice()
Returns:
The purchase price of this product

setPurchasePrice

public void setPurchasePrice(double purchasePrice)
Parameters:
purchasePrice - The purchase price of this product