org.cocome.tradingsystem.inventory.data.enterprise
Class Product
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Product
public Product()
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