org.cocome.tradingsystem.inventory.data.store
Class OrderEntry
java.lang.Object
org.cocome.tradingsystem.inventory.data.store.OrderEntry
public class OrderEntry
- extends java.lang.Object
The class OrderEntry represents a single productorder entry in the database
- Author:
- Yannick Welsch
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OrderEntry
public OrderEntry()
getId
public long getId()
- Gets identifier value
- Returns:
- The id.
setId
public void setId(long id)
- Sets identifier.
- Parameters:
id
- Identifier value.
getAmount
public long getAmount()
- Returns:
- The amount of ordered products
setAmount
public void setAmount(long amount)
- Parameters:
amount
- The amount of ordered products
getOrder
public ProductOrder getOrder()
- Returns:
- The ProductOrder where the OrderEntry belongs to
setOrder
public void setOrder(ProductOrder productOrder)
- Parameters:
productOrder
- The ProductOrder where the OrderEntry belongs to
getProduct
public Product getProduct()
- Returns:
- The product which is ordered
setProduct
public void setProduct(Product product)
- Parameters:
product
- The product which is ordered